Skip to content

Conversation

@chris1984
Copy link
Member

Problem Statement

We are going through and removing entitlement subscription info out of hammer and katello, this removes the commands in robotello

Solution

Removed the commands

Related Issues

Katello/hammer-cli-katello#1006

trigger: test-robottelo
pytest: tests/foreman/cli/test_subscription.py

@chris1984 chris1984 requested a review from vsedmik October 27, 2025 18:22
@chris1984 chris1984 requested a review from a team as a code owner October 27, 2025 18:22
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@chris1984 chris1984 added CLI Issues and PRs involving the CLI No-CherryPick PR doesnt need CherryPick to previous branches labels Oct 27, 2025
@Gauravtalreja1 Gauravtalreja1 added the Stream Introduced in or relating directly to Satellite Stream/Master label Oct 27, 2025
@chris1984 chris1984 requested a review from a team as a code owner October 29, 2025 15:53
@chris1984
Copy link
Member Author

trigger: test-robottelo
pytest: tests/foreman/cli/test_subscription.py

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 13352
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/cli/test_subscription.py --external-logging
Test Result : ========== 9 passed, 2 deselected, 146 warnings in 1360.75s (0:22:40) ==========

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Oct 29, 2025
return cls.execute(cls._construct_command(options))

@classmethod
def subscription_attach(cls, options=None):
Copy link
Member

@Gauravtalreja1 Gauravtalreja1 Oct 30, 2025

Choose a reason for hiding this comment

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

Copy link
Contributor

@synkd synkd left a comment

Choose a reason for hiding this comment

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

One change requested. Also, please note that running new upgrade tests requires using the -n option and modifying some config settings via environment variables. I would use the following to kick off the PRT job after making the requested changes:

trigger: test-robottelo
pytest: -n 1 tests/new_upgrades/test_subscription.py
env:
  ROBOTTELO_server__xdist_behavior: 'run-on-one'
  ROBOTTELO_upgrade__from_version: '6.18'
  ROBOTTELO_upgrade__to_version: 'stream'


@pytest.fixture
def subscription_auto_attach_setup(
def subscription_setup(
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than changing the name of this fixture and continuing to use it, I think it makes more sense to test this with test_candlepin_hung_transaction inheriting the other setup fixture in this module, manifest_scenario_refresh_setup. If that passes, the subscription_setup fixture could be removed entirely.

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

@LadislavVasina1
Copy link
Contributor

@chris1984 could you please look at @synkd suggestion and update the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLI Issues and PRs involving the CLI No-CherryPick PR doesnt need CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR Stream Introduced in or relating directly to Satellite Stream/Master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants