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

Add a case for active_only box on the sync_status page #17413

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vsedmik
Copy link
Contributor

@vsedmik vsedmik commented Jan 22, 2025

Problem Statement

There is a z-stream bug which needs to be automated, see the issue bellow for details.

TLDR: We need to verify the functionality of the Active only check-box on the Sync Status page.

Solution

This PR adds such UI test case.
It needs some Airgun changes too.

Related Issues

https://issues.redhat.com/browse/SAT-30291

PRT test Cases example

trigger: test-robottelo
pytest: tests/foreman/ui/test_sync.py -k test_sync_active_only
airgun: 1708

@vsedmik vsedmik added CherryPick PR needs CherryPick to previous branches 6.16.z Introduced in or relating directly to Satellite 6.16 labels Jan 22, 2025
@vsedmik vsedmik self-assigned this Jan 22, 2025
@vsedmik vsedmik requested a review from a team as a code owner January 22, 2025 17:42
@vsedmik
Copy link
Contributor Author

vsedmik commented Jan 22, 2025

trigger: test-robottelo
pytest: tests/foreman/ui/test_sync.py -k test_sync_active_only
airgun: 1708

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 9957
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/ui/test_sync.py -k test_sync_active_only --external-logging
Test Result : =========== 1 passed, 4 deselected, 14 warnings in 787.20s (0:13:07) ===========

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Jan 22, 2025
f' and organization_id = {function_sca_manifest_org.id}'
f' and resource_id = {repo.id}'
' and resource_type = Katello::Repository',
max_tries=12,
Copy link
Member

Choose a reason for hiding this comment

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

Is this enough tries with the kickstart repos? I feel like they take about 10 minutes to sync unless my broker vm's are slow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The kickstarts usually take less than the normal ones with on_demand policy, this one in particular took ~17 seconds, so we should have ~100 seconds for safety.

max_tries=12,
search_rate=10,
)
session.browser.refresh()
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this refresh neccessary because we are on same page i.e sync_status page and check box Active only doesn't reflect changes on page dynamically?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup it is. It also follows the steps to reproduce from that bug.

Copy link
Contributor

@vijaysawant vijaysawant left a comment

Choose a reason for hiding this comment

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

Non blocking question.
Ack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.16.z Introduced in or relating directly to Satellite 6.16 CherryPick PR needs CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants