-
Notifications
You must be signed in to change notification settings - Fork 0
[build-images] Authenticate in both org default registries #217
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -172,9 +172,15 @@ def execute(self): | |
| if self.login_required: | ||
| self.login( | ||
| self.auth_strategy, | ||
| default_registry, | ||
| default_registry_creds, | ||
| self.snapshots_registry, | ||
| self.snapshots_registry_creds, | ||
|
Comment on lines
172
to
+176
|
||
| ) | ||
| if self.releases_registry != self.snapshots_registry: | ||
| self.login( | ||
| self.auth_strategy, | ||
| self.releases_registry, | ||
| self.releases_registry_creds, | ||
| ) | ||
|
|
||
| for flavor in self.flavors: | ||
| logger.info(f"Building flavor {flavor}...") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_executeonly asserts the count oflogin()calls. With the new “login to both registries” behavior, this becomes more brittle and doesn’t verify the important part (that we logged into bothsnapshots_registryandreleases_registry). Consider asserting againstlogin_mock.call_args_list(or matching specific expected calls withANY) so the test validates the registries/creds/auth_strategy, not just the total number of calls.