-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
Quality / Stability / Reliability
-
False
-
None
-
False
-
None
-
None
-
None
-
None
-
None
Our unit tests for ClusterPools are nice, but they only test one reconcile in one controller in isolation. It sure would improve confidence to have some integration tests for ClusterPools in the e2e suite.
These can also validate hibernate/resume (of real clusters).
Because that'll all take a while, we should probably do it in a separate test from e2e. (We could kick it off in that suite in parallel, but that could make it harder to debug issues that arise.)
Draft high-level design of the test:
- Create a ClusterPool for real AWS CDs. Size=1 at least to start.
- Verify the pool creates a CD; wait for it to settle with Installed=True and PowerState/Condition=Hibernating
- Create a claim. Verify it gets the above CD.
- Verify the pool backfills the CD.
- Verify the claimed CD goes to Running
- Hibernate and wake the claimed CD again?
- Delete the claim. Verify the claimed CD is properly deleted
- Delete the pool. Verify the backfill CD goes away.