diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-10-15 16:18:41 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-10-15 16:18:41 -0400 |
commit | d33fa4e5bf18387bc857002ba99633cfe7fd8f9f (patch) | |
tree | d2ed800c6dc38a1d76c646f06135f239ed0ddfc3 /tests | |
parent | 7efd77707db225afa41fcac9a7ada142cf198093 (diff) | |
download | cobbler-d33fa4e5bf18387bc857002ba99633cfe7fd8f9f.tar.gz cobbler-d33fa4e5bf18387bc857002ba99633cfe7fd8f9f.tar.xz cobbler-d33fa4e5bf18387bc857002ba99633cfe7fd8f9f.zip |
Fix snippet for download_config_files, misc testing changes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/tests.py b/tests/tests.py index 2fe09d50..19213432 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -549,7 +549,10 @@ class Utilities(BootTest): self.assertTrue(profile.set_kickstart("http://127.0.0.1/foo")) self.assertTrue(profile.set_repos(["testrepo"])) self.assertTrue(self.api.profiles().add(profile)) - self.api.reposync() + + # disable this test as it's not a valid repo yet + # self.api.reposync() + self.api.sync() system = self.api.new_system() self.assertTrue(system.set_name("foo")) @@ -569,7 +572,8 @@ class Utilities(BootTest): profile2.set_name("testprofile12b3") profile2.set_parent("testprofile12b2") self.assertTrue(self.api.profiles().add(profile2)) - self.api.reposync() + # disable this test as syncing an invalid repo will fail + # self.api.reposync() self.api.sync() # FIXME: now add a system to the inherited profile @@ -580,7 +584,8 @@ class Utilities(BootTest): self.assertTrue(system2.set_profile("testprofile12b3")) self.assertTrue(system2.set_ksmeta({"narf" : "troz"})) self.assertTrue(self.api.systems().add(system2)) - self.api.reposync() + # disable this test as invalid repos don't sync + # self.api.reposync() self.api.sync() # FIXME: now evaluate the system object and make sure @@ -613,7 +618,7 @@ class Utilities(BootTest): self.api.profiles().add(profile2) # save it # random bug testing: run sync several times and ensure cardinality doesn't change - self.api.reposync() + #self.api.reposync() self.api.sync() self.api.sync() self.api.sync() @@ -642,11 +647,11 @@ class Utilities(BootTest): profile = self.api.profiles().find("testprofile12b2") self.assertTrue(type(profile.ks_meta) == type({})) - self.api.reposync() + # self.api.reposync() self.api.sync() self.assertFalse(profile.ks_meta.has_key("narf"), "profile does not have the system ksmeta") - self.api.reposync() + #self.api.reposync() self.api.sync() # verify that the distro did not acquire the property |