-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] tag v1.6.2 unit-test TestMatchRegistryAuths case4(test4) failed #1583
Comments
I attempted to reproduce it, but it passed. Can you still reproduce it now? |
Yes, maybe because I use mac M1? I'm really confused, could u plz tell me ur environment?
Env:
|
Hi, @Colvin-Y . The core code stack is:
|
Hi, @ABNER-1.
And I've tried to print the result from function
What config should I check? |
I plan to debug it again this weekend. However, if you'd like to take a crack at it, please feel free to do so. @Colvin-Y |
func readDockerConfigJSONFileFromBytes(contents []byte) (cfg DockerConfig, err error) {
var cfgJSON DockerConfigJSON
if err = json.Unmarshal(contents, &cfgJSON); err != nil {
return nil, errors.New("error occurred while trying to unmarshal json")
}
cfg = cfgJSON.Auths
return
} The 'auths' value in docker/config.json will be regarded as authentication information for the public Docker registry. It should be disregarded in Test Case 4. |
A simple solution in my opinion:
|
Got it! thx! |
What happened:
I use kruise tag v1.6.2 to run unit-test with go version 1.19 & 1.20
What you expected to happen:
All unit-test should pass but case TestMatchRegistryAuths(https://github.com/openkruise/kruise/blob/v1.6.2/pkg/daemon/criruntime/imageruntime/helpers_test.go#L89) failed,
How to reproduce it (as minimally and precisely as possible):
Run test case TestMatchRegistryAuths
Anything else we need to know?:
Environment:
kubectl version
): unit-testThe text was updated successfully, but these errors were encountered: