Skip to content

Commit

Permalink
fix: Integration tests (#5576)
Browse files Browse the repository at this point in the history
String output changed in 7703634.
Instance-id doesn't change on LXD / Focal.
  • Loading branch information
holmanb authored Aug 2, 2024
1 parent 5322dca commit ea831d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/integration_tests/test_instance_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from cloudinit import subp
from tests.integration_tests.instances import IntegrationInstance
from tests.integration_tests.integration_settings import PLATFORM
from tests.integration_tests.releases import CURRENT_RELEASE, FOCAL

_INSTANCE_ID = 0

Expand All @@ -26,7 +27,7 @@ def setup_meta_data(instance: LXDInstance):

# class TestInstanceID:
@pytest.mark.skipif(
PLATFORM not in ["lxd_container", "lxd_vm"],
PLATFORM not in ["lxd_container", "lxd_vm"] or CURRENT_RELEASE == FOCAL,
reason="Uses lxd-specific behavior.",
)
@pytest.mark.lxd_setup.with_args(setup_meta_data)
Expand Down
4 changes: 2 additions & 2 deletions tests/integration_tests/test_kernel_command_line_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def test_lxd_datasource_kernel_override_nocloud_net(
)
assert url_val in client.execute("cloud-init query subplatform").stdout
assert (
"Detected platform: DataSourceNoCloudNet [seed=None]"
"[dsmode=net]. Checking for active instance data"
"Detected platform: DataSourceNoCloudNet. Checking for active"
"instance data"
) in logs


Expand Down

0 comments on commit ea831d6

Please sign in to comment.