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

Http-Proxy cacert automation coverage #11454

Merged
merged 2 commits into from
May 23, 2023

Conversation

damoore044
Copy link
Contributor

@damoore044 damoore044 commented May 11, 2023

-Automation for http-proxy cacert (found in Infrastructure>HttpProxy>New or edit proxy)
-The test aims to create or collect a valid cacert.crt, assign the cacert to an Http-Proxy, then sync a repo with the proxy.
-Depends on nailgun PR# 923: add cacert as a field of HttpProxy
-BZ# 2144044

@damoore044 damoore044 self-assigned this May 11, 2023
@damoore044 damoore044 added 6.13.z Introduced in or relating directly to Satellite 6.13 in progress This issue is being worked on labels May 11, 2023
@damoore044
Copy link
Contributor Author

damoore044 commented May 11, 2023

The main issue with the test is on line 284, an exit code of 1 fails assertion for custom_cert_generate, indicating a script error may have occurred. Does anything stick out here?

Griffin-Sullivan

This comment was marked as resolved.

@damoore044

This comment was marked as resolved.

@damoore044
Copy link
Contributor Author

damoore044 commented May 18, 2023

trigger: test-robottelo
pytest: tests/foreman/api/test_http_proxy.py -k test_positive_sync_proxy_with_certificate
nailgun: 923

@damoore044 damoore044 changed the title Http-Proxy cacert automation coverage [WIP] Http-Proxy cacert automation coverage May 18, 2023
@damoore044 damoore044 added CherryPick PR needs CherryPick to previous branches and removed in progress This issue is being worked on labels May 18, 2023
@damoore044 damoore044 marked this pull request as ready for review May 18, 2023 15:55
@Griffin-Sullivan Griffin-Sullivan added the AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing label May 18, 2023
@Griffin-Sullivan
Copy link
Contributor

BTW if you want to test the code quality check on your laptop before you push the changes you can run

# pre-commit run --all-files

@damoore044
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/api/test_http_proxy.py -k test_positive_sync_proxy_with_certificate
nailgun: 923

Copy link
Contributor

@shubhamsg199 shubhamsg199 left a comment

Choose a reason for hiding this comment

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

Ack

Copy link
Collaborator

@Gauravtalreja1 Gauravtalreja1 left a comment

Choose a reason for hiding this comment

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

Ack, with a few nitpick suggestions

tests/foreman/api/test_http_proxy.py Outdated Show resolved Hide resolved
tests/foreman/api/test_http_proxy.py Outdated Show resolved Hide resolved
tests/foreman/api/test_http_proxy.py Outdated Show resolved Hide resolved
Copy link
Member

@ColeHiggins2 ColeHiggins2 left a comment

Choose a reason for hiding this comment

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

ACK Pending comments

@Gauravtalreja1 Gauravtalreja1 merged commit d893cf4 into SatelliteQE:master May 23, 2023
github-actions bot pushed a commit that referenced this pull request May 23, 2023
* test_positive_sync_proxy_with_certificate

* Addressing comments

(cherry picked from commit d893cf4)
damoore044 added a commit that referenced this pull request Jun 1, 2023
* test_positive_sync_proxy_with_certificate

* Addressing comments

(cherry picked from commit d893cf4)
@damoore044
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/api/test_http_proxy.py -k test_positive_sync_proxy_with_certificate
nailgun: 923

ColeHiggins2 pushed a commit to ColeHiggins2/robottelo that referenced this pull request Oct 9, 2023
* test_positive_sync_proxy_with_certificate

* Addressing comments
shweta83 pushed a commit to shweta83/robottelo that referenced this pull request Apr 10, 2024
* test_positive_sync_proxy_with_certificate

* Addressing comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.13.z Introduced in or relating directly to Satellite 6.13 AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants