Skip to content

test: add test cases for docker upload auth handling - #723

Open
prascli wants to merge 1 commit into
simplesurance:mainfrom
prascli:fix/100-docker-upload-tests
Open

prascli wants to merge 1 commit into
simplesurance:mainfrom
prascli:fix/100-docker-upload-tests

Conversation

@prascli

@prascli prascli commented Nov 13, 2026

Copy link
Copy Markdown

Add test cases for docker upload auth handling.

This PR adds unit tests for the Docker image upload authentication handling:

  • Test case for registry with authentication (registry-with-auth)
  • Tests cover the getAuth function which is used by the Docker image upload process

The tests verify that:

  1. Authentication credentials are correctly returned for registries that require auth
  2. The getAuth function handles various registry URL formats correctly

Refs #100

Verification

  • All existing tests pass
  • New tests added and passing
  • go test ./internal/output/docker/... -v -run TestGetAuth passes
  • Full test suite go test ./... passes

- Add test case for registry with authentication
- Tests cover the getAuth function used by Docker image upload

Refs simplesurance#100
@prascli prascli mentioned this pull request Nov 13, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant