Skip to content

Commit

Permalink
test/security: add test for simulated auth failure
Browse files Browse the repository at this point in the history
  • Loading branch information
garlick committed Mar 2, 2017
1 parent 3bfc8f8 commit d876526
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions t/t0017-security.t
Original file line number Diff line number Diff line change
Expand Up @@ -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 module debug --set 1 connector-local &&
test_must_fail flux comms info 2>authfail.out &&
grep -q "Operation not permitted" authfail.out
'

test_done

0 comments on commit d876526

Please sign in to comment.