[TEST] Add autoscaling test
@@ -124,6 +124,11 @@ func TestRunFlow(t *testing.T) {
Expect(Kamel("run", "-n", ns, "files/flow.yaml").Execute()).To(Succeed())
Eventually(IntegrationPodPhase(ns, "flow"), TestTimeoutLong).Should(Equal(v1.PodRunning))
Eventually(IntegrationConditionStatus(ns, "flow", camelv1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(v1.ConditionTrue))
+
+ t.Run("Scale to zero", func(t *testing.T) {
+ Eventually(IntegrationPod(ns, "flow"), TestTimeoutLong).Should(BeNil())
+ })
+
Expect(Kamel("delete", "--all", "-n", ns).Execute()).To(Succeed())
})
}
