Skip to content

Commit

Permalink
tests: on noble, expect default /etc/apt/sources.list
Browse files Browse the repository at this point in the history
livecd-rootfs changes now place a default /etc/apt/sources.list
file in Ubuntu Noble and later where deb822 feature flag is enabled
in cloud-init.
Assert that the /etc/apt/sources.list content matches expectations.
  • Loading branch information
blackboxsw committed Feb 22, 2024
1 parent e5249ab commit 7585361
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/integration_tests/modules/test_apt_functionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,11 @@ def test_disabled_apt_sources(self, class_client: IntegrationInstance):
get_feature_flag_value(class_client, "APT_DEB822_SOURCE_LIST_FILE")
)
if feature_deb822:
assert class_client.execute(
f"test -f {ORIG_SOURCES_FILE}"
).failed, f"Found unexpected {ORIG_SOURCES_FILE}"

assert (
cc_apt_configure.UBUNTU_DEFAULT_APT_SOURCES_LIST.strip()
== class_client.read_from_file(ORIG_SOURCES_FILE)
)


DEFAULT_DATA_WITH_URI = _DEFAULT_DATA.format(
Expand Down

0 comments on commit 7585361

Please sign in to comment.