Skip to content

Leaf cluster policies acceptance test #1025

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

Merged
merged 3 commits into from
Jul 6, 2022
Merged

Conversation

saeedfazal
Copy link
Contributor

@saeedfazal saeedfazal commented Jun 30, 2022

  • Added policies acceptance test for leaf clusters
  • Refactor leaf cluster creation into reusable functions so that it can be used by other tests
  • Fixed upgrade test as the test stills uses old WGE release for upgrade and hence missing cluster across namespaces functionality
  • Leaf cluster policy test is disabled in all pipelines due to Leaf cluster resources are not accessible #1030

closes #759

@saeedfazal saeedfazal self-assigned this Jun 30, 2022
@saeedfazal saeedfazal force-pushed the policies-leaf-cluster-test branch 7 times, most recently from 24aa28b to 000dad8 Compare July 1, 2022 14:04
_, err := os.Stat(fmt.Sprintf("%s/clusters/capi/clusters/default/%s.yaml", repoAbsolutePath, clusterName))
// Enable new path chenking when upograding to clusters across namespaces WGE release
// _, err := os.Stat(fmt.Sprintf("%s/clusters/capi/clusters/default/%s.yaml", repoAbsolutePath, clusterName))
_, err := os.Stat(fmt.Sprintf("%s/clusters/capi/clusters/%s.yaml", repoAbsolutePath, clusterName))
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

@foot foot left a comment

Choose a reason for hiding this comment

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

Some nice clean up too!

Thanks for the fix in main.

@saeedfazal saeedfazal force-pushed the policies-leaf-cluster-test branch from a7fe711 to b16e163 Compare July 6, 2022 07:15
_, err := os.Stat(fmt.Sprintf("%s/clusters/capi/clusters/default/%s.yaml", repoAbsolutePath, clusterName))
// Enable new path chenking when upograding to clusters across namespaces WGE release
// _, err := os.Stat(fmt.Sprintf("%s/clusters/capi/clusters/default/%s.yaml", repoAbsolutePath, clusterName))
_, err := os.Stat(fmt.Sprintf("%s/clusters/capi/clusters/%s.yaml", repoAbsolutePath, clusterName))
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is fixed in main now!

Copy link
Collaborator

Choose a reason for hiding this comment

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

I mean.. I think it is 🤔 , there should be a conflict here.. 👀

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah! When we change the upgrade version to 0.9.0-rc.3 this will change, there was a lot of churn y'day.

Suggested change
_, err := os.Stat(fmt.Sprintf("%s/clusters/capi/clusters/%s.yaml", repoAbsolutePath, clusterName))
_, err := os.Stat(fmt.Sprintf("%s/clusters/capi/clusters/quick-capi/%s.yaml", repoAbsolutePath, clusterName))

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 removed it in my PR, as it is fixed in main

@saeedfazal saeedfazal force-pushed the policies-leaf-cluster-test branch from 45824de to 7efea16 Compare July 6, 2022 15:04
@saeedfazal saeedfazal force-pushed the policies-leaf-cluster-test branch from 7efea16 to 5911e88 Compare July 6, 2022 15:23
@saeedfazal saeedfazal merged commit 690d8dc into main Jul 6, 2022
@saeedfazal saeedfazal deleted the policies-leaf-cluster-test branch July 6, 2022 16:24
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.

Add leaf cluster policy acceptance tests verification/checks
2 participants