You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2022/06/02 08:05:44 UTC
[camel-k] branch release-1.9.x updated: [TEST] Add autoscaling test
This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch release-1.9.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-1.9.x by this push:
new 6cd266c9e [TEST] Add autoscaling test
6cd266c9e is described below
commit 6cd266c9e84767d9472f037d127752908cdee0a7
Author: Jan Bouska <jb...@redhat.com>
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())
})
}