-
Notifications
You must be signed in to change notification settings - Fork 115
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
[RFE} Test for upgrading satellite to 6.16 SCA only #14476
Conversation
e396869
to
29316d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a draft, yet it's marked for review. I've skimmed through it quickly and don't see any obvious issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good, only one small suggestion to use GR.
f'echo "Organization.find({org_id}).content_access_mode" | foreman-rake console' | ||
) | ||
assert 'entitlement' not in sca_mode.stdout | ||
assert 'org_environment' in sca_mode.stdout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this stand for "SCA-only"? I wonder why it's called "org_environment".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats a question for DEV. But its my understanding that org_environment represents a organization in sca mode in 6.15
29316d8
to
3262f6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebase needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack looks good after rebase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack, requested easy changes.
3262f6a
to
bd59f90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Non-blocking comments. Did you test this locally? I assume PRT can't test this.
tests/upgrades/test_repository.py
Outdated
enabled on host. | ||
|
||
""" | ||
_, manifester = upgrade_entitlement_manifest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't look like you're using this variable anywhere
if rhel_contenthost.os_version.major > 7: | ||
rh_repo_id = target_sat.api_factory.enable_sync_redhat_repo( | ||
constants.REPOS[f'rhel{rhel_contenthost.os_version.major}_bos'], org.id | ||
) | ||
else: | ||
rh_repo_id = target_sat.api_factory.enable_sync_redhat_repo( | ||
constants.REPOS[f'rhel{rhel_contenthost.os_version.major}'], org.id | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really ought to have a method for doing this in enable_sync_redhat_repo
.
f413346
to
c51fd41
Compare
============================= test session starts ============================== |
* Test for candlepin testing in sca only * Adding post upgrade test to upgrade scenario * addressing comments * addressing comments * addressing comments quotes * fixing register call * removing extra var
Automation for SCA Only