diff options
Diffstat (limited to 'cobbler/services.py')
-rw-r--r-- | cobbler/services.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/cobbler/services.py b/cobbler/services.py index 9b76f69c..882bf7c5 100644 --- a/cobbler/services.py +++ b/cobbler/services.py @@ -305,13 +305,22 @@ def test_services_access(): url = "http://127.0.0.1/cblr/svc/op/ks/profile/profile0" data = urlgrabber.urlread(url) - print "DATA1: %s" % data assert data.find("look_for_this1") != -1 url = "http://127.0.0.1/cblr/svc/op/ks/system/system0" data = urlgrabber.urlread(url) - print "DATA2: %s" % data assert data.find("look_for_this2") != -1 + # see if we can pull up the yum configs + url = "http://127.0.0.1/cblr/svc/op/yum/profile/profile0" + data = urlgrabber.urlread(url) + print "D1=%s" % data + assert data.find("repo0") != -1 + + url = "http://127.0.0.1/cblr/svc/op/yum/system/system0" + data = urlgrabber.urlread(url) + print "D2=%s" % data + assert data.find("repo0") != -1 + remote._test_remove_objects() |