summaryrefslogtreecommitdiff
path: root/tests/11spare-migration
Commit message (Collapse)AuthorAge
* test: Don't use dev6 and dev7 together in a non-multipath testNeilBrown2011-03-28
| | | | | | | | | dev6 and dev7 refer to the same storage and are used for multipath testing. So using them both in any other test will be confusing. So change 11spare-migration test 5 to use dev10 rather than dev7 Signed-off-by: NeilBrown <neilb@suse.de>
* tests: Make sure config file is empty when required.NeilBrown2011-03-28
| | | | | | | | We need to have no config at all for this test so make sure it is empty. Reported-by: Anna Czarnowska <anna.czarnowska@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
* tests: use $config to store test config pathCzarnowska, Anna2011-03-28
| | | | | | | We also need to tell Monitor where to look for Policy in 11spare-migration tests Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
* Spare migration tests updatedCzarnowska, Anna2011-02-08
| | | | | | | | | | | | | | | | | | | | | | | | Added tests for cases when: 0 - there is no config file at all 0a - config file has no domains defined 9a - spare is in global domain 15 - spare is in global domain for $platform metadata Test 4 pass condition changed for imsm metadata. disk_policy only adds controller domain for imsm when config_rules_has_path=1. If there are any domains in config then every disk will have also a controller domain. As a result the array needing spares has at least one controller domain even when it doesn't have any other domains specified explicitly. In this case any spare in the same controller domain matches when it has no other domains from config. (This behaviour is different from the case when there is no paths in config at all as array domain then is null and no spare matches) Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
* test: remove all the environment handling.NeilBrown2011-02-01
| | | | | | | Instead, just include the environ explicitly in the test file or, where shared, source the shared file. Signed-off-by: NeilBrown <neilb@suse.de>
* 11spare-migration: pass conditions for tests 9 and 12 should be reversedLabun, Marcin2011-01-31
| | | | | | | | | Test 9: We do not block spare migration between different metadatas. test 13: Migrated spare must belong the same domain as destination - there is no additional condition for action. Signed-off-by: Marcin Labun <marcin.labun@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
* Spare migration testsAnna Czarnowska2010-11-29
This is a series of tests checking if mdadm Monitor migrates spares according to rules in /etc/mdadm.conf defined by POLICY lines. Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com> Signed-off-by: Marcin Labun <marcin.labun@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>