-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eec6002
commit d1168ab
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |