This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-serverless-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 19725572 kie-issues#755 - Increase E2E tests timeouts (#349)
19725572 is described below
commit 19725572344e19f34e31f32086efc368b6f0512f
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Fri Jan 12 08:43:32 2024 -0300
kie-issues#755 - Increase E2E tests timeouts (#349)
* Increase E2E test timeouts
* Increase E2E test timeout
---
Makefile | 2 +-
test/e2e/workflow_test.go | 20 ++++++++++----------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/Makefile b/Makefile
index 9c8e4531..68254626 100644
--- a/Makefile
+++ b/Makefile
@@ -346,7 +346,7 @@ generate-all: generate generate-deploy bundle addheaders
vet fmt
.PHONY: test-e2e # You will need to have a Minikube/Kind cluster up in running
to run this target, and run container-builder before the test
test-e2e: install-operator-sdk
- go test ./test/e2e/* -v -ginkgo.v
+ go test ./test/e2e/* -v -ginkgo.v -timeout 30m
.PHONY: before-pr
before-pr: test generate-all
\ No newline at end of file
diff --git a/test/e2e/workflow_test.go b/test/e2e/workflow_test.go
index f1cec28d..a43caede 100644
--- a/test/e2e/workflow_test.go
+++ b/test/e2e/workflow_test.go
@@ -161,7 +161,7 @@ var _ = Describe("SonataFlow Operator", Ordered, func() {
}
return nil
}
- EventuallyWithOffset(1, verifyControllerUp, time.Minute,
time.Second).Should(Succeed())
+ EventuallyWithOffset(1, verifyControllerUp, 2*time.Minute,
time.Second).Should(Succeed())
})
AfterAll(func() {
@@ -183,7 +183,7 @@ var _ = Describe("SonataFlow Operator", Ordered, func() {
"test/testdata/"+test.SonataFlowSimpleOpsYamlCR), "-n", namespace)
_, err := utils.Run(cmd)
return err
- }, time.Minute, time.Second).Should(Succeed())
+ }, 2*time.Minute, time.Second).Should(Succeed())
By("check the workflow is in running state")
EventuallyWithOffset(1, func() bool { return
verifyWorkflowIsInRunningState("simple") }, 15*time.Minute,
30*time.Second).Should(BeTrue())
@@ -193,7 +193,7 @@ var _ = Describe("SonataFlow Operator", Ordered, func() {
"test/testdata/"+test.SonataFlowSimpleOpsYamlCR), "-n", namespace)
_, err := utils.Run(cmd)
return err
- }, time.Minute, time.Second).Should(Succeed())
+ }, 2*time.Minute, time.Second).Should(Succeed())
})
It("should successfully deploy the Greeting Workflow in prod
mode and verify if it's running", func() {
@@ -203,7 +203,7 @@ var _ = Describe("SonataFlow Operator", Ordered, func() {
"test/testdata/"+test.SonataFlowGreetingsDataInputSchemaConfig), "-n",
namespace)
_, err := utils.Run(cmd)
return err
- }, time.Minute, time.Second).Should(Succeed())
+ }, 2*time.Minute, time.Second).Should(Succeed())
By("creating an instance of the SonataFlow Operand(CR)")
EventuallyWithOffset(1, func() error {
@@ -211,7 +211,7 @@ var _ = Describe("SonataFlow Operator", Ordered, func() {
"test/testdata/"+test.SonataFlowGreetingsWithDataInputSchemaCR), "-n",
namespace)
_, err := utils.Run(cmd)
return err
- }, time.Minute, time.Second).Should(Succeed())
+ }, 2*time.Minute, time.Second).Should(Succeed())
By("check the workflow is in running state")
EventuallyWithOffset(1, func() bool { return
verifyWorkflowIsInRunningState("greeting") }, 15*time.Minute,
30*time.Second).Should(BeTrue())
@@ -221,7 +221,7 @@ var _ = Describe("SonataFlow Operator", Ordered, func() {
"test/testdata/"+test.SonataFlowGreetingsWithDataInputSchemaCR), "-n",
namespace)
_, err := utils.Run(cmd)
return err
- }, time.Minute, time.Second).Should(Succeed())
+ }, 2*time.Minute, time.Second).Should(Succeed())
})
It("should successfully deploy the orderprocessing workflow in
devmode and verify if it's running", func() {
@@ -232,10 +232,10 @@ var _ = Describe("SonataFlow Operator", Ordered, func() {
test.GetSonataFlowE2eOrderProcessingFolder()), "-n", namespace)
_, err := utils.Run(cmd)
return err
- }, time.Minute, time.Second).Should(Succeed())
+ }, 2*time.Minute, time.Second).Should(Succeed())
By("check the workflow is in running state")
- EventuallyWithOffset(1, func() bool { return
verifyWorkflowIsInRunningState("orderprocessing") }, 5*time.Minute,
30*time.Second).Should(BeTrue())
+ EventuallyWithOffset(1, func() bool { return
verifyWorkflowIsInRunningState("orderprocessing") }, 10*time.Minute,
30*time.Second).Should(BeTrue())
cmdLog := exec.Command("kubectl", "logs",
"orderprocessing", "-n", namespace)
if responseLog, errLog := utils.Run(cmdLog); errLog ==
nil {
@@ -243,14 +243,14 @@ var _ = Describe("SonataFlow Operator", Ordered, func() {
}
By("check that the workflow is addressable")
- EventuallyWithOffset(1, func() bool { return
verifyWorkflowIsAddressable("orderprocessing") }, 5*time.Minute,
30*time.Second).Should(BeTrue())
+ EventuallyWithOffset(1, func() bool { return
verifyWorkflowIsAddressable("orderprocessing") }, 10*time.Minute,
30*time.Second).Should(BeTrue())
EventuallyWithOffset(1, func() error {
cmd := exec.Command("kubectl", "delete", "-f",
filepath.Join(projectDir,
test.GetSonataFlowE2eOrderProcessingFolder()), "-n", namespace)
_, err := utils.Run(cmd)
return err
- }, time.Minute, time.Second).Should(Succeed())
+ }, 2*time.Minute, time.Second).Should(Succeed())
})
})
})
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]