From cc14c80caa83cc3aa5b4b8ee6455447bd1b9e3bd Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Tue, 28 Feb 2017 15:59:34 -0800 Subject: [PATCH] test/security: add test for simulated auth failure --- t/t0017-security.t | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/t0017-security.t b/t/t0017-security.t index e4947fea1624..ac10bb5d89ec 100755 --- a/t/t0017-security.t +++ b/t/t0017-security.t @@ -10,4 +10,11 @@ test_expect_success 'verify fake munge encoding of messages' ' ${FLUX_BUILD_DIR}/src/test/tmunge --fake ' +test_expect_success 'simulated local connector auth failure returns EPERM' ' + flux comms info && + flux debug --set 1 connector-local && + test_must_fail flux comms info 2>authfail.out && + grep -q "Operation not permitted" authfail.out +' + test_done