@@ -76,21 +76,17 @@ async fn test_unauthorized(cptestctx: &ControlPlaneTestContext) {
76
76
const VERIFY_HEADER : & str = r#"
77
77
SUMMARY OF REQUESTS MADE
78
78
79
- KEY:
79
+ KEY, USING HEADER AND EXAMPLE ROW :
80
80
81
81
+----------------------------> privileged GET (expects 200)
82
82
| (digit = last digit of 200-level
83
83
| response)
84
84
|
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
+ ^ ^
94
90
HEADER: G GET PUT POST DEL TRCE G URL
95
91
EXAMPLE: 0 3111 5555 3111 5555 5555 0 /organizations
96
92
ROW ^^^^
@@ -100,6 +96,12 @@ EXAMPLE: 0 3111 5555 3111 5555 5555 0 /organizations
100
96
+|----------------------< bad authentication: no such user
101
97
+----------------------< bad authentication: invalid syntax
102
98
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
+
103
105
In this case, an unauthenthicated request to "GET /organizations" returned
104
106
401. All requests to "PUT /organizations" returned 405.
105
107
0 commit comments