diff options
author | Miloslav Trmač <mitr@redhat.com> | 2021-10-21 20:52:38 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2021-12-10 18:16:27 +0100 |
commit | 5bbcfaf4aa4f276423d9fae31aee5945b7f5a9b8 (patch) | |
tree | d3299e7b8ac7a0ce046a1e3e30d0bfc85c77e82b /pkg/auth/auth_test.go | |
parent | 3cfefa1248feb9de8041b9fc67987b508d4c3fcb (diff) | |
download | podman-5bbcfaf4aa4f276423d9fae31aee5945b7f5a9b8.tar.gz podman-5bbcfaf4aa4f276423d9fae31aee5945b7f5a9b8.tar.bz2 podman-5bbcfaf4aa4f276423d9fae31aee5945b7f5a9b8.zip |
Make XRegistryAuthHeader and XRegistryConfigHeader private
... now that they have no public users.
Also remove the HeaderAuthName type, we don't need the type-safety
so much for private constants, and using plain strings results in
less visual noise.
Should not change behavior.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'pkg/auth/auth_test.go')
-rw-r--r-- | pkg/auth/auth_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/auth/auth_test.go b/pkg/auth/auth_test.go index bce488a91..f7e6e4ef6 100644 --- a/pkg/auth/auth_test.go +++ b/pkg/auth/auth_test.go @@ -217,7 +217,7 @@ func TestMakeXRegistryConfigHeader(t *testing.T) { assert.Empty(t, res, tc.name) } else { require.Len(t, res, 1, tc.name) - header, ok := res[XRegistryConfigHeader.String()] + header, ok := res[xRegistryConfigHeader] require.True(t, ok, tc.name) decodedHeader, err := base64.URLEncoding.DecodeString(header) require.NoError(t, err, tc.name) @@ -280,7 +280,7 @@ func TestMakeXRegistryAuthHeader(t *testing.T) { assert.Empty(t, res, tc.name) } else { require.Len(t, res, 1, tc.name) - header, ok := res[XRegistryAuthHeader.String()] + header, ok := res[xRegistryAuthHeader] require.True(t, ok, tc.name) decodedHeader, err := base64.URLEncoding.DecodeString(header) require.NoError(t, err, tc.name) |