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

SANDBOX-770: fix WaitForBannedUser #1077

Merged

Conversation

rsoaresd
Copy link
Contributor

@rsoaresd rsoaresd commented Dec 3, 2024

Description

This function is not used in toolchain-e2e. However, it will be useful for WA.
Unfortunately, it was not working as expected since when no error on list, it was accessing &bannedUserList.Items[0] without checking the array length.

Issue ticket number and link

SANDBOX-770

Copy link
Contributor

@alexeykazakov alexeykazakov left a comment

Choose a reason for hiding this comment

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

Alternately we could move it to WA but I'm fine with keeping it here in case we need it use in the main e2e tests later too.

@openshift-ci openshift-ci bot added the approved label Dec 3, 2024
Copy link
Contributor

@mfrancisc mfrancisc left a comment

Choose a reason for hiding this comment

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

Looks good 👍

testsupport/wait/host.go Outdated Show resolved Hide resolved
testsupport/wait/host.go Outdated Show resolved Hide resolved
@rsoaresd
Copy link
Contributor Author

rsoaresd commented Dec 4, 2024

Alternately we could move it to WA but I'm fine with keeping it here in case we need it use in the main e2e tests later too.

@alexeykazakov I did not move it because I do not know if that function is there for some reason. I tried to track when it was added but i was not able. i think it was added a long time ago

Copy link

sonarqubecloud bot commented Dec 4, 2024

Copy link

openshift-ci bot commented Dec 4, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexeykazakov, mfrancisc, rajivnathan, rsoaresd

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [alexeykazakov,mfrancisc,rajivnathan]

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

@rsoaresd rsoaresd merged commit ffd3a83 into codeready-toolchain:master Dec 4, 2024
8 of 9 checks passed
@rsoaresd rsoaresd changed the title fix WaitForBannedUser SANDBOX-770: fix WaitForBannedUser Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants