]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat tests : update WordPress_Single_Instance_With_EIP
authorSteven Hardy <shardy@redhat.com>
Wed, 5 Sep 2012 13:39:44 +0000 (14:39 +0100)
committerSteven Hardy <shardy@redhat.com>
Wed, 5 Sep 2012 13:39:44 +0000 (14:39 +0100)
Update functional test WordPress_Single_Instance_With_EIP
to use the new verify_wordpress which checks that the wordpress
homepage specified in the stack output looks OK

Change-Id: I6b839e95f2c9fc8d89a22c062c393d6f14fb5df9
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/tests/functional/test_WordPress_Single_Instance_With_EIP.py

index 468e0c608e05b39bad438cd0eab9e2c2f99f0f1c..8eddf90e04de0cb769d0922c4de4e484b0f7e550 100644 (file)
@@ -13,6 +13,7 @@
 #
 
 import util
+import verify
 import nose
 from nose.plugins.attrib import attr
 
@@ -58,4 +59,11 @@ def test_template():
                 break
         assert found == 1
 
+    # Verify the output URL parses as expected, ie check that
+    # the wordpress installation is operational
+    stack_url = func_utils.get_stack_output("WebsiteURL")
+    print "Got stack output WebsiteURL=%s, verifying" % stack_url
+    ver = verify.VerifyStack()
+    assert True == ver.verify_wordpress(stack_url)
+
     func_utils.cleanup()