Skip to content

Commit

Permalink
test: Update SSH and VLAN test cases (linode#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykim-akamai authored Nov 20, 2024
1 parent 03045d4 commit 89fc86e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
12 changes: 4 additions & 8 deletions tests/integration/linodes/test_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ def disk_poll_func():
.rstrip()
)

# #TODO:: Add "disk_encryption" when spec shows the header
headers = ["id", "label", "status", "size", "filesystem"]
headers = ["id", "label", "status", "size", "filesystem", "disk_encryption"]

assert_headers_in_lines(headers, res.splitlines())

Expand Down Expand Up @@ -126,8 +125,7 @@ def disk_poll_func():
.rstrip()
)

# TODO:: Add "disk_encryption" when spec shows the header
headers = ["id", "label", "status", "size", "filesystem"]
headers = ["id", "label", "status", "size", "filesystem", "disk_encryption"]

assert_headers_in_lines(headers, res.splitlines())

Expand Down Expand Up @@ -183,8 +181,7 @@ def test_disk_update(linode_instance_disk_tests):
.rstrip()
)

# TODO:: Add "disk_encryption" when spec shows the header
headers = ["id", "label", "status", "size", "filesystem"]
headers = ["id", "label", "status", "size", "filesystem", "disk_encryption"]

assert_headers_in_lines(headers, res.splitlines())
assert update_label in res
Expand All @@ -208,7 +205,6 @@ def test_disks_list(linode_instance_disk_tests):
.rstrip()
)

# TODO:: Add "disk_encryption" when spec shows the header
headers = ["id", "label", "status", "size", "filesystem"]
headers = ["id", "label", "status", "size", "filesystem", "disk_encryption"]

assert_headers_in_lines(headers, res.splitlines())
5 changes: 3 additions & 2 deletions tests/integration/ssh/test_plugin_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
from tests.integration.helpers import (
COMMAND_JSON_OUTPUT,
exec_failing_test_command,
get_random_region_with_caps,
get_random_text,
wait_for_condition,
)

TEST_REGION = "us-southeast"
TEST_IMAGE = "linode/alpine3.16"
TEST_REGION = get_random_region_with_caps(required_capabilities=["Linodes"])
TEST_IMAGE = "linode/ubuntu24.10"
TEST_TYPE = "g6-nanode-1"
TEST_ROOT_PASS = "r00tp@ss!long-long-and-longer"

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/vlans/test_vlans.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_list_vlans_help_menu():
.rstrip()
)

assert "linode-cli vlans ls\nList VLANs\n" in help_menu
assert "linode-cli vlans ls" in help_menu
assert (
"https://techdocs.akamai.com/linode-api/reference/get-vlans"
in help_menu
Expand Down

0 comments on commit 89fc86e

Please sign in to comment.