Skip to content

Commit

Permalink
perform tests against lowercase output
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Haeublein committed Feb 24, 2022
1 parent 834c5f4 commit 99a6a7d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ get_csrf_token() {
http --session=batsSession -j --print=hb --pretty=format \
GET ${url}/accounts \
X-CSRF-TOKEN:${csrfToken} \
Accept:\*/\*
Accept:\*/\* \
| tr '[:upper:]' '[:lower:]'

}
run perform_test
assert_output --partial '[]'
assert_output --partial 'X-Openapi-Message: successful operation'
assert_output --partial 'x-openapi-message: successful operation'
}
@test "logout" {
perform_test() {
Expand All @@ -74,9 +75,10 @@ get_csrf_token() {
http --session=batsSession -j --print=hb --pretty=format \
GET ${url}/accounts \
X-CSRF-TOKEN:${csrfToken} \
Accept:\*/\*
Accept:\*/\* \
| tr '[:upper:]' '[:lower:]'

}
run perform_test
refute_output --partial 'X-Openapi-Message: successful operation'
refute_output --partial 'x-openapi-message: successful operation'
}

0 comments on commit 99a6a7d

Please sign in to comment.