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 hci cluster switch check #8897

Merged
merged 6 commits into from
Nov 22, 2023

Conversation

ebondare
Copy link
Contributor

No description provided.

Signed-off-by: Elena Bondarenko <ebondare@redhat.com>
@ebondare ebondare requested a review from a team as a code owner November 20, 2023 15:01
@pull-request-size pull-request-size bot added the size/M PR that changes 30-99 lines label Nov 20, 2023
Signed-off-by: Elena Bondarenko <ebondare@redhat.com>
@ebondare ebondare added the provider-client Provider-client solution label Nov 21, 2023
Signed-off-by: Elena Bondarenko <ebondare@redhat.com>
ebenahar
ebenahar previously approved these changes Nov 21, 2023
fbalak
fbalak previously approved these changes Nov 21, 2023
DanielOsypenko
DanielOsypenko previously approved these changes Nov 21, 2023
@@ -250,6 +250,11 @@
reason="Test runs ONLY on OSD or ROSA cluster",
)

hci_required = pytest.mark.skipif(
Copy link
Contributor

@suchita-g suchita-g Nov 21, 2023

Choose a reason for hiding this comment

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

Does requirement not work with hci_provider_and_client_required , do we need this explicitly.

hci_provider_and_client_required = pytest.mark.skipif(

Copy link
Contributor

Choose a reason for hiding this comment

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

if no to the above comment then maybe rename it as hci_pc_platform_required or `hci_pc_cluster_required

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you're right, it would work as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

However, I would prefer to keep the logic of at least one hci cluster being present for the test not to be skipped, for better awareness of possible issues.

Copy link
Contributor

Choose a reason for hiding this comment

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

The setup is invalid when no provider or no client is present, right? Maybe it would be better to have only one marker for hci platform to prevent redundancy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Signed-off-by: Elena Bondarenko <ebondare@redhat.com>
@openshift-ci openshift-ci bot removed the lgtm label Nov 21, 2023
@ebondare
Copy link
Contributor Author

Signed-off-by: Elena Bondarenko <ebondare@redhat.com>
@ebondare
Copy link
Contributor Author

@ebondare ebondare added the Verified Mark when PR was verified and log provided label Nov 22, 2023
@@ -250,6 +250,11 @@
reason="Test runs ONLY on OSD or ROSA cluster",
)

hci_required = pytest.mark.skipif(
Copy link
Contributor

Choose a reason for hiding this comment

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

if no to the above comment then maybe rename it as hci_pc_platform_required or `hci_pc_cluster_required

Copy link

openshift-ci bot commented Nov 22, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ebenahar, ebondare, suchita-g

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ebenahar ebenahar merged commit ff79169 into red-hat-storage:master Nov 22, 2023
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm provider-client Provider-client solution size/M PR that changes 30-99 lines Verified Mark when PR was verified and log provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants