Skip to content

Commit

Permalink
t2200-job-ingest: fix badowner and badrole tests
Browse files Browse the repository at this point in the history
The tests for submission with bad signature and bad role in the
job ingest checks were checking for the wrong strings in the
error output. Add the actual expected strings in the check to
avoid these false failures.
  • Loading branch information
grondo committed Sep 4, 2018
1 parent 8d1b0e0 commit 403e9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/t2200-job-ingest.t
Expand Up @@ -81,13 +81,13 @@ test_expect_success 'job-ingest: submit job 100 times, reuse signature' '
test_expect_success HAVE_FLUX_SECURITY 'job-ingest: submit user != signed user fails' '
! FLUX_HANDLE_USERID=9999 ${SUBMITBENCH} \
${JOBSPEC}/valid/basic.yaml 2>baduser.out &&
grep -q permitted baduser.out
grep -q "signer=$(id -u) != requestor=9999" baduser.out
'

test_expect_success HAVE_FLUX_SECURITY 'job-ingest: non-owner mech=none fails' '
! FLUX_HANDLE_ROLEMASK=0x2 ${SUBMITBENCH} \
${JOBSPEC}/valid/basic.yaml 2>badrole.out &&
grep -q permitted badrole.out
grep -q "only instance owner" badrole.out
'

test_done

0 comments on commit 403e9d8

Please sign in to comment.