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

Fix/apps 2894 node size details automation test #3032

Merged
merged 12 commits into from
Nov 13, 2024

Conversation

mohit-singh4
Copy link
Contributor

jobId = restSizeDetailsModel.getJobId();

STEP("4. Wait for 3 seconds for the processing to complete.");
Utility.waitToLoopTime(3);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please avoid waiting a fixed time. These test might be run on environment with different resources. Sometimes 3 seconds might be enough sometimes it might be not. It will lead to flaky tests and will require additional maintenance in the future. Try to increase the wait time but during that time check the assertions multiple times. You can do it manually in the loop or you can use org.awaitility.Awaitility for instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Acknowledged.
We have replaced the fixed time with Awaitility.await().atMost(Duration.ofSeconds()) and configured it to be used when retrieving the size details.


@BeforeClass(alwaysRun = true)
public void dataPreparation()
{
user1 = dataUser.createRandomTestUser("User-1");
user1 = dataUser.getAdminUser();
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it mean that only admin users can calculate the folder size?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, the Random Test User is also able to calculate the folder size.
We have updated it to use RandomUser instead.

Copy link
Contributor

@kavitshah-gl kavitshah-gl left a comment

Choose a reason for hiding this comment

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

Approved

@mohit-singh4 mohit-singh4 merged commit e6ac287 into master Nov 13, 2024
89 checks passed
@mohit-singh4 mohit-singh4 deleted the fix/APPS-2894_NodeSizeDetails_AutomationTest branch November 13, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants