Skip to content
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

fix: nil docker auth test #2630

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: nil docker auth test #2630

wants to merge 1 commit into from

Conversation

tedim52
Copy link
Contributor

@tedim52 tedim52 commented Jan 14, 2025

Description

I kept having an issue where TestGetAuthWithNoAuthSetReturnsNilAndNoError would pull from my actual auth and thus fail because my auth settings were not nil (my auth is set at $HOME/.docker/config.json which is where loadDockerAuth() checks if DOCKER_CONFIG is not set). I fixed this by adjusting the writeStaticConfig to accept an empty string, which doesn't set any auth, but does update the DOCKER_CONFIG dir to a temporary test one. This way it never uses a users actual auth directory - which could be set.

Is this change user facing?

YES

@tedim52 tedim52 requested a review from skylenet January 18, 2025 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants