Skip to content

Commit cf44e31

Browse files
Merge pull request #6310 from thaJeztah/28.x_backport_rm_decodeauthconfig
[28.x backport] cli/command: TestRetrieveAuthTokenFromImage: don't decode authconfig
2 parents ce3196c + be307b2 commit cf44e31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/command/registry_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ func TestRetrieveAuthTokenFromImage(t *testing.T) {
185185
imageRef := path.Join(tc.prefix, remoteRef)
186186
actual, err := command.RetrieveAuthTokenFromImage(&cfg, imageRef)
187187
assert.NilError(t, err)
188-
ac, err := registry.DecodeAuthConfig(actual)
188+
expectedAuthCfg, err := registry.EncodeAuthConfig(tc.expectedAuthCfg)
189189
assert.NilError(t, err)
190-
assert.Check(t, is.DeepEqual(*ac, tc.expectedAuthCfg))
190+
assert.Equal(t, actual, expectedAuthCfg)
191191
}
192192
})
193193
}

0 commit comments

Comments
 (0)