mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	Fix up error detection regression to return correct status codes
This commit is contained in:
		| @@ -30,8 +30,11 @@ func TestLogical(t *testing.T) { | ||||
| 	testResponseStatus(t, resp, 204) | ||||
|  | ||||
| 	// READ | ||||
| 	resp = testHttpGet(t, token, addr+"/v1/secret/foo") | ||||
| 	// Bad token should return a 403 | ||||
| 	resp = testHttpGet(t, token+"bad", addr+"/v1/secret/foo") | ||||
| 	testResponseStatus(t, resp, 403) | ||||
|  | ||||
| 	resp = testHttpGet(t, token, addr+"/v1/secret/foo") | ||||
| 	var actual map[string]interface{} | ||||
| 	var nilWarnings interface{} | ||||
| 	expected := map[string]interface{}{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jeff Mitchell
					Jeff Mitchell