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

WIP: Added onboarding token generation related functional tests for provider-client feature #9938

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

amr1ta
Copy link
Contributor

@amr1ta amr1ta commented Jun 12, 2024

Added onboarding token generation related functional tests for provider-client feature

@amr1ta amr1ta requested review from a team as code owners June 12, 2024 14:11
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines label Jun 12, 2024
@amr1ta amr1ta force-pushed the onboarding-token-generation-ui branch 14 times, most recently from cc42719 to 9020bb9 Compare June 13, 2024 16:29
jilju
jilju previously approved these changes Jun 14, 2024


@tier1
@green_squad
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not a green squad test. May be yellow squad ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have updated in latest commit.

@pytest.fixture(autouse=True)
def setup(self, request):
"""
Resetting the default value of KeyRotation
Copy link
Contributor

Choose a reason for hiding this comment

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

Any code missing in this method for resetting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in latest commit.

Comment on lines 54 to 185
Test to verify the respin of ux pod.
Steps:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Test to verify the respin of ux pod.
Steps:
Test to verify the respin of ux pod.
Steps:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in latest commit.

timeout=180,
), "ux pod is not in running state as expected"

def test_respin_of_ux_server_pod(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a tier4c test. Please add marker in the test case level for all test cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in latest commit.

selector=constants.UX_BACKEND_SERVER_LABEL,
resource_count=1,
timeout=180,
), "ux pod is not in running state as expected"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
), "ux pod is not in running state as expected"
), "ux-backend-server pod is not in running state as expected"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in latest commit.

"""
Test to verify the respin of ux pod.
Steps:
1. navigate to storage-->storage clients page
Copy link
Contributor

Choose a reason for hiding this comment

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

Please mention the step of deleting the ux-backend-server pod.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in latest commit.


ux_pod_obj.delete()
log.info("wait some time for another ux-backend-server pod to come up")
time.sleep(30)
Copy link
Contributor

Choose a reason for hiding this comment

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

The new pod will come up in 3-5 seconds. Please remove sleep for short period and use wait conditions for checking the new pod.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in latest commit.

timeout=180,
), "ux pod is not in running state as expected"

def test_respin_of_ux_server_pod(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a separate test case to check the re-spin of pod is not needed. This will be part of tier4c pod re-spin tests. Please combine the test with test_onboarding_token_generation_option_is_available_in_ui(and change the name of test) to verify the impact of ux pod respin on token generation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have combined the test to check ux-backend-server pod is urunning and ux-backend-server pod respin testcases together.

@openshift-ci openshift-ci bot added the lgtm label Jun 14, 2024
@jilju jilju self-requested a review June 14, 2024 10:38
@jilju jilju removed their assignment Jun 14, 2024
fbalak
fbalak previously approved these changes Jun 14, 2024
@amr1ta amr1ta dismissed stale reviews from fbalak and jilju via 5d81873 June 14, 2024 14:41
@openshift-ci openshift-ci bot removed the lgtm label Jun 14, 2024
@ebondare
Copy link
Contributor

Could you please include a test run?

@amr1ta amr1ta force-pushed the onboarding-token-generation-ui branch from 5d81873 to 65e6515 Compare August 7, 2024 06:26
ebondare
ebondare previously approved these changes Aug 13, 2024
amr1ta added 24 commits December 4, 2024 23:22
Signed-off-by: Amrita Mahapatra <[email protected]>
Signed-off-by: Amrita Mahapatra <[email protected]>
Signed-off-by: Amrita Mahapatra <[email protected]>
…client from the hosted cluster

Signed-off-by: Amrita Mahapatra <[email protected]>
…oken with limited storage quota

Signed-off-by: Amrita Mahapatra <[email protected]>
Signed-off-by: Amrita Mahapatra <[email protected]>
Signed-off-by: Amrita Mahapatra <[email protected]>
Signed-off-by: Amrita Mahapatra <[email protected]>
…timeout for local-cluster load

Signed-off-by: Amrita Mahapatra <[email protected]>
…own' locator in navigate_to_local_cluster method

Signed-off-by: Amrita Mahapatra <[email protected]>
Signed-off-by: Amrita Mahapatra <[email protected]>
Signed-off-by: Amrita Mahapatra <[email protected]>
Signed-off-by: Amrita Mahapatra <[email protected]>
Signed-off-by: Amrita Mahapatra <[email protected]>
@amr1ta amr1ta force-pushed the onboarding-token-generation-ui branch 2 times, most recently from be873fe to 2620b93 Compare December 4, 2024 18:58
…a parameter in create_hypershift_clusters fixture

Signed-off-by: Amrita Mahapatra <[email protected]>
@amr1ta amr1ta force-pushed the onboarding-token-generation-ui branch from 2620b93 to 9fa038a Compare December 4, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress size/L PR that changes 100-499 lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants