Skip to content

Commit 89fc86e

Browse files
authored
test: Update SSH and VLAN test cases (#682)
1 parent 03045d4 commit 89fc86e

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

tests/integration/linodes/test_disk.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ def disk_poll_func():
9696
.rstrip()
9797
)
9898

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

102101
assert_headers_in_lines(headers, res.splitlines())
103102

@@ -126,8 +125,7 @@ def disk_poll_func():
126125
.rstrip()
127126
)
128127

129-
# TODO:: Add "disk_encryption" when spec shows the header
130-
headers = ["id", "label", "status", "size", "filesystem"]
128+
headers = ["id", "label", "status", "size", "filesystem", "disk_encryption"]
131129

132130
assert_headers_in_lines(headers, res.splitlines())
133131

@@ -183,8 +181,7 @@ def test_disk_update(linode_instance_disk_tests):
183181
.rstrip()
184182
)
185183

186-
# TODO:: Add "disk_encryption" when spec shows the header
187-
headers = ["id", "label", "status", "size", "filesystem"]
184+
headers = ["id", "label", "status", "size", "filesystem", "disk_encryption"]
188185

189186
assert_headers_in_lines(headers, res.splitlines())
190187
assert update_label in res
@@ -208,7 +205,6 @@ def test_disks_list(linode_instance_disk_tests):
208205
.rstrip()
209206
)
210207

211-
# TODO:: Add "disk_encryption" when spec shows the header
212-
headers = ["id", "label", "status", "size", "filesystem"]
208+
headers = ["id", "label", "status", "size", "filesystem", "disk_encryption"]
213209

214210
assert_headers_in_lines(headers, res.splitlines())

tests/integration/ssh/test_plugin_ssh.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
from tests.integration.helpers import (
99
COMMAND_JSON_OUTPUT,
1010
exec_failing_test_command,
11+
get_random_region_with_caps,
1112
get_random_text,
1213
wait_for_condition,
1314
)
1415

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

tests/integration/vlans/test_vlans.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_list_vlans_help_menu():
3535
.rstrip()
3636
)
3737

38-
assert "linode-cli vlans ls\nList VLANs\n" in help_menu
38+
assert "linode-cli vlans ls" in help_menu
3939
assert (
4040
"https://techdocs.akamai.com/linode-api/reference/get-vlans"
4141
in help_menu

0 commit comments

Comments
 (0)