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

fixes in capsule upgrade playbook tests #10173

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

pondrejk
Copy link
Contributor

@pondrejk pondrejk commented Oct 17, 2022

fixing some test failures in tests related to capsule upgrade playbook -- the capsule target version is no longer hardcoded, incorect hostname and credentials selection is also fixed

@pondrejk pondrejk added TestFailure Issues and PRs related to a test failing in automation Easy Fix :) Easiest Fix to review and quick merge request. No-CherryPick PR doesnt need CherryPick to previous branches 6.12.z Introduced in or relating directly to Satellite 6.12 labels Oct 17, 2022
@pondrejk pondrejk requested review from a team October 17, 2022 13:47
@pondrejk pondrejk self-assigned this Oct 17, 2022
@jyejare
Copy link
Member

jyejare commented Oct 18, 2022

@pondrejk Could you add some background of the issue in description to know the issue for reviewers.

@pondrejk
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/destructive/test_remoteexecution.py -k capsule_upgrade_playbook

@pondrejk
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/destructive/test_remoteexecution.py -k capsule_upgrade_playbook

@pondrejk
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/destructive/test_remoteexecution.py -k capsule_upgrade_playbook

@pondrejk
Copy link
Contributor Author

@jyejare @Gauravtalreja1 mind revisiting?

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.

@pondrejk LGTM, Thanks for the updates, few suggestions

tests/foreman/destructive/test_remoteexecution.py Outdated Show resolved Hide resolved
f'{target_sat.url}/api/job_invocations/{job.id}/hosts/{sat.id}',
auth=(target_sat.username, target_sat.password),
f'{target_sat.url}/api/job_invocations/{job.id}/hosts/{host[0].id}',
auth=(settings.server.admin_username, settings.server.admin_password),
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can use get_credentials func from config to fetch this

@pondrejk pondrejk added CherryPick PR needs CherryPick to previous branches and removed No-CherryPick PR doesnt need CherryPick to previous branches labels Oct 24, 2022
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.

One non-blocking suggestion.

response = client.get(
f'{target_sat.url}/api/job_invocations/{job.id}/hosts/{sat.id}',
auth=(target_sat.username, target_sat.password),
f'{target_sat.url}/api/job_invocations/{job.id}/hosts/{host[0].id}',
Copy link
Member

Choose a reason for hiding this comment

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

using the following patch, you can delete L72.

Suggested change
f'{target_sat.url}/api/job_invocations/{job.id}/hosts/{host[0].id}',
f'{target_sat.url}/api/job_invocations/{job.id}/hosts/{target_sat.nailgun_host.id}',

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hm, for some reason this didn't work for me when I was trying that out locally

@pondrejk pondrejk merged commit 68809a7 into SatelliteQE:master Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.12.z Introduced in or relating directly to Satellite 6.12 CherryPick PR needs CherryPick to previous branches Easy Fix :) Easiest Fix to review and quick merge request. TestFailure Issues and PRs related to a test failing in automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants