Skip to content

Commit

Permalink
integration: use constants for http methods
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Oct 13, 2019
1 parent d1e837d commit 9ed5898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/plugin/authz/authz_plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func TestAuthZPluginAPIDenyResponse(t *testing.T) {
conn, err := net.DialTimeout(daemonURL.Scheme, daemonURL.Path, time.Second*10)
assert.NilError(t, err)
c := httputil.NewClientConn(conn, nil)
req, err := http.NewRequest("GET", "/version", nil)
req, err := http.NewRequest(http.MethodGet, "/version", nil)
assert.NilError(t, err)
resp, err := c.Do(req)

Expand Down Expand Up @@ -477,7 +477,7 @@ func TestAuthZPluginHeader(t *testing.T) {
conn, err := net.DialTimeout(daemonURL.Scheme, daemonURL.Path, time.Second*10)
assert.NilError(t, err)
client := httputil.NewClientConn(conn, nil)
req, err := http.NewRequest("GET", "/version", nil)
req, err := http.NewRequest(http.MethodGet, "/version", nil)
assert.NilError(t, err)
resp, err := client.Do(req)
assert.NilError(t, err)
Expand Down

0 comments on commit 9ed5898

Please sign in to comment.