Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes significant updates to the testing infrastructure and new end-to-end (E2E) tests for the AutoMQ operator. The most important changes include adding a new job to the GitHub Actions workflow, modifying the Makefile to support E2E tests, and adding new E2E test files.
Enhancements to the GitHub Actions workflow:
.github/workflows/test.yml
: Added a new jobjob1
to set up the environment and run E2E tests usingsealos
.Updates to the Makefile:
Makefile
: Modified thetest
target to run tests only on theapi
directory and added a newe2e
target to run E2E tests. [1] [2]New E2E tests:
e2e/automq_cluster_test.go
: Added a comprehensive E2E test suite for the AutoMQ controller, including setup and teardown procedures.e2e/utils.go
: Added utility functions to support E2E tests, such as installing the Prometheus Operator and managing Kubernetes configurations.Other changes:
api/v1beta1/webhook_suite_test.go
: Cleaned up unused fields in theWebhookInstallOptions
struct.internal/controller/suite_test.go
: Removed the old controller test suite, which has been replaced by the new E2E tests.