Skip to content

Commit

Permalink
test: Adjust TestIPA.testClientCertAuthentication to changed loginctl…
Browse files Browse the repository at this point in the history
… 255 output format

Commit 800c89f fixed this for check-static-login already. Debian
testing now got systemd 255 and ran into this changed output format as
well.
  • Loading branch information
martinpitt committed Jan 3, 2024
1 parent ea9a84d commit 50f5d74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/verify/check-system-realms
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,10 @@ class CommonTests:
if "State: active" in out: # skip closing sessions
self.assertIn(session_leader, out)
self.assertIn('cockpit-bridge', out)
self.assertIn('cockpit; type web', out)
# systemd < 255: "Service: cockpit; type web; class user"
# systemd ≥ 255: "Service: cockpit\n Type: web\n Class: user"
self.assertRegex(out, r"Service:\s+cockpit")
self.assertRegex(out, "[tT]ype.*web")
break
else:
self.fail("no active session for active user")
Expand Down

0 comments on commit 50f5d74

Please sign in to comment.