Skip to content

Commit

Permalink
allow tests passing locally to pass in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedoublev committed Nov 13, 2024
1 parent 47791e1 commit 450a82f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions e2e/subject-mapping.bats
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ teardown_file() {
assert_success
assert_output --partial "$NEW_SM_ID"

run_otdfctl_sm match --subject '{"department":"any_department"}'
matched_subject='{"department":"any_department"}'
run ./otdfctl policy sm match --subject "$matched_subject" $HOST $WITH_CREDS
assert_success
assert_output --partial "$NEW_SM_ID"

Expand All @@ -79,7 +80,8 @@ teardown_file() {
assert_success
refute_output --partial "$NEW_SM_ID"

run_otdfctl_sm match -s '{"dept":"nope"}'
unmatched_subject='{"dept":"nope"}'
run ./otdfctl policy sm match -s "$unmatched_subject" $HOST $WITH_CREDS
assert_success
refute_output --partial "$NEW_SM_ID"

Expand Down

0 comments on commit 450a82f

Please sign in to comment.