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

tests: Multi cluster e2e test support #183

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

mikenairn
Copy link
Member

@mikenairn mikenairn commented Jul 8, 2024

closes #180

Adds a new local-setup-multi make target that can create multiple local kind clusters and updates the multi instance test suite to allow execution of tests across multiple clusters as well as namespaces.

Create 2 kind test clusters each with 2 namespaced deployments:

make local-setup-multi DEPLOY=true DEPLOYMENT_SCOPE=namespace DEPLOYMENT_COUNT=2 CLUSTER_COUNT=2

Run tests on 2 clusters each with 2 namespaced deployments:

make test-e2e-multi TEST_DNS_MANAGED_ZONE_NAME=dev-mz-aws TEST_DNS_NAMESPACES=dns-operator DEPLOYMENT_COUNT=2 TEST_DNS_CLUSTER_CONTEXTS=kind-kuadrant-dns-local CLUSTER_COUNT=2

Note: All clusters must have the same namespaces, and all namesapces must have the same managed zones.

Additional test suite updates:

  • Add a check to make sure that all provider records are removed.
  • Add validation of all provider endpoints.

@mikenairn mikenairn force-pushed the multi_instance_test branch 3 times, most recently from 584843e to 3f73bd9 Compare July 8, 2024 10:04
@mikenairn mikenairn marked this pull request as ready for review July 8, 2024 10:37
@mikenairn mikenairn force-pushed the multi_instance_test branch 2 times, most recently from 45e0a45 to 6aa70df Compare July 8, 2024 12:09
Adds a new `local-setup-multi` make target that can create multiple
local kind clusters and updates the multi instance test suite to allow
execution of tests across multiple clusters as well as namespaces.

Create 2 kind test clusters each with 2 namespaced deployments:
```
make local-setup-multi DEPLOY=true DEPLOYMENT_SCOPE=namespace DEPLOYMENT_COUNT=2 CLUSTER_COUNT=2
```

Run tests on 2 clusters each with 2 namespaced deployments:
```
make test-e2e-multi TEST_DNS_MANAGED_ZONE_NAME=dev-mz-aws TEST_DNS_NAMESPACES=dns-operator DEPLOYMENT_COUNT=2 TEST_DNS_CLUSTER_CONTEXTS=kind-kuadrant-dns-local CLUSTER_COUNT=2
```

Additional test suite updates:

* Add a check to make sure that all provider records are removed.
* Add validation of all provider endpoints.
@mikenairn mikenairn force-pushed the multi_instance_test branch from 6aa70df to 02df7fc Compare July 8, 2024 15:59
@mikenairn mikenairn added this pull request to the merge queue Jul 9, 2024
Merged via the queue into Kuadrant:main with commit 04ce1a4 Jul 9, 2024
11 checks passed
@mikenairn mikenairn deleted the multi_instance_test branch July 9, 2024 11:20
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 advanced multi-cluster multi-instance scale test
2 participants