8000 fix: nil docker auth test by tedim52 · Pull Request #2630 · kurtosis-tech/kurtosis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: nil docker auth test #2630

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

Merged
merged 3 commits into from
Feb 7, 2025
Merged

fix: nil docker auth test #2630

merged 3 commits into from
Feb 7, 2025

Conversation

tedim52
Copy link
Collaborator
@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
@tedim52 tedim52 enabled auto-merge February 7, 2025 16:40
@tedim52 tedim52 added this pull request to the merge queue Feb 7, 2025
Merged via the queue into main with commit ae3b2e6 Feb 7, 2025
51 checks passed
@tedim52 tedim52 deleted the tedi/fix-docker-auth-test branch February 7, 2025 17:03
github-merge-queue bot pushed a commit that referenced this pull request Feb 12, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.5.0](1.4.4...1.5.0)
(2025-02-07)


### Features

* Allow builtin manipulation for programmatic use
([#2642](#2642))
([bb508ca](bb508ca))


### Bug Fixes

* nil docker auth test
([#2630](#2630))
([ae3b2e6](ae3b2e6))
* Stdout/Stderr mixing in commands
([#2637](#2637))
([afe0d87](afe0d87))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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
0