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

commit f107f5b913da4dc03aab46fe2eb8eaf287c0e67f
Author: Pasquale Congiusti <pasquale.congiu...@gmail.com>
AuthorDate: Wed Jul 27 12:00:57 2022 +0200

    fix(e2e): integration test refactoring
    
    Ref #3487
---
 e2e/global/common/integration_fail_test.go | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/e2e/global/common/integration_fail_test.go 
b/e2e/global/common/integration_fail_test.go
index ec41bdd6a..c95b691b1 100644
--- a/e2e/global/common/integration_fail_test.go
+++ b/e2e/global/common/integration_fail_test.go
@@ -55,17 +55,10 @@ func TestBadRouteIntegration(t *testing.T) {
                                Should(gstruct.PointTo(BeNumerically("==", 2)))
                        // Check the Integration stays in error phase
                        Eventually(IntegrationPhase(ns, name), 
TestTimeoutShort).Should(Equal(v1.IntegrationPhaseError))
-               })
 
-               // Clean up
-               Expect(Kamel("delete", "--all", "-n", 
ns).Execute()).To(Succeed())
-       })
-}
-
-func TestMissingDependencyIntegration(t *testing.T) {
-       WithNewTestNamespace(t, func(ns string) {
-               operatorID := "camel-k-missing-dependencies"
-               Expect(KamelInstallWithID(operatorID, 
ns).Execute()).To(Succeed())
+                       // Clean up
+                       Expect(Kamel("delete", "--all", "-n", 
ns).Execute()).To(Succeed())
+               })
 
                t.Run("run missing dependency java route", func(t *testing.T) {
                        RegisterTestingT(t)
@@ -80,9 +73,9 @@ func TestMissingDependencyIntegration(t *testing.T) {
                        build := Build(ns, kitName)()
                        Eventually(build.Status.Phase, 
TestTimeoutShort).Should(Equal(v1.BuildPhaseError))
                        Eventually(build.Status.Failure.Recovery.Attempt, 
TestTimeoutShort).Should(Equal(5))
-               })
 
-               // Clean up
-               Expect(Kamel("delete", "--all", "-n", 
ns).Execute()).To(Succeed())
+                       // Clean up
+                       Expect(Kamel("delete", "--all", "-n", 
ns).Execute()).To(Succeed())
+               })
        })
 }

Reply via email to