This submodule contains integration tests for validating the functionality and behavior of the HiveMQ Operator (legacy) via Helm Charts in a Kubernetes environment. This Kubernetes environment is mimic by extending the K3S module available within the Testcontainer framework.
The integration tests in this submodule are designed to:
- Install a HiveMQ cluster by using the HiveMQ Operator (legacy) chart.
- Verify the successful deployment and initialization of the HiveMQ Operator (legacy).
- Verify compatibility of the charts with different Kubernetes version.
- Validate the proper functioning of HiveMQ when including some HiveMQ extension within a Kubernetes cluster.
- Test an installation using a custom non-root container image.
Before running the integration tests, make sure you meet the following prerequisites:
- Java 21+.
- Docker installed for building necessary Docker images.
- Gradle installed for running the tests.
-
Clone the repository:
git clone https://github.com/hivemq/helm-charts.git cd helm-charts/tests-hivemq-operator
-
Run the tests:
./gradlew integrationTest
NOTE: At the moment, these integration tests can only be executed on the HiveMQ Operator (Legacy) Integration Tests
GitHub Actions Workflow. Cannot be executed locally.