Component ยท Shared or other
Integration suites in tests namespace
CHOREO CLOUD Test Choreo Cloud service
What it is
The integration suites are six suspended CronJobs in the tests namespace: platform, agent-manager, agent-manager-security, ipaas-e2e, apip and identity-platform-cloud. They never run on their own. The validation workflows create a Job from a suite's CronJob each time a suite is needed. The two Agent Manager suites use the amp-e2e-tests image.
Like exam papers kept in a locked cabinet: a teacher takes out a copy only when there is a sitting.
Why it exists
Using a CronJob as a template keeps each suite's image, settings and time limit in Git, while the workflows decide when to run.
How it works
- Every suite CronJob is labelled wso2cloud/system-component=integration-tests and carries its name in wso2cloud/suite-name. release-validation finds suites by that label, so a new suite needs no change there. suite-validation has a list of suite names for its form, so a new suite is added to that list too.
- Each CronJob has suspend: true, so it never runs by itself. A workflow creates a Job from it and waits for it to finish.
- The agent-manager and agent-manager-security suites use the image amp-e2e-tests, pinned to a main- tag, and get a token from the monitoring-token-provider through a shared secret.
- A suite can be switched off per environment by listing it in integration_test_disabled_suites on that environment's branch.
- Each suite pod also uploads its JUnit reports so the test-results dashboard can show them.
Key facts
- Suites
- platform, agent-manager, agent-manager-security, ipaas-e2e, apip, identity-platform-cloud
- Namespace
- tests
- Time limit
- agent-manager 2 hours, agent-manager-security 1 hour
- Agent Manager image
- amp-e2e-tests
- Skip a suite
- integration_test_disabled_suites
- Started by
- release-validation, suite-validation or release-candidate
Talks to (1)
- depends on amp-e2e-tests (SaaS e2e and security suites) agent-manager suites run the SaaS e2e imageimage amp-e2e-tests
Used by (3)
- called by release-validation (advisory) runs every suiteJobs in namespace tests
- called by release-candidate (promotion gate) runs every suite against one frozen commitJobs in namespace tests
- called by suite-validation runs one suiteJob