Component ยท Shared or other
amp-e2e-tests (SaaS e2e and security suites)
CHOREO CLOUD Test Choreo Cloud service
What it is
amp-e2e-tests is the set of end-to-end and security tests for the SaaS Agent Manager. They are Go tests written with Ginkgo that call Agent Manager through its public HTTP API. They are packaged as one container image, amp-e2e-tests, that runs inside the cluster for the agent-manager suites, or on a laptop through make.
Like a driving test on a public road rather than a closed track: the examiner sits in the car and uses the same road signs everyone does.
Why it exists
Agent Manager is only proven when a real agent can be created, built and observed through the same API customers use. Tests that run in the cluster show what a customer would see.
How it works
- Locally, copy the cloud dev example env file, fill in a token and resource identifiers, and run make e2e-test SUITE=smoke for a read-only first check. make security-test runs the security suites.
- The Dockerfile builds every suite ahead of time with ginkgo build, so a suite that does not compile fails the image build and not a run twenty minutes in.
- The .cicd file agent-manager-e2e-tests lists the two suite CronJobs under workloadPaths, so a new image tag is written into them by the build-pipeline.
- In the cluster the entrypoint script runs the family chosen by SUITE_ROOT (tests or security) and writes JUnit reports that the test-results uploader picks up.
Key facts
- Image
- amp-e2e-tests, built from test/e2e in agent-platform
- Run locally
- make e2e-test SUITE=smoke
- Default selection
- smoke, project, agent
- Auth sources
- Monitoring token provider (preferred), a copied access token, or client credentials
- Needs for agent suites
- AMP_E2E_OPENAI_API_KEY
- Shared project
- amp-e2e-tests, never deleted
- Namespace
- agent-platform test/e2e
Talks to (1)
- signs in with monitoring-token-provider obtains fresh user tokens for a monitoring orgHTTP in-cluster
Used by (1)
- needed by Integration suites in tests namespace agent-manager suites run the SaaS e2e imageimage amp-e2e-tests