Skip to content

Commit

Permalink
Fix integration test to return 404 where a resource is not even suppo…
Browse files Browse the repository at this point in the history
…rted
  • Loading branch information
derekwaynecarr committed Feb 2, 2015
1 parent 0851ca9 commit d3579f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ func getTestRequests() []struct {
{"GET", "/api/v1beta1/bindings", "", code405}, // Bindings are write-only
{"POST", "/api/v1beta1/pods" + timeoutFlag, aPod, code200}, // Need a pod to bind or you get a 404
{"POST", "/api/v1beta1/bindings" + timeoutFlag, aBinding, code200},
{"PUT", "/api/v1beta1/bindings/a" + timeoutFlag, aBinding, code405},
{"PUT", "/api/v1beta1/bindings/a" + timeoutFlag, aBinding, code404},
{"GET", "/api/v1beta1/bindings", "", code405},
{"GET", "/api/v1beta1/bindings/a", "", code405}, // No bindings instances
{"DELETE", "/api/v1beta1/bindings/a" + timeoutFlag, "", code405},
{"GET", "/api/v1beta1/bindings/a", "", code404}, // No bindings instances
{"DELETE", "/api/v1beta1/bindings/a" + timeoutFlag, "", code404},

// Non-existent object type.
{"GET", "/api/v1beta1/foo", "", code404},
Expand Down

0 comments on commit d3579f0

Please sign in to comment.