fix Future Dated Subs Test - #20873
Merged
jameerpathan111 merged 3 commits intoFeb 26, 2026
Merged
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdjusts the future-dated subscription manifest fixture to only create/yield the manifest and moves the manifest upload into the specific UI test, making the test responsible for uploading the manifest it depends on. Sequence diagram for future-dated subscription manifest handling in UI testsequenceDiagram
participant Pytest
participant Test as test_positive_populate_future_date_subcription
participant Fixture as func_future_dated_subscription_manifest
participant Manifester
participant Org as function_org
participant Sat as target_sat
Pytest->>Test: Execute test
Test->>Fixture: Request future_dated_subscription_manifest
activate Fixture
Fixture->>Manifester: __enter__(manifest_category=future_date_subscription)
activate Manifester
Manifester-->>Fixture: manifest (content)
deactivate Manifester
Fixture-->>Test: yield manifest
deactivate Fixture
Test->>Sat: upload_manifest(org_id=Org.id, content=manifest.content)
Sat-->>Test: upload result
Test->>Test: Perform UI steps validating future-dated subscription
Test-->>Pytest: Test result
activate Manifester
Test->>Manifester: __exit__()
deactivate Manifester
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
Author
|
Contributor
Author
|
trigger: test-robottelo |
synkd
approved these changes
Feb 25, 2026
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The
func_future_dated_subscription_manifestdocstring still says 'Create and upload...' but the fixture now only provides the manifest object; update the description to match the new behavior. - Consider renaming
func_future_dated_subscription_manifestto something that reflects it now just supplies a manifest (and no longer uploads it) to make its side effects clearer at call sites.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The `func_future_dated_subscription_manifest` docstring still says 'Create and upload...' but the fixture now only provides the manifest object; update the description to match the new behavior.
- Consider renaming `func_future_dated_subscription_manifest` to something that reflects it now just supplies a manifest (and no longer uploads it) to make its side effects clearer at call sites.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
jameerpathan111
approved these changes
Feb 26, 2026
github-actions Bot
pushed a commit
that referenced
this pull request
Feb 26, 2026
* fixFutureDateSubsTest * Address comment * changeFunctionComment (cherry picked from commit fdaa318)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Ensure future-dated subscription UI tests explicitly upload the manifest during the test rather than implicitly via a fixture.
Bug Fixes:
Enhancements: