This repository was archived by the owner on Apr 4, 2023. It is now read-only.
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Pilot integration tests #173
Open
Description
I want to be able to quickly test that:
- Pilot runs
- logs info and error messages
- creates Events.
- Waits for PilotResource
- Identifies the correct pilot resource
- Ignores unrelated PilotResource
- Updates PilotResource status
- Starts a sub-process database
- Logs output of its sub-process
- Detects problems in the database
- Syncs the configuration of the database with the PilotResource configuration
- responds to SIGTERM
- Drains the database before it shuts down.
- Shuts down.
I think it should be possible to do this all in a single test process.
- Start an Kubernetes API server in a goroutine or start a
kubectl proxy
sub process or launch the tests in a pod. - Start the Pilot in a goroutine
- Wait for the pilot to shutdown before exiting the test.
/kind bug