Tests/XS/backupDS: Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: {{Test case |testcase_name=XO Backup to XS |testcase_stream=Joyride |testcase_component=Schoolserver |testcase_feature=http://wiki.laptop.org/go/XS_Blueprints:Datastore_Simple_Backup_and_R...)
 
No edit summary
Line 3: Line 3:
|testcase_stream=Joyride
|testcase_stream=Joyride
|testcase_component=Schoolserver
|testcase_component=Schoolserver
|testcase_feature=http://wiki.laptop.org/go/XS_Blueprints:Datastore_Simple_Backup_and_Restore#Test_plans_and_user_walkthrough
|testcase_feature=[[XS_Blueprints:Datastore_Simple_Backup_and_Restore#Test_plans_and_user_walkthrough]]
|testcase_objective=Ensure that the XO, after registration to a school server, backs up its data automatically at least once/day.
|testcase_objective=Ensure that the XO, after registration to a school server, backs up its data automatically at least once/day.



Revision as of 12:41, 3 August 2008

Test case: Short name::XO Backup to XS
How to report results

Stream ,|x|Build stream::x}}
Category [[Test category::{{{testcase_category}}}]] Sub-category [[Test subcategory::{{{testcase_subcategory}}}]]
Component System component::Schoolserver
Feature [[System feature::XS_Blueprints:Datastore_Simple_Backup_and_Restore#Test_plans_and_user_walkthrough]]
Objective [[Test objective::Ensure that the XO, after registration to a school server, backs up its data automatically at least once/day.

Ensure that the XO can restore its data from the XS on demand.]]

Tools Test tools::Lastest XS software up and running, Access Point or Active Antenna connection is working.
Setup [[Test setup::# Setup schoolserver
  1. Set up access point]]
Procedure [[Test procedure::# Start with an unregistered XO, register it with the XS - either over an Active Antenna mesh connection, or a regular AP wifi connection.
  1. 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).
  2. Create some documents on the XO - or have them created before registration.
  3. Wait until the backup run happens - it will be triggered once a day. How to recognize that it has happened?
    • On the XO, run `stat /home/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/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
Pass criteria::The data will show up on the XS in the /library/SN for the XO you are testing.
Comments More notes::