From 0d315fd725b0be49665cefbbe6986e92dd643ae0 Mon Sep 17 00:00:00 2001 From: Ruben Vargas <ruben.vp8510@gmail.com> Date: Mon, 14 Oct 2019 16:54:33 -0500 Subject: [PATCH] Improve test Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com> --- test/e2e/elasticsearch_token_propagation_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/e2e/elasticsearch_token_propagation_test.go b/test/e2e/elasticsearch_token_propagation_test.go index b8b3c15787..a2ca9f3841 100644 --- a/test/e2e/elasticsearch_token_propagation_test.go +++ b/test/e2e/elasticsearch_token_propagation_test.go @@ -83,8 +83,6 @@ func (suite *TokenPropagationTestSuite) TestTokenPropagationTest() { queryHost := "token-prop-" + namespace + ".127.0.0.1.nip.io" queryServicesEndpoint := "https://" + queryHost + "/api/services" - print(queryServicesEndpoint) - client, err := oAuthAuthorization(queryHost, "user-test-token", "any") require.NoError(t, err) @@ -94,7 +92,7 @@ func (suite *TokenPropagationTestSuite) TestTokenPropagationTest() { require.NoError(t, err) resp, err := client.Do(req) require.NoError(t, err) - require.Equal(t, resp.StatusCode, 200) + require.Equal(t, http.StatusOK, resp.StatusCode) defer resp.Body.Close() return true, nil