Skip to content

Commit

Permalink
fix: Fix tests which have outdated strings (#5585)
Browse files Browse the repository at this point in the history
User output and service names recently changed.
  • Loading branch information
holmanb authored and blackboxsw committed Aug 7, 2024
1 parent 7532589 commit acf04d6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/integration_tests/test_kernel_command_line_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ def test_lxd_datasource_kernel_override_nocloud_net(
== client.execute("cloud-init query platform").stdout.strip()
)
assert url_val in client.execute("cloud-init query subplatform").stdout
assert (
"Detected platform: DataSourceNoCloudNet. Checking for active"
"instance data"
) in logs
assert "Detected DataSourceNoCloudNet" in logs


@pytest.mark.skipif(PLATFORM != "lxd_vm", reason="Modifies grub config")
Expand All @@ -116,7 +113,7 @@ def test_lxd_disable_cloud_init_cmdline(client: IntegrationInstance):

override_kernel_command_line("cloud-init=disabled", client)
assert "Active: inactive (dead)" in client.execute(
"systemctl status cloud-init"
"systemctl status cloud-init.target"
)


Expand All @@ -128,7 +125,7 @@ def test_lxd_disable_cloud_init_file(client: IntegrationInstance):
client.execute("cloud-init --clean")
client.restart()
assert "Active: inactive (dead)" in client.execute(
"systemctl status cloud-init"
"systemctl status cloud-init.target"
)


Expand All @@ -142,5 +139,5 @@ def test_lxd_disable_cloud_init_env(client: IntegrationInstance):
client.execute("cloud-init --clean")
client.restart()
assert "Active: inactive (dead)" in client.execute(
"systemctl status cloud-init"
"systemctl status cloud-init.target"
)

0 comments on commit acf04d6

Please sign in to comment.