Skip to content

Conversation

@sjha4
Copy link
Member

@sjha4 sjha4 commented Sep 8, 2025

Steps to reproduce:

  1. Have a host registered via smart proxy
  2. Ensure smart proxy has no container repos in any of the assigned environments.
  3. Run complete sync on smart proxy.

The sync should finish successfully.

Check the hosts_repositories table, it should be empty.

Try the happy path with a host registered to proxy with some container repos in an authenticated pull environment. Make sure the hosts_repositories table gets properly populated.

Tests in the PR are AI generated with claude code. Looks comprehensive so pushing it as part of PR.

Copy link
Contributor

@qcjames53 qcjames53 left a comment

Choose a reason for hiding this comment

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

I can confirm build_host_entries returns a correct selection of repositories over a variety of scenarios. The host_repositories table appears to be left empty/filled where appropriate. The current unit tests seem good to me. There is a little overlap with some of the tests (nil vs empty lists) but I'll never knock a PR for too many unit tests :)

ACKing!

@qcjames53 qcjames53 merged commit e43b53f into Katello:main Sep 12, 2025
12 checks passed
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