Skip to content

Commit

Permalink
test: add test for key revocation
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed Nov 3, 2023
1 parent 4ceee1c commit 151bf23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bats/core/api-keys/api-keys.bats
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,9 @@ new_key_name() {

revoked="$(graphql_output '.data.me.apiKeys[-1].revoked')"
[[ "${revoked}" = "true" ]] || exit 1

exec_graphql 'api-key-secret' 'api-keys'

error="$(graphql_output '.error.code')"
[[ "${error}" = "401" ]] || exit 1
}

0 comments on commit 151bf23

Please sign in to comment.