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 clusterGroup test automation #155

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

sbulage
Copy link
Collaborator

@sbulage sbulage commented Jun 24, 2024

Fixes: #154

@sbulage sbulage added the automation Add or update automation label Jun 24, 2024
@sbulage sbulage force-pushed the automate-clustergroup-test branch 8 times, most recently from 29c85af to e1dd359 Compare July 2, 2024 06:37
@sbulage
Copy link
Collaborator Author

sbulage commented Jul 2, 2024

@sbulage sbulage marked this pull request as ready for review July 2, 2024 07:03
@sbulage sbulage requested a review from mmartin24 July 2, 2024 07:57
@sbulage sbulage force-pushed the automate-clustergroup-test branch 2 times, most recently from b811030 to da1635f Compare July 2, 2024 13:07
@sbulage sbulage force-pushed the automate-clustergroup-test branch from da1635f to 26cac3e Compare July 4, 2024 13:32
tests/cypress/e2e/unit_tests/p1_fleet.spec.ts Show resolved Hide resolved

describe('Test application deployment based on clusterGroup', { tags: '@p1'}, () => {
qase(25,
it("Fleet-25: Test install single application to the all available clusters using 'clusterGroup'", { tags: '@fleet-25' }, () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Q: is it really installing in ALL available clusters or in all defined clusters?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is installing to all available cluster present in cluster group.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated it. Please take a look at it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry, not sure I see the change

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

See this:
qase(25, it("Fleet-25: Test install single application to the all available clusters in the 'clusterGroup'", { tags: '@fleet-25' }, () => {

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok, the part all available clusters is the one I still found confusing. Given that you provided a list of clusters (const dsClusterList = ["imported-0", "imported-1"]) I thought it was going to be changed to something like all defined clusters. or all specified clusters.

Again, not mandatory. PR is already approved.

@sbulage sbulage force-pushed the automate-clustergroup-test branch 3 times, most recently from c2a0fa7 to a4cbd10 Compare July 8, 2024 14:45
Signed-off-by: Satyajit Bulage <satyajit.bulage@suse.com>
Signed-off-by: Satyajit Bulage <satyajit.bulage@suse.com>
@sbulage sbulage force-pushed the automate-clustergroup-test branch 2 times, most recently from e320510 to 21fddcc Compare July 9, 2024 11:57
Signed-off-by: Satyajit Bulage <satyajit.bulage@suse.com>
@sbulage sbulage force-pushed the automate-clustergroup-test branch from 21fddcc to 21723f2 Compare July 9, 2024 14:00
@sbulage
Copy link
Collaborator Author

sbulage commented Jul 10, 2024

2.8 PR check failed with other test which are unrelated to this PR change. I re-ran but it was queued for so long, hence I canceled it.

Later, I initiate another CI run on 2.8: https://github.com/rancher/fleet-e2e/actions/runs/9860812197/job/27229140011
Test case passed here other 2 OCI related tests failed...which unrelated to this change.

dsClusterList.forEach(
(dsClusterName) => {
// Adding wait to load page correctly to avoid interference with hamburger-menu.
cy.wait(500);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did we tried as commented checking a landing locator rather than waits?
Not mandatory removal, just suggestion.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We didn't find the landing locator after navigating to hamburgermenu...

Copy link
Collaborator

@mmartin24 mmartin24 Jul 11, 2024

Choose a reason for hiding this comment

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

Not in the a few mins meeting, but thought it was going to be looked deeper with more time later

Copy link
Collaborator

Choose a reason for hiding this comment

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

I approved pr. I leave opt to you to try or merge as it is.

@sbulage
Copy link
Collaborator Author

sbulage commented Jul 11, 2024

Separate run based on this PR's branch: 🟢 Passed --> https://github.com/rancher/fleet-e2e/actions/runs/9887523547/job/27312031567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation Add or update automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add automation to install single application to clusterGroup.
3 participants