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

Added test for Fleet resource count on cluster #274

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

sbulage
Copy link
Collaborator

@sbulage sbulage commented Feb 4, 2025

This PR will do:

  • Creates GitRepo with 6 resources on each cluster.
  • There are 3 clusters which already had 7 resources (ConfigMap, Fleet-agent, secrets etc.)
  • So the total resource count on each cluster will be 6+7=13
  • We are getting resource counts from GitRepo and clusters page itself.

Following actions are performed:

  • Get the resources from GitRepo page.
  • Add 7 default resources to the count.
  • Get the total count of resource available on each cluster page.
  • Verify that GitRepo Resource count and EQUAL TO Resource count available on each clusters page.

@sbulage sbulage added the automation Add or update automation label Feb 4, 2025
@sbulage sbulage self-assigned this Feb 4, 2025
@sbulage sbulage linked an issue Feb 4, 2025 that may be closed by this pull request
@sbulage
Copy link
Collaborator Author

sbulage commented Feb 4, 2025

CI Run for 2.11 (head): https://github.com/rancher/fleet-e2e/actions/runs/13137822018

Test case passed:
image

@sbulage
Copy link
Collaborator Author

sbulage commented Feb 4, 2025

@sbulage
Copy link
Collaborator Author

sbulage commented Feb 4, 2025

PR CI test result:
image

@sbulage sbulage requested a review from mmartin24 February 4, 2025 15:47
Copy link
Collaborator

@mmartin24 mmartin24 left a comment

Choose a reason for hiding this comment

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

LGTM.
Just check small suggestion

@sbulage sbulage force-pushed the automate_cluster_count branch from d7f2cc9 to 5e1e4ae Compare February 4, 2025 16:17
@sbulage sbulage merged commit b53d3bc into main Feb 4, 2025
2 of 3 checks passed
@sbulage sbulage deleted the automate_cluster_count branch February 4, 2025 16:20
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.

Automate resource counting
2 participants