We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce3196c + be307b2 commit cf44e31Copy full SHA for cf44e31
cli/command/registry_test.go
@@ -185,9 +185,9 @@ func TestRetrieveAuthTokenFromImage(t *testing.T) {
185
imageRef := path.Join(tc.prefix, remoteRef)
186
actual, err := command.RetrieveAuthTokenFromImage(&cfg, imageRef)
187
assert.NilError(t, err)
188
- ac, err := registry.DecodeAuthConfig(actual)
+ expectedAuthCfg, err := registry.EncodeAuthConfig(tc.expectedAuthCfg)
189
190
- assert.Check(t, is.DeepEqual(*ac, tc.expectedAuthCfg))
+ assert.Equal(t, actual, expectedAuthCfg)
191
}
192
})
193
0 commit comments