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

RHBK support #17338

Merged
merged 4 commits into from
Feb 5, 2025
Merged

RHBK support #17338

merged 4 commits into from
Feb 5, 2025

Conversation

lhellebr
Copy link
Contributor

@lhellebr lhellebr commented Jan 15, 2025

Make changes so RHSSO tests become parametrized and work for both RHSSO and RHBK, limit TemplateSync tests

Problem Statement

Solution

Related Issues

@lhellebr lhellebr added CherryPick PR needs CherryPick to previous branches 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 6.16.z Introduced in or relating directly to Satellite 6.16 labels Jan 15, 2025
@lhellebr
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_login_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_timeout_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_two_factor_login_using_hammer

@lhellebr
Copy link
Contributor Author

PRT running test_rhsso_login_using_hammer that is newly parametrized, RHSSO and RHBK version. Also running two unparametrized tests to make sure the fixtures are backwards compatible.

@lhellebr
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_login_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_timeout_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_two_factor_login_using_hammer

@lhellebr lhellebr marked this pull request as ready for review January 16, 2025 11:32
@lhellebr lhellebr requested review from a team as code owners January 16, 2025 11:32
@lhellebr
Copy link
Contributor Author

PRT waiting for config merge

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 9899
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_login_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_timeout_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_two_factor_login_using_hammer --external-logging
Test Result : ============ 1 passed, 466 warnings, 4 errors in 5207.71s (1:26:47) ============

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label Jan 16, 2025
@ogajduse
Copy link
Member

trigger: test-robottelo
pytest: tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_login_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_timeout_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_two_factor_login_using_hammer

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 9953
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_login_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_timeout_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_two_factor_login_using_hammer --external-logging
Test Result : ================= 4 passed, 511 warnings in 4386.01s (1:13:06) =================

@Satellite-QE Satellite-QE added PRT-Passed Indicates that latest PRT run is passed for the PR and removed PRT-Failed Indicates that latest PRT run is failed for the PR labels Jan 22, 2025
conf/rhbk.yaml.template Outdated Show resolved Hide resolved
pytest_fixtures/component/satellite_auth.py Show resolved Hide resolved
robottelo/hosts.py Show resolved Hide resolved
@Satellite-QE Satellite-QE removed the PRT-Passed Indicates that latest PRT run is passed for the PR label Jan 28, 2025
@lhellebr lhellebr force-pushed the rhsso_to_rhbk branch 3 times, most recently from 8d9eb02 to bb9a399 Compare January 28, 2025 14:59
@lhellebr lhellebr requested a review from ogajduse January 28, 2025 15:40
@lhellebr
Copy link
Contributor Author

@ogajduse comments addressed

@ogajduse ogajduse requested a review from Copilot January 28, 2025 17:39
Copy link
Member

@ogajduse ogajduse left a comment

Choose a reason for hiding this comment

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

Thank you for addressing my above review comments. I have left one minor comment.

robottelo/hosts.py Outdated Show resolved Hide resolved
@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 10028
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_login_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_timeout_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_two_factor_login_using_hammer tests/foreman/api/test_templatesync.py::TestTemplateSyncTestCase::test_positive_export_all_templates_to_repo tests/foreman/cli/test_templatesync.py::TestTemplateSyncTestCase::test_positive_import_dir_filtered tests/foreman/ui/test_templatesync.py::test_positive_import_templates --external-logging
Test Result : ======= 2 failed, 8 passed, 672 warnings, 8 errors in 5723.00s (1:35:22) =======

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label Jan 31, 2025
@lhellebr
Copy link
Contributor Author

lhellebr commented Feb 3, 2025

trigger: test-robottelo
pytest: tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_login_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_timeout_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_two_factor_login_using_hammer tests/foreman/api/test_templatesync.py::TestTemplateSyncTestCase::test_positive_export_all_templates_to_repo tests/foreman/cli/test_templatesync.py::TestTemplateSyncTestCase::test_positive_import_dir_filtered tests/foreman/ui/test_templatesync.py::test_positive_import_templates

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 10034
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_login_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_timeout_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_two_factor_login_using_hammer tests/foreman/api/test_templatesync.py::TestTemplateSyncTestCase::test_positive_export_all_templates_to_repo tests/foreman/cli/test_templatesync.py::TestTemplateSyncTestCase::test_positive_import_dir_filtered tests/foreman/ui/test_templatesync.py::test_positive_import_templates --external-logging
Test Result : ================ 18 passed, 646 warnings in 5038.33s (1:23:58) =================

@Satellite-QE Satellite-QE added PRT-Passed Indicates that latest PRT run is passed for the PR and removed PRT-Failed Indicates that latest PRT run is failed for the PR labels Feb 3, 2025
@lhellebr lhellebr requested a review from ogajduse February 3, 2025 17:10
@ogajduse ogajduse requested review from Copilot and removed request for Copilot February 4, 2025 18:01
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 10 changed files in this pull request and generated 1 comment.

Files not reviewed (5)
  • conf/rhbk.yaml.template: Language not supported
  • pytest_fixtures/component/satellite_auth.py: Evaluated as low risk
  • tests/foreman/destructive/test_ldap_authentication.py: Evaluated as low risk
  • tests/foreman/destructive/test_ldapauthsource.py: Evaluated as low risk
  • tests/foreman/ui/test_templatesync.py: Evaluated as low risk
Comments suppressed due to low confidence (1)

robottelo/hosts.py:2567

  • The get_two_factor_token_rh_sso_url method should use an f-string for better readability and consistency.
return (f"https://{self.host_name}/auth/realms/" f"{self.realm}/protocol/openid-connect/")

robottelo/hosts.py Outdated Show resolved Hide resolved
Make changes so RHSSO tests become parametrized and work for both RHSSO and RHBK
@Satellite-QE Satellite-QE removed the PRT-Passed Indicates that latest PRT run is passed for the PR label Feb 5, 2025
@lhellebr
Copy link
Contributor Author

lhellebr commented Feb 5, 2025

trigger: test-robottelo
pytest: tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_login_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_timeout_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_two_factor_login_using_hammer tests/foreman/api/test_templatesync.py::TestTemplateSyncTestCase::test_positive_export_all_templates_to_repo tests/foreman/cli/test_templatesync.py::TestTemplateSyncTestCase::test_positive_import_dir_filtered tests/foreman/ui/test_templatesync.py::test_positive_import_templates

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 10067
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_login_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_timeout_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_two_factor_login_using_hammer tests/foreman/api/test_templatesync.py::TestTemplateSyncTestCase::test_positive_export_all_templates_to_repo tests/foreman/cli/test_templatesync.py::TestTemplateSyncTestCase::test_positive_import_dir_filtered tests/foreman/ui/test_templatesync.py::test_positive_import_templates --external-logging
Test Result : =========== 14 passed, 157 warnings, 4 errors in 1640.40s (0:27:20) ============

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label Feb 5, 2025
@lhellebr
Copy link
Contributor Author

lhellebr commented Feb 5, 2025

trigger: test-robottelo
pytest: tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_login_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_timeout_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_two_factor_login_using_hammer tests/foreman/api/test_templatesync.py::TestTemplateSyncTestCase::test_positive_export_all_templates_to_repo tests/foreman/cli/test_templatesync.py::TestTemplateSyncTestCase::test_positive_import_dir_filtered tests/foreman/ui/test_templatesync.py::test_positive_import_templates

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 10073
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_login_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_timeout_using_hammer tests/foreman/destructive/test_ldapauthsource.py::test_rhsso_two_factor_login_using_hammer tests/foreman/api/test_templatesync.py::TestTemplateSyncTestCase::test_positive_export_all_templates_to_repo tests/foreman/cli/test_templatesync.py::TestTemplateSyncTestCase::test_positive_import_dir_filtered tests/foreman/ui/test_templatesync.py::test_positive_import_templates --external-logging
Test Result : ================ 18 passed, 637 warnings in 5046.06s (1:24:06) =================

@Satellite-QE Satellite-QE added PRT-Passed Indicates that latest PRT run is passed for the PR and removed PRT-Failed Indicates that latest PRT run is failed for the PR labels Feb 5, 2025
@ogajduse ogajduse merged commit 1efa89c into SatelliteQE:master Feb 5, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 6.16.z Introduced in or relating directly to Satellite 6.16 CherryPick PR needs CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants