removed obsolete tests
This commit is contained in:
parent
3d2c7ae396
commit
46b20fe086
1 changed files with 10 additions and 1 deletions
|
@ -447,6 +447,9 @@ class TestTerraform:
|
||||||
assert ret == 0
|
assert ret == 0
|
||||||
assert err == ""
|
assert err == ""
|
||||||
|
|
||||||
|
# The directory flag is no longer supported in v1.0.8
|
||||||
|
# this should either be done with -chdir or probably just be removed
|
||||||
|
"""
|
||||||
def test_create_workspace_with_args(self, workspace_setup_teardown, caplog):
|
def test_create_workspace_with_args(self, workspace_setup_teardown, caplog):
|
||||||
workspace_name = "test"
|
workspace_name = "test"
|
||||||
state_file_path = os.path.join(
|
state_file_path = os.path.join(
|
||||||
|
@ -465,6 +468,7 @@ class TestTerraform:
|
||||||
f"Command: terraform workspace new -no-color test {current_path}"
|
f"Command: terraform workspace new -no-color test {current_path}"
|
||||||
in caplog.messages
|
in caplog.messages
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def test_set_workspace(self, workspace_setup_teardown):
|
def test_set_workspace(self, workspace_setup_teardown):
|
||||||
workspace_name = "test"
|
workspace_name = "test"
|
||||||
|
@ -473,6 +477,8 @@ class TestTerraform:
|
||||||
assert ret == 0
|
assert ret == 0
|
||||||
assert err == ""
|
assert err == ""
|
||||||
|
|
||||||
|
# see comment on test_create_workspace_with_args
|
||||||
|
"""
|
||||||
def test_set_workspace_with_args(self, workspace_setup_teardown, caplog):
|
def test_set_workspace_with_args(self, workspace_setup_teardown, caplog):
|
||||||
workspace_name = "test"
|
workspace_name = "test"
|
||||||
with workspace_setup_teardown(workspace_name) as tf, caplog.at_level(
|
with workspace_setup_teardown(workspace_name) as tf, caplog.at_level(
|
||||||
|
@ -488,7 +494,7 @@ class TestTerraform:
|
||||||
f"Command: terraform workspace select -no-color test {current_path}"
|
f"Command: terraform workspace select -no-color test {current_path}"
|
||||||
in caplog.messages
|
in caplog.messages
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
def test_show_workspace(self, workspace_setup_teardown):
|
def test_show_workspace(self, workspace_setup_teardown):
|
||||||
workspace_name = "test"
|
workspace_name = "test"
|
||||||
with workspace_setup_teardown(workspace_name) as tf:
|
with workspace_setup_teardown(workspace_name) as tf:
|
||||||
|
@ -515,6 +521,8 @@ class TestTerraform:
|
||||||
assert ret == 0
|
assert ret == 0
|
||||||
assert err == ""
|
assert err == ""
|
||||||
|
|
||||||
|
# see above comments
|
||||||
|
"""
|
||||||
def test_delete_workspace_with_args(self, workspace_setup_teardown, caplog):
|
def test_delete_workspace_with_args(self, workspace_setup_teardown, caplog):
|
||||||
workspace_name = "test"
|
workspace_name = "test"
|
||||||
with workspace_setup_teardown(
|
with workspace_setup_teardown(
|
||||||
|
@ -531,3 +539,4 @@ class TestTerraform:
|
||||||
f"Command: terraform workspace delete -force test {current_path}"
|
f"Command: terraform workspace delete -force test {current_path}"
|
||||||
in caplog.messages
|
in caplog.messages
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
Loading…
Reference in a new issue