pgreco / rpms / cockpit

Forked from forks/areguera/rpms/cockpit 5 years ago
Clone

Blame SOURCES/0001-test-Ensure-cockpit-session-debug-is-off.patch

05ac80
From 36e0fa44509186a24d4275eefcf9ac2d12d0e0f7 Mon Sep 17 00:00:00 2001
05ac80
From: petervo <petervo@redhat.com>
05ac80
Date: Thu, 8 Sep 2016 09:21:26 -0700
05ac80
Subject: [PATCH 1/2] test: Ensure cockpit-session debug is off
05ac80
05ac80
Closes #4996
05ac80
Reviewed-by: Stef Walter <stefw@redhat.com>
05ac80
---
05ac80
 test/verify/check-login | 5 +++++
05ac80
 1 file changed, 5 insertions(+)
05ac80
05ac80
diff --git a/test/verify/check-login b/test/verify/check-login
05ac80
index 5d9f895..813174e 100755
05ac80
--- a/test/verify/check-login
05ac80
+++ b/test/verify/check-login
05ac80
@@ -87,6 +87,11 @@ account    required     pam_succeed_if.so user ingroup %s""" % m.get_admin_group
05ac80
         b.click('#go-account')
05ac80
         b.enter_page("/users")
05ac80
         b.wait_text ("#account-user-name", "admin")
05ac80
+        try:
05ac80
+            m.execute("journalctl -p 7 SYSLOG_IDENTIFIER=cockpit-ws | grep 'cockpit-session: opening pam session'")
05ac80
+            assert False, "cockpit-session debug messsages found"
05ac80
+        except subprocess.CalledProcessError:
05ac80
+            pass
05ac80
 
05ac80
         self.allow_journal_messages ("Returning error-response ... with reason .*",
05ac80
                             "pam_unix\(cockpit:auth\): authentication failure; .*",
05ac80
-- 
05ac80
1.8.3.1
05ac80