Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing support for OpenSUSE Tumbleweed #21335

Draft
wants to merge 59 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
e0f2280
spec: Allow building cockpit for tumbleweed testing
Nykseli May 27, 2024
ab4302e
test: Set opensuse specific cockpit.pam file
SludgeGirl Nov 13, 2024
4cc003e
.gitignore: Ignore test results
SludgeGirl May 29, 2024
eecfb6a
test: Add helper function for system admin user
SludgeGirl Nov 13, 2024
0a8d287
test: fix existing RUF031: Avoid parentheses for tuples in subscripts
SludgeGirl Nov 26, 2024
ec698d4
test: Add SUSE to package cases
SludgeGirl May 29, 2024
0924383
test: Set the lease path to /run/dnsmasq due to apparmour policy on TW
SludgeGirl May 30, 2024
5c1232f
test: Update sshd_path logic to be global
SludgeGirl May 30, 2024
d1dcb7f
system: Add support for suse platforms
SludgeGirl May 30, 2024
575f84b
test: Add support for suse to cpu migitgation tests
SludgeGirl May 30, 2024
d1089ae
test: Add in login.defs path for tumbleweed
SludgeGirl May 30, 2024
8523738
test: Remove password access for all users in sudoers for SUSE
SludgeGirl Jun 3, 2024
bf240b5
test: Add suse specific configuration for pam test
SludgeGirl Jun 3, 2024
8b21fe4
storage: fallback to starting multipathd if mpathconf doesn't exist
SludgeGirl Jun 3, 2024
4d8c106
test: Skip a few unsupported tests
SludgeGirl Jun 3, 2024
9be58b2
test: Exclude suse images from sos report tests
SludgeGirl Jun 4, 2024
2517341
test: Overwrite default tumbleweed cgroup and memoryaccounting settings
SludgeGirl Jun 4, 2024
796b087
test: Skip selinux tests for suse
SludgeGirl Jun 4, 2024
36eee2b
test: run this without superuser since tw assumes it as su
SludgeGirl Jun 5, 2024
d7ec9fd
test: Add check docs case for Tumbleweed
SludgeGirl Jun 6, 2024
8bd5ad4
tests: Tumbleweed doesn't have sshd.socket
SludgeGirl Jun 7, 2024
6e78bd5
test: ChallengeResponseAuthentication to no on tumbleweed otherwise pam
SludgeGirl Jun 7, 2024
e71a3e2
test: Don't run tlog tests on Tumbleweed
SludgeGirl Jun 7, 2024
ec0b8ef
test: set useradd defaults on suse images
Nykseli Jun 10, 2024
8797635
test: temporarily unlock root on suse images
Nykseli Jun 10, 2024
3a04ac5
test: SUSE Images have different path for password complexity require…
SludgeGirl Jun 11, 2024
b1f4327
test: Add faillock configuration for SUSE images
SludgeGirl Jun 11, 2024
d4fcabb
test: Make lastlog silent to prevent unexpected journal messages
SludgeGirl Jun 11, 2024
adc139a
test: SUSE images use a different path for default pam files
SludgeGirl Jun 11, 2024
e531951
test: ignore missing btmp file journal messages
Nykseli Jun 11, 2024
89abe03
tests: add specific login logic for tumbleweed
Nykseli Jun 19, 2024
37ed3bd
test: Skip TestAD for suse images
Nykseli Jun 19, 2024
d43386d
test: Parse comments out of os-release file
Nykseli Jun 19, 2024
fd91467
tests: Check right image on suse images
Nykseli Jun 19, 2024
bc781e4
test: Check the right shell indicator on suse images
Nykseli Jun 19, 2024
78beade
test: prefix values with = so comments don't get matched
SludgeGirl Jun 11, 2024
a55f6f4
firewall: Improve handling of service retrieval for Tumbleweed
SludgeGirl Jun 18, 2024
1cee618
test: Amend mapping for Tumbleweed as 50000 is mrt
SludgeGirl Jun 18, 2024
e8408c3
cockpitconf: Always check against system config directories
SludgeGirl Jun 26, 2024
7c04921
test: Add Tumbleweed workaround for passwordless ssh
SludgeGirl Jun 26, 2024
e57f1fb
test: Add kdump support for tumbleweed
SludgeGirl Jun 26, 2024
dba53de
test: Add Tumbleweeds redis target
SludgeGirl Jun 26, 2024
6703137
test: Update Tumbleweeds pam path
SludgeGirl Jun 26, 2024
d722fbc
test: Update config path for Tumbleweed
SludgeGirl Jun 26, 2024
6b79abd
test: Update suse images to use valkey
SludgeGirl Jul 18, 2024
fa069fa
test: Exclude SUSE images from stratis tests
SludgeGirl Jul 19, 2024
916efb9
test: Resolve default tumbleweed repos to lo
SludgeGirl Jul 19, 2024
cd30555
test: Add in handling for package cases using zypper backend
SludgeGirl Jul 19, 2024
c878e1e
test: Update the correct path for suse's pam
SludgeGirl Jul 23, 2024
4ed8264
test: Add support for suse's valkey.target
SludgeGirl Jul 25, 2024
80e8852
test: Tumbleweed lacks kpatch
SludgeGirl Jul 25, 2024
6b8f564
test: Skip Kerberos tests as suse lacks ipa-client-install util
SludgeGirl Jul 26, 2024
4c242ee
test: Skip testConfiguration since SUSE has it's own test for this
SludgeGirl Jul 26, 2024
832c835
test: Skip TestIPA on tumbleweed due to missing ipa-client-install util
SludgeGirl Jul 29, 2024
20bb19e
test: Add support for TW valkey.target
SludgeGirl Jul 30, 2024
17c5595
test: Only add user group if it doesn't already exist
SludgeGirl Jul 30, 2024
58e6d98
test: Exclude tumbleweed from running auto update test install
SludgeGirl Jul 30, 2024
64ec395
test: Multihost is enabled in tumbleweed by default
SludgeGirl Oct 23, 2024
05fc7c8
test: Skip tests that are unsupported on Tumbleweed
SludgeGirl Nov 11, 2024
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
5 changes: 4 additions & 1 deletion test/verify/check-metrics
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,7 @@ class TestMetricsPackages(packagelib.PackageCase):

redis_service = redisService(m.image)
redis_package = "valkey" if redis_service == "valkey" else "redis"
redis_service = f"{redis_service}.target" if "suse" in m.image else f"{redis_service}.service"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash this with the three or four other commits that fixed redis/valkey for suse.

extra_packages = ""
if redis_package == "valkey":
if m.image == "fedora-40":
Expand Down Expand Up @@ -1320,6 +1321,8 @@ class TestMetricsPackages(packagelib.PackageCase):
""")
# HACK: pcp does not clean up correctly on Debian https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986074
m.execute("rm -f /etc/systemd/system/pmlogger.service.requires/pmlogger_farm.service")
elif "suse" in m.image:
m.execute(f"zypper rm -y pcp python3-pcp {redis_package} {extra_packages}")
else:
m.execute(f"rpm --erase --verbose pcp python3-pcp {redis_package} {extra_packages}")
if "centos-8" in m.image or "rhel-8" in m.image:
Expand All @@ -1338,7 +1341,7 @@ class TestMetricsPackages(packagelib.PackageCase):
"/lib/systemd/system/pmproxy.service": dummy_service,
}
redis_content = {
f"/lib/systemd/system/{redis_service}.service": dummy_service,
f"/lib/systemd/system/{redis_service}": dummy_service,
}

self.createPackage("python3-pcp", "999", "1", content=cpcp_content, depends="pcp")
Expand Down