diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2021-08-26 21:08:38 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2022-07-29 23:04:34 +0200 |
commit | 857cb260c79a4c43fa0705ac4f117b85bcc9dfc5 (patch) | |
tree | a2f3788284b1a822ed37567ca475a6f051de1d36 /client/image_push_test.go | |
parent | 6e213899177faac5c4bf9bdc68ac2899fb0916e1 (diff) | |
download | docker-857cb260c79a4c43fa0705ac4f117b85bcc9dfc5.tar.gz |
api: add const for 'X-Registry-Auth'
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'client/image_push_test.go')
-rw-r--r-- | client/image_push_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/image_push_test.go b/client/image_push_test.go index 9b161717ca..bd4b0b2fe3 100644 --- a/client/image_push_test.go +++ b/client/image_push_test.go @@ -10,6 +10,7 @@ import ( "testing" "github.com/docker/docker/api/types" + "github.com/docker/docker/api/types/registry" "github.com/docker/docker/errdefs" ) @@ -88,7 +89,7 @@ func TestImagePushWithPrivilegedFuncNoError(t *testing.T) { if !strings.HasPrefix(req.URL.Path, expectedURL) { return nil, fmt.Errorf("Expected URL '%s', got '%s'", expectedURL, req.URL) } - auth := req.Header.Get("X-Registry-Auth") + auth := req.Header.Get(registry.AuthHeader) if auth == "NotValid" { return &http.Response{ StatusCode: http.StatusUnauthorized, |