diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index a6de4ac5..209fe81d 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -78,6 +78,8 @@ func TestExchangeToken(t *testing.T) { // Start a test server that returns successfully and asserts various properties of the request. caBundle, endpoint := startTestServer(t, func(w http.ResponseWriter, r *http.Request) { + require.Equal(t, http.MethodPost, r.Method) + require.Equal(t, "/apis/placeholder.suzerain-io.github.io/v1alpha1/loginrequests", r.URL.Path) require.Equal(t, "application/json", r.Header.Get("content-type")) body, err := ioutil.ReadAll(r.Body)