Skip to content

Commit

Permalink
test: Put all overrides into /etc/
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt authored and mvollmer committed Feb 16, 2023
1 parent e2ff6b8 commit 3a4eece
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/verify/check-apps
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class TestApps(PackageCase):
m.execute("rm -rf /usr/share/metainfo /usr/share/app-info /var/cache/app-info")

# instead of the actual distro packages, use our own fake repo data package
m.write("/usr/share/cockpit/apps/override.json",
m.write("/etc/cockpit/apps.override.json",
'{ "config": { "appstream_data_packages": [ "appstream-data-test" ] } }')

if urlroot != "":
Expand Down
3 changes: 1 addition & 2 deletions test/verify/check-storage-nfs
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,8 @@ class TestStoragePackagesNFS(PackageCase, StorageCase, StorageHelpers):
# Override configuration so that we don't have to remove the
# real package.

self.machine.write("/usr/share/cockpit/storaged/override.json",
self.machine.write("/etc/cockpit/storaged.override.json",
"""{ "config": { "nfs_client_package": "fake-nfs-utils" } }""")
self.addCleanup(self.machine.execute, "rm /usr/share/cockpit/storaged/override.json")

if m.execute("if test -e /sbin/mount.nfs; then echo yes; fi").strip():
m.execute("mv /sbin/mount.nfs /sbin/mount.nfs.off")
Expand Down
2 changes: 1 addition & 1 deletion test/verify/check-storage-stratis
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ class TestStoragePackagesStratis(PackageCase, StorageCase):
b = self.browser

m.execute("systemctl stop stratisd")
self.write_file("/usr/share/cockpit/storaged/override.json",
self.write_file("/etc/cockpit/storaged.override.json",
"""{ "config": { "stratis_package": "fake-stratisd" } }""")
self.createPackage("fake-stratisd", "999", "1")
self.enableRepo()
Expand Down

0 comments on commit 3a4eece

Please sign in to comment.