audit: wire through non-nil context everywhere

This commit is contained in:
Dr. Stefan Schimanski
2017-05-17 17:23:23 +02:00
parent 0b5bcb0219
commit ce942d19c3
19 changed files with 143 additions and 66 deletions

View File

@@ -234,7 +234,7 @@ func TestAPIVersionOfDiscoveryEndpoints(t *testing.T) {
master, etcdserver, _, assert := newMaster(t)
defer etcdserver.Terminate(t)
server := httptest.NewServer(master.GenericAPIServer.Handler.GoRestfulContainer.ServeMux)
server := httptest.NewServer(genericapirequest.WithRequestContext(master.GenericAPIServer.Handler.GoRestfulContainer.ServeMux, master.GenericAPIServer.RequestContextMapper()))
// /api exists in release-1.1
resp, err := http.Get(server.URL + "/api")