Skip to content

Add e2e test for authorized pull/push to private repo #6194

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AryanSharma9917
Copy link

- What I did

Added an end-to-end (e2e) test to verify authenticated pull and push operations to a private Docker registry.

- How I did it

Created e2e/auth_test.go which:

  • Uses environment variables for credentials (DOCKER_USERNAME, DOCKER_PASSWORD, PRIVATE_REPO)
  • Logs in to Docker registry
  • Pulls, tags, pushes, removes, and pulls back a Docker image

- How to verify it

Run the e2e test with the required environment variables set in your local or CI environment.

- Human readable description for the release notes

Add e2e test for authenticated pull/push to private Docker registry

- Related issue
Closes #5965

Copy link
Collaborator

@vvoland vvoland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

This should setup a temporary registry with auth that the CLI connects to, so we don't rely on the Docker Hub and don't need to put real credentials for tests.

@AryanSharma9917
Copy link
Author

AryanSharma9917 commented Jul 18, 2025

Thanks!

This should setup a temporary registry with auth that the CLI connects to, so we don't rely on the Docker Hub and don't need to put real credentials for tests.

Thanks! I’ll update the test to spin up a temporary registry:2 container with htpasswd-based auth and run push/pull operations against it locally.

@AryanSharma9917 AryanSharma9917 requested a review from vvoland July 18, 2025 14:23
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.

Add e2e test for authorized pull/push
2 participants