Skip to content
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

tests: factorize & fix URL for candlepin owner #191

Merged

Conversation

ptoscano
Copy link
Collaborator

@ptoscano ptoscano commented Aug 1, 2024

The Candlepin URL used to query the owner (= organization) used in the tests when using the self-deployed Candlepin was wrong, using the username rather than the organization name. It works fine because the username and the organization name are currently the same.

Hence, to avoid issues in the future, properly use the organization name instead. To simplify the maintenance of that code, create a new helper fact with the Candlepin URL for the current owner.

There is no behaviour change in the tests.

@ptoscano ptoscano requested a review from richm as a code owner August 1, 2024 07:33
@ptoscano
Copy link
Collaborator Author

ptoscano commented Aug 1, 2024

[citest]

@ptoscano
Copy link
Collaborator Author

ptoscano commented Aug 1, 2024

[citest bad]

@ptoscano
Copy link
Collaborator Author

ptoscano commented Aug 2, 2024

[citest bad]

2 similar comments
@richm
Copy link
Contributor

richm commented Aug 2, 2024

[citest bad]

@richm
Copy link
Contributor

richm commented Aug 2, 2024

[citest bad]

@richm
Copy link
Contributor

richm commented Aug 2, 2024

[citest_bad]

@richm
Copy link
Contributor

richm commented Aug 2, 2024

[citest]

The Candlepin URL used to query the owner (= organization) used in the
tests when using the self-deployed Candlepin was wrong, using the
username rather than the organization name. It works fine because the
username and the organization name are currently the same.

Hence, to avoid issues in the future, properly use the organization name
instead. To simplify the maintenance of that code, create a new helper
fact with the Candlepin URL for the current owner.

There is no behaviour change in the tests.

Signed-off-by: Pino Toscano <[email protected]>
@ptoscano
Copy link
Collaborator Author

ptoscano commented Aug 5, 2024

[citest]

@spetrosi
Copy link
Contributor

spetrosi commented Aug 5, 2024

[citest_bad]

@richm
Copy link
Contributor

richm commented Aug 5, 2024

I think we should go ahead and merge this PR. The failures are due to known issues not related to this PR, and we have a plan to address them.

@ptoscano
Copy link
Collaborator Author

ptoscano commented Aug 5, 2024

I think we should go ahead and merge this PR. The failures are due to known issues not related to this PR, and we have a plan to address them.

OK. I simply want to avoid forgetting about the issues, and then CI jobs keeps becoming more and more red :-(

@ptoscano ptoscano merged commit 449e1bf into linux-system-roles:main Aug 5, 2024
20 of 24 checks passed
@ptoscano ptoscano deleted the tests-candlepin-owner-url branch August 5, 2024 14:35
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.

3 participants