Skip to content

Commit f08ddee

Browse files
committed
Add copilot suggestions
1 parent 9561879 commit f08ddee

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

test/integration/models/linode/test_linode.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def linode_with_disk_encryption(test_linode_client, request):
236236

237237

238238
@pytest.fixture(scope="session")
239-
def create_linode_with_authorization_key(test_linode_client, e2e_test_firewall):
239+
def create_linode_with_authorization_key(test_linode_client, ssh_key_gen):
240240
client = test_linode_client
241241

242242
region = get_region(client, {"Linodes", "Cloud Firewall"}, site_type="core")
@@ -247,9 +247,9 @@ def create_linode_with_authorization_key(test_linode_client, e2e_test_firewall):
247247
region,
248248
image="linode/debian12",
249249
label=label,
250-
kernel="linode/6.15.7-x86_64-linode169",
250+
kernel="linode/latest-64bit",
251251
boot_size=9000,
252-
authorized_keys="ssh-rsa",
252+
authorized_keys=ssh_key_gen[0],
253253
)
254254

255255
yield linode_instance
@@ -1197,8 +1197,8 @@ def test_expected_error_if_fields_authorized_users_authorized_keys_root_pass_are
11971197
region,
11981198
image="linode/debian12",
11991199
label=label,
1200-
kernel="linode/6.15.7-x86_64-linode169",
1201-
boot_size="9000",
1200+
kernel="linode/latest-64bit",
1201+
boot_size=9000,
12021202
)
12031203
assert (
12041204
"When creating an Instance from an Image, at least one of root_pass, authorized_users, or authorized_keys must be provided."
@@ -1228,8 +1228,9 @@ def test_create_linode_with_kernel_and_boot_size_then_add_disk_and_rebuild(
12281228
3,
12291229
linode_create.rebuild,
12301230
"linode/debian12",
1231-
authorized_keys="ecdsa-sha2-nistp",
1231+
authorized_keys="ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJ0QO0FQx0J8l8n1aX4d7p0mW0uQ1u7m0mK2K9m1g3rX6m4sYv0r2g1W9m8pQ3x5r7t1n6v8k2p4s6d9f1h3j5k= integration-test",
12321232
)
12331233
wait_for_condition(10, 300, get_status, linode_create, "rebuilding")
12341234
assert linode_create.status == "rebuilding"
1235+
wait_for_condition(10, 300, get_status, linode_create, "running")
12351236
assert linode_create.image.id == "linode/debian12"

0 commit comments

Comments
 (0)