Skip to content

Commit b4a831f

Browse files
committed
try something else
1 parent 8d88d69 commit b4a831f

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

nexus/tests/integration_tests/unauthorized.rs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,17 @@ async fn test_unauthorized(cptestctx: &ControlPlaneTestContext) {
7676
const VERIFY_HEADER: &str = r#"
7777
SUMMARY OF REQUESTS MADE
7878
79-
KEY:
79+
KEY, USING HEADER AND EXAMPLE ROW:
8080
8181
+----------------------------> privileged GET (expects 200)
8282
| (digit = last digit of 200-level
8383
| response)
8484
|
85-
| +----+----+----+----+----> HTTP methods tested (see below)
86-
| | | | | | (digit = last digit of 400-level
87-
| | | | | | response)
88-
| | | | | |
89-
| | | | | | +-> privileged GET (expects same as above)
90-
| | | | | | | (digit = last digit of 200-level
91-
| | | | | | | response)
92-
| _| _| _| _| _| | ('-' => skipped (N/A))
93-
^ / \ / \ / \ / \ / \ ^
85+
| +-> privileged GET (expects same as above)
86+
| | (digit = last digit of 200-level
87+
| | response)
88+
| | ('-' => skipped (N/A))
89+
^ ^
9490
HEADER: G GET PUT POST DEL TRCE G URL
9591
EXAMPLE: 0 3111 5555 3111 5555 5555 0 /organizations
9692
ROW ^^^^
@@ -100,6 +96,12 @@ EXAMPLE: 0 3111 5555 3111 5555 5555 0 /organizations
10096
+|----------------------< bad authentication: no such user
10197
+----------------------< bad authentication: invalid syntax
10298
99+
\__/ \__/ \__/ \__/ \__/
100+
GET PUT etc. The test cases are repeated for each HTTP method.
101+
102+
The number in each cell is the last digit of the 400-level response
103+
that was expected for this test case.
104+
103105
In this case, an unauthenthicated request to "GET /organizations" returned
104106
401. All requests to "PUT /organizations" returned 405.
105107

0 commit comments

Comments
 (0)