Skip to content

Commit

Permalink
Improve test
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Vargas <[email protected]>
  • Loading branch information
rubenvp8510 committed Oct 15, 2019
1 parent 8b7798f commit 0d315fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/e2e/elasticsearch_token_propagation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand Down

0 comments on commit 0d315fd

Please sign in to comment.