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 job job1 to set up the environment and run E2E tests using sealos.
Updates to the Makefile:
Makefile: Modified the test target to run tests only on the api directory and added a new e2e 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.
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.