Tests/XS/backupDS

From OLPC

Jump to: navigation, search

Test case: XO Backup to XS
How to report results

Stream joyride, 8.2, Any
Category XS Sub-category backup
Component Schoolserver
Feature XS_Blueprints:Datastore_Simple_Backup_and_Restore#Test_plans_and_user_walkthrough
Objective Ensure that the XO, after registration to a school server, backs up its data automatically at least once/day.
Tools Lastest XS software up and running, Access Point or Active Antenna connection is working.
Setup
  1. Setup schoolserver
  2. Set up access point
  3. To unregister an XO, go to the linux shell, and edit the file (using text editor nano) /home/olpc/.sugar/default/config.
  4. Delete the two lines [Server] and backup1. Reboot.
Procedure
  1. Start with an unregistered XO, register it with the XS - either over an Active Antenna mesh connection, or a regular AP wifi connection.
  2. After registration, you need to restart the XO (this is part of the XO side of the registration process as of build 708 / joyride 2121, might not be needed in later builds).
  3. Create some documents on the XO - or have them created before registration.
  4. Wait until the backup run happens - it will be triggered once a day. How to recognize that it has happened?
    • You can push the backup to happen faster than the normal 24 hour wait by:
  - go into Terminal Activity
  - type "rm /home/olpc/.sugar/default/ds-backup-done"
  - then type "ds-backup.sh" to force the backup
    • On the XO, run `stat /home/olpc/.sugar/default/ds-backup-done` and look for the 'modified' time, which shows the last time it ran successfully. Check that the XO clock is set to GMT, and might be off-track. Try `TZ=America/New_York stat /home/olpc/.sugar/default/ds_backup-done` to see it in local time.
    • On the XS, a successful registration will have created a directory `/library/users/<Serial Number>` - and each successful backup run creates a new directory under `/library/users/<Serial Number>/datastore`. The directories have a datestamp, and when the backup run completes successfully, a symlink is updated to point to the latest one (called "datastore-latest").
Expected Results
and Pass Criteria
The data will show up on the XS in the /library/SN for the XO you are testing.
Comments warning.pngEmpty strings are not accepted.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
Candidate 8.2 763 Pass Registered against XS.4 Server.

Restarted. Open Terminal. Ran ds-backup.sh

warning.pngThe date "" was not understood (support for dates is still experimental).


Candidate 8.2 766 Pass Registered against XS.4 Server.

Restarted. Open Terminal. Ran ds-backup.sh

warning.pngThe date "" was not understood (support for dates is still experimental).


Candidate 8.2 767 Pass Registered against XS.4 Server.

Restarted. Open Terminal. Ran ds-backup.sh

warning.pngThe date "" was not understood (support for dates is still experimental).


Candidate 8.2 767 Pass warning.pngEmpty strings are not accepted. warning.pngThe date "" was not understood (support for dates is still experimental).


Facts about Tests/XS/backupDSRDF feed
Build number 763  +, 766  +, and 767  +
Build stream Joyride  +info.pngLink to builds in stream, Packages in stream, ChangeLog, Differences vs joyride , 8.2  +info.pngLink to builds in stream, Packages in stream, ChangeLog, Differences vs joyride , and Any  +info.pngLink to builds in stream, Packages in stream, ChangeLog, Differences vs joyride
Comments Registered against XS.4 Server.

Restarted. Open Terminal.

Ran ds-backup.sh, and warning.pngEmpty strings are not accepted.
Created warning.pngThe date "" was not understood (support for dates is still experimental).
More notes warning.pngEmpty strings are not accepted.
Pass criteria The data will show up on the XS in the /library/SN for the XO you are testing.
PassFail Pass  +
Short name XO Backup to XS  +
Software release Candidate  +
System component Schoolserver  +
System feature XS_Blueprints:Datastore_Simple_Backup_and_Restore#Test_plans_and_user_walkthrough  +
Test category XS  +
Test objective Ensure that the XO, after registration to a school server, backs up its data automatically at least once/day.  +
Test procedure <br />
  1. Start with an unregistered <br />
  2. Start with an unregistered XO, register it with the XS - either over an Active Antenna mesh connection, or a regular AP wifi connection.
  3. After registration, you need to restart the XO (this is part of the XO side of the registration process as of build 708 / joyride 2121, might not be needed in later builds).
  4. Create some documents on the XO - or have them created before registration.
  5. Wait until the backup run happens - it will be triggered once a day. How to recognize that it has happened?
    • You can push the backup to happen faster than the normal 24 hour wait by:
  - go into Terminal Activity
  - type "rm /home/olpc/.sugar/default/ds-backup-done"
  - then type "ds-backup.sh" to force the backup
    • On the XO, run `stat /home/olpc/.sugar/default/ds-backup-done` and look for the 'modified' time, which shows the last time it ran successfully. Check that the XO clock is set to GMT, and might be off-track. Try `TZ=America/New_York stat /home/olpc/.sugar/default/ds_backup-done` to see it in local time.
    • On the XS, a successful registration will have created a directory `/library/users/<Serial Number>` - and each successful backup run creates a new directory under `/library/users/<Serial Number>/datastore`. The directories have a datestamp, and when the backup run completes successfully, a symlink is updated to point to the latest one (called "datastore-latest"). he latest one (called "datastore-latest").
Test setup <br />
  • Setup schoolserver
  • Set up access point
  • To unregister an XO, go to the linux shell, and edit the file (using text editor nano) /home/olpc/.sugar/default/config.
  • Delete the two lines [Server] and backup1. Reboot.
  • Test subcategory backup  +
    Test tools Lastest XS software up and running, Access Point or Active Antenna connection is working.  +
    Personal tools
    • Log in
    • Login with OpenID
    About OLPC
    About the laptop
    About the tablet
    Projects
    OLPC wiki
    Toolbox