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

Request to add e2e test scenarios #327

Open
yanmxa opened this issue Feb 27, 2023 · 0 comments
Open

Request to add e2e test scenarios #327

yanmxa opened this issue Feb 27, 2023 · 0 comments

Comments

@yanmxa
Copy link
Member

yanmxa commented Feb 27, 2023

Scenarios:

  1. Delete the MGH CR and verify the global hub finalizer is removed from managed clusters. ref: Remove the global hub finalizer from managed cluster when deleting the MGH CR #320
  2. Delete the MGH CR and create a new one with transportFormat: message, then verify that the policy and application can work properly.
  3. Set up hosted mode environment for the global hub by adding setup scripts.
  4. In hosted mode, create a serviceaccount and bind it with the clusterrole cluster-admin, then verify the token of the account can access the global hub API.
  5. In hosted mode, create an inform policy and then change it to enforce, verify the policy status is updating from non-compliant to compliant.
  6. In hosted mode, create an application and verify the application is propagated to the managed cluster.
  7. In hosted mode, delete the MGH CR and verify the global hub finalizer is removed from policy, appsub, placements, etc.
  8. Verify resources with the label global-hub.open-cluster-management.io/local-resource, it won't be transferred to the regional hub clusters.
  9. Using Placement API to schedule policy.
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

No branches or pull requests

1 participant