File tree Expand file tree Collapse file tree 2 files changed +24
-34
lines changed
Expand file tree Collapse file tree 2 files changed +24
-34
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,7 @@ def pytest_configure(config):
513513 )
514514
515515
516- @pytest .fixture
516+ @pytest .fixture ( scope = "module" )
517517def support_test_linode_id (linode_cloud_firewall ):
518518 timestamp = str (time .time_ns ())
519519 label = "cli" + timestamp
Original file line number Diff line number Diff line change 1111BASE_CMD = ["linode-cli" , "placement" ]
1212
1313
14- @pytest .fixture
14+ @pytest .fixture ( scope = "module" )
1515def create_placement_group ():
1616 new_label = str (time .time_ns ()) + "label"
1717 placement_group_id = (
@@ -68,50 +68,40 @@ def test_placement_group_view(create_placement_group):
6868 assert_headers_in_lines (headers , lines )
6969
7070
71- @pytest .mark .skip (reason = "BUG TPT-3109" )
7271def test_assign_placement_group (support_test_linode_id , create_placement_group ):
7372 linode_id = support_test_linode_id
7473 placement_group_id = create_placement_group
75- res = (
76- exec_test_command (
77- BASE_CMD
78- + [
79- "assign-linode" ,
80- placement_group_id ,
81- "--linodes" ,
82- linode_id ,
83- "--text" ,
84- "--delimiter=," ,
85- ]
86- )
87- .stdout .decode ()
88- .rstrip ()
74+ process = exec_test_command (
75+ BASE_CMD
76+ + [
77+ "assign-linode" ,
78+ placement_group_id ,
79+ "--linode" ,
80+ linode_id ,
81+ "--text" ,
82+ "--delimiter=," ,
83+ ]
8984 )
90- assert placement_group_id in res
85+ assert process . returncode == 0
9186
9287
93- @pytest .mark .skip (reason = "BUG TPT-3109" )
9488def test_unassign_placement_group (
9589 support_test_linode_id , create_placement_group
9690):
9791 linode_id = support_test_linode_id
9892 placement_group_id = create_placement_group
99- res = (
100- exec_test_command (
101- BASE_CMD
102- + [
103- "unassign-linode" ,
104- placement_group_id ,
105- "--linode" ,
106- linode_id ,
107- "--text" ,
108- "--delimiter=," ,
109- ]
110- )
111- .stdout .decode ()
112- .rstrip ()
93+ process = exec_test_command (
94+ BASE_CMD
95+ + [
96+ "unassign-linode" ,
97+ placement_group_id ,
98+ "--linode" ,
99+ linode_id ,
100+ "--text" ,
101+ "--delimiter=," ,
102+ ]
113103 )
114- assert placement_group_id not in res
104+ assert process . returncode == 0
115105
116106
117107def test_update_placement_group (create_placement_group ):
You can’t perform that action at this time.
0 commit comments