Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions tests/integration/linodes/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,9 @@ def linode_interface_public(linode_cloud_firewall):
interfaces='[{"public": {"ipv4": {"addresses": [{"primary": true}]}}, "default_route": {"ipv4": true, "ipv6": true }, "firewall_id":'
+ linode_cloud_firewall
+ "}]",
booted=False,
)

wait_until(linode_id=linode_id, timeout=300, status="running")

# TODO: add support of creating a offline linode in `create_linode` then remove this workaround
exec_test_command(BASE_CMDS["linodes"] + ["shutdown", linode_id])

wait_until(linode_id=linode_id, timeout=60, status="offline")

yield linode_id
Expand Down
3 changes: 3 additions & 0 deletions tests/integration/linodes/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def create_linode(
disk_encryption=False,
interface_generation: str = None,
interfaces: str = None,
booted: bool = True,
):
# Base command
command = BASE_CMDS["linodes"] + [
Expand All @@ -78,6 +79,8 @@ def create_linode(
firewall_id,
"--disk_encryption",
"enabled" if disk_encryption else "disabled",
"--booted",
str(booted).lower(),
]

if interface_generation:
Expand Down
Loading