This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new 8e65da72c [TEST] Add autoscaling test
8e65da72c is described below

commit 8e65da72cb55777ad1bcd5805e7c7266e8745afe
Author: Jan Bouska <[email protected]>
AuthorDate: Wed Jun 1 10:34:58 2022 +0200

    [TEST] Add autoscaling test
---
 e2e/knative/knative_test.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/e2e/knative/knative_test.go b/e2e/knative/knative_test.go
index fe1e6f976..7d7c780dc 100644
--- a/e2e/knative/knative_test.go
+++ b/e2e/knative/knative_test.go
@@ -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())
        })
 }

Reply via email to