Blob Blame History Raw
From 36e0fa44509186a24d4275eefcf9ac2d12d0e0f7 Mon Sep 17 00:00:00 2001
From: petervo <petervo@redhat.com>
Date: Thu, 8 Sep 2016 09:21:26 -0700
Subject: [PATCH 1/2] test: Ensure cockpit-session debug is off

Closes #4996
Reviewed-by: Stef Walter <stefw@redhat.com>
---
 test/verify/check-login | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/verify/check-login b/test/verify/check-login
index 5d9f895..813174e 100755
--- a/test/verify/check-login
+++ b/test/verify/check-login
@@ -87,6 +87,11 @@ account    required     pam_succeed_if.so user ingroup %s""" % m.get_admin_group
         b.click('#go-account')
         b.enter_page("/users")
         b.wait_text ("#account-user-name", "admin")
+        try:
+            m.execute("journalctl -p 7 SYSLOG_IDENTIFIER=cockpit-ws | grep 'cockpit-session: opening pam session'")
+            assert False, "cockpit-session debug messsages found"
+        except subprocess.CalledProcessError:
+            pass
 
         self.allow_journal_messages ("Returning error-response ... with reason .*",
                             "pam_unix\(cockpit:auth\): authentication failure; .*",
-- 
1.8.3.1