Skip to content

Commit

Permalink
Add test for showing API error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
cgascoig committed Aug 8, 2023
1 parent 5cbf311 commit 84c5b5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/ntp_policy.bats
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ TEST_SECTION="NTP Policy CRUD"
! ./build/isctl ${ISCTL_OPTIONS} get ntp policy | grep "${DELBYNAME_POLICY_NAME}"
}

@test "${TEST_SECTION}: test API error messages shown" {
run ./build/isctl ${ISCTL_OPTIONS} create ntp policy
assert_line --partial "400 Bad Request: Cannot set the property 'policy.AbstractPolicy.Name'. The property cannot be empty."
}

setup_file() {
# delete the test policy if it already exists. Don't check the exit code.
Expand Down

0 comments on commit 84c5b5b

Please sign in to comment.