2020TEST_DIR = os .path .dirname (os .path .realpath (__file__ ))
2121
2222
23- def test_create_complete (HeatStack , bigip ):
23+ def test_create_complete (HeatStack , mgmt_root ):
2424 HeatStack (
2525 os .path .join (TEST_DIR , 'success.yaml' ),
2626 'success_test' ,
@@ -30,11 +30,11 @@ def test_create_complete(HeatStack, bigip):
3030 'bigip_pw' : symbols .bigip_pw
3131 }
3232 )
33- assert bigip .tm .sys .application .services .service .exists (
33+ assert mgmt_root .tm .sys .application .services .service .exists (
3434 name = 'test_service' , partition = 'Common' ) is True
3535
3636
37- def test_create_complete_no_answers (HeatStack , bigip ):
37+ def test_create_complete_no_answers (HeatStack , mgmt_root ):
3838 HeatStack (
3939 os .path .join (TEST_DIR , 'success_no_answers.yaml' ),
4040 'success_no_answers_test' ,
@@ -44,13 +44,13 @@ def test_create_complete_no_answers(HeatStack, bigip):
4444 'bigip_pw' : symbols .bigip_pw
4545 }
4646 )
47- assert bigip .tm .sys .application .services .service .exists (
47+ assert mgmt_root .tm .sys .application .services .service .exists (
4848 name = 'test_service' , partition = 'Common' ) is True
49- assert bigip .tm .sys .application .templates .template .exists (
49+ assert mgmt_root .tm .sys .application .templates .template .exists (
5050 name = 'test_template' , partition = 'Common' ) is True
5151
5252
53- def test_create_complete_new_partition (HeatStack , bigip ):
53+ def test_create_complete_new_partition (HeatStack , mgmt_root ):
5454 HeatStack (
5555 os .path .join (TEST_DIR , 'success_new_partition.yaml' ),
5656 'success_new_partition_test' ,
@@ -60,17 +60,17 @@ def test_create_complete_new_partition(HeatStack, bigip):
6060 'bigip_pw' : symbols .bigip_pw
6161 }
6262 )
63- assert bigip .tm .sys .application .services .service .exists (
63+ assert mgmt_root .tm .sys .application .services .service .exists (
6464 name = 'test_service' , partition = 'test_partition' ) is True
65- assert bigip .tm .sys .application .templates .template .exists (
65+ assert mgmt_root .tm .sys .application .templates .template .exists (
6666 name = 'test_template' , partition = 'test_partition' ) is True
67- assert bigip .tm .sys .folders .folder .exists (name = 'test_partition' )
67+ assert mgmt_root .tm .sys .folders .folder .exists (name = 'test_partition' )
6868
6969
7070# The stack deployed here depends on several pre-existing Openstack resources
7171# A client image is used (ubuntu), a server image with a node server
7272# pre-installed and networks.
73- def itest_create_complete_lb_deploy (HeatStack , bigip ):
73+ def itest_create_complete_lb_deploy (HeatStack , mgmt_root ):
7474 hc , stack = HeatStack (
7575 os .path .join (TEST_DIR , 'lb_deploy.yaml' ),
7676 'lb_deploy_test' ,
@@ -81,27 +81,27 @@ def itest_create_complete_lb_deploy(HeatStack, bigip):
8181 },
8282 teardown = False
8383 )
84- assert bigip .tm .sys .application .services .service .exists (
84+ assert mgmt_root .tm .sys .application .services .service .exists (
8585 name = 'lb_service' , partition = 'Common'
8686 ) is True
87- assert bigip .tm .sys .application .templates .template .exists (
87+ assert mgmt_root .tm .sys .application .templates .template .exists (
8888 name = 'lb_template' , partition = 'Common'
8989 ) is True
90- assert bigip .tm .ltm .virtuals .virtual .exists (
90+ assert mgmt_root .tm .ltm .virtuals .virtual .exists (
9191 name = 'virtual_server1' , partition = 'Common'
9292 ) is True
93- assert bigip .tm .ltm .pools .pool .exists (
93+ assert mgmt_root .tm .ltm .pools .pool .exists (
9494 name = 'pool1' , partition = 'Common'
9595 ) is True
9696 hc .delete_stack ()
97- assert bigip .tm .sys .application .services .service .exists (
97+ assert mgmt_root .tm .sys .application .services .service .exists (
9898 name = 'lb_service' , partition = 'Common'
9999 ) is False
100- assert bigip .tm .sys .application .templates .template .exists (
100+ assert mgmt_root .tm .sys .application .templates .template .exists (
101101 name = 'lb_template' , partition = 'Common'
102102 ) is False
103- assert bigip .tm .ltm .virtuals .virtual .exists (
103+ assert mgmt_root .tm .ltm .virtuals .virtual .exists (
104104 name = 'virtual_server1' , partition = 'Common'
105105 ) is False
106- assert bigip .tm .ltm .pools .pool .exists (name = 'pool1' , partition = 'Common' ) is \
106+ assert mgmt_root .tm .ltm .pools .pool .exists (name = 'pool1' , partition = 'Common' ) is \
107107 False
0 commit comments