Skip to content

Commit

Permalink
added hurl test for post unauth
Browse files Browse the repository at this point in the history
  • Loading branch information
hpatel292-seneca committed Jul 22, 2024
1 parent eec6002 commit d1168ab
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/integration/post-fragments-unauthenticated.hurl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# tests/integration/post-fragments-unauthenticated.hurl
POST http://localhost:8080/v1/fragments
Content-Type: text/plain
[BasicAuth]
[email protected]:password1234
#Authorization: Basic dXNlcjFAZW1haWwuY29tOnBhc3N3b3JkMQ==
`This is a fragment!`

HTTP/1.1 401
[Asserts]
jsonpath "$.status" == "error"
jsonpath "$.error.code" == 401
jsonpath "$.error.message" == "Unauthorized"

0 comments on commit d1168ab

Please sign in to comment.