e2e: add private registry pull/push regression test#7007
Conversation
|
Reopened and pushed a fix for the e2e failures in #6940. Root cause: Fix: use Happy to fold this into #6940 instead if maintainers prefer a single PR. |
aa3a10d to
b2e3d39
Compare
|
@vvoland @thaJeztah — when you have a moment, could you please approve the workflow runs for this PR? Any review feedback is very welcome. Thank you. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
2b2f60f to
ec2b6e3
Compare
CI failure root-cause analysis and fixesThree separate issues were identified and resolved in this PR. Each is described below. 1. Private registry unreachable — DNS
|
|
Hi @vvoland @thaJeztah — gentle follow-up when you have a moment. The CI issues called out earlier have been addressed in the latest commit on this branch (registry compose setup, auth/htpasswd alignment, and the push-output assertion). I left a root-cause summary in an earlier comment on this PR for reference. Could you please:
Happy to make any further changes if anything else comes up in review. Thank you for your time. |
Add a privateregistry service (htpasswd auth, port 5001) to the e2e compose stack and a TestPullPushPrivateRepository test that verifies: - unauthenticated push/pull is rejected with an auth error - authenticated push/pull succeeds The volume path in compose-env.yaml is resolved relative to the compose file directory (e2e/), so use ./testdata/registry/auth, not ./e2e/testdata/registry/auth. Regression test for docker#5963. Closes docker#5965. Signed-off-by: aryansharma9917 <sharmaaryan9837@gmail.com> Signed-off-by: Lohit Kolluri <lohitkolluri@gmail.com>
ec2b6e3 to
80f993f
Compare
Add a
privateregistryservice (htpasswd auth, port 5001) to the e2ecompose stack and a
TestPullPushPrivateRepositorytest that verifies:docker push/docker pullis rejected with an auth errordocker push/docker pullsucceedsThe volume path in
compose-env.yamlis resolved relative to the composefile directory (
e2e/), so./testdata/registry/authis used instead of./e2e/testdata/registry/auth. This was the root cause of CI failures inthe earlier attempt (#6940):
the htpasswd file never mounted, the registry never started, and every
operation timed out with a DNS error.
Regression test for #5963.
Carries forward #6940 (original author: @AryanSharma9917).
Closes #5965.