From 3bc0389bab4627673e60f1c9374e6261c067fb28 Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Wed, 29 Jul 2020 13:38:15 -0500 Subject: [PATCH] Add some missing assertions in pkg/client/client_test.go. Signed-off-by: Matt Moyer --- pkg/client/client_test.go | 2 ++ 1 file changed, 2 insertions(+) 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)