Skip to content

Commit 8d88d69

Browse files
committed
Ben's suggestion
1 parent ab659b6 commit 8d88d69

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

nexus/tests/integration_tests/unauthorized.rs

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,24 +76,29 @@ async fn test_unauthorized(cptestctx: &ControlPlaneTestContext) {
7676
const VERIFY_HEADER: &str = r#"
7777
SUMMARY OF REQUESTS MADE
7878
79-
+----------------------------- privileged GET (expects 200)
80-
| (digit = last digit of 200-level response)
79+
KEY:
80+
81+
+----------------------------> privileged GET (expects 200)
82+
| (digit = last digit of 200-level
83+
| response)
8184
|
82-
| +----+----+----+----+----- HTTP methods tested (see below)
83-
| | | | | | (digit = last digit of 400-level response)
85+
| +----+----+----+----+----> HTTP methods tested (see below)
86+
| | | | | | (digit = last digit of 400-level
87+
| | | | | | response)
8488
| | | | | |
85-
| | | | | | +-- privileged GET (expects same as above)
86-
| | | | | | | (digit = last digit of 200-level response)
89+
| | | | | | +-> privileged GET (expects same as above)
90+
| | | | | | | (digit = last digit of 200-level
91+
| | | | | | | response)
8792
| _| _| _| _| _| | ('-' => skipped (N/A))
88-
v / \ / \ / \ / \ / \ v
93+
^ / \ / \ / \ / \ / \ ^
8994
HEADER: G GET PUT POST DEL TRCE G URL
9095
EXAMPLE: 0 3111 5555 3111 5555 5555 0 /organizations
91-
ROW ||||
92-
|||| TEST CASES FOR EACH HTTP METHOD:
93-
+|||----------------------- authenticated, unauthorized request
94-
+||----------------------- unauthenticated request
95-
+|----------------------- bad authentication: no such user
96-
+----------------------- bad authentication: invalid syntax
96+
ROW ^^^^
97+
|||| TEST CASES FOR EACH HTTP METHOD:
98+
+|||----------------------< authenticated, unauthorized request
99+
+||----------------------< unauthenticated request
100+
+|----------------------< bad authentication: no such user
101+
+----------------------< bad authentication: invalid syntax
97102
98103
In this case, an unauthenthicated request to "GET /organizations" returned
99104
401. All requests to "PUT /organizations" returned 405.

0 commit comments

Comments
 (0)