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/20 07:26:58 UTC
[camel-k] branch release-1.8.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.8.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-1.8.x by this push:
new e40e8b4be [TEST] Add autoscaling test
e40e8b4be is described below
commit e40e8b4bebae22e6b7643b2a6caa028cea0b71d1
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())
})
}