diff options
author | root <root@mdehaan.rdu.redhat.com> | 2007-08-27 15:43:58 -0400 |
---|---|---|
committer | root <root@mdehaan.rdu.redhat.com> | 2007-08-27 15:43:58 -0400 |
commit | 29081a493bf6617ee4a8ebea3893760cc1e711e2 (patch) | |
tree | 653e618ed904bf410f362bd36a6d2bb2300e9772 /tests | |
parent | 159c39eef9df2fe4c4797f70a2598edb8a72d15b (diff) | |
download | third_party-cobbler-29081a493bf6617ee4a8ebea3893760cc1e711e2.tar.gz third_party-cobbler-29081a493bf6617ee4a8ebea3893760cc1e711e2.tar.xz third_party-cobbler-29081a493bf6617ee4a8ebea3893760cc1e711e2.zip |
Fix bug in repo evaluation with inherited subprofiles.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/tests.py b/tests/tests.py index 291ab07..5368f69 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -286,9 +286,15 @@ class Additions(BootTest): profile2.set_repos("testrepo2") self.api.profiles().add(profile2) # save it + # random bug testing: run sync several times and ensure cardinality doesn't change + self.api.sync() + self.api.sync() + self.api.sync() + data = utils.blender(False, system2) self.assertTrue("testrepo" in data["repos"]) self.assertTrue("testrepo2" in data["repos"]) + self.assertTrue(len(data["repos"]) == 2) self.assertTrue(self.api.profiles().find(system2.profile).repos == ["testrepo2"]) # now double check that the parent profile still only has one repo in it. @@ -310,7 +316,6 @@ class Additions(BootTest): profile = self.api.profiles().find("testprofile12b2") self.assertTrue(type(profile.ks_meta) == type({})) - print "DEBUG2: %s" % profile.ks_meta self.api.sync() self.assertFalse(profile.ks_meta.has_key("narf"), "profile does not have the system ksmeta") |