Skip to content

Commit

Permalink
post rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
treblereel committed Oct 7, 2024
1 parent 989d950 commit ac78e6b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/e2e/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ var _ = Describe("Workflow Non-Persistence Use Cases :: ", Label("flows-ephemera
It("should not deploy the Simple Workflow because image contains no workflow definition", func() {

Check failure on line 140 in test/e2e/workflow_test.go

View workflow job for this annotation

GitHub Actions / End-to-End Tests (Kind)

It 10/07/24 18:20:43.762
By("creating an instance of the SonataFlow Operand(CR)")
EventuallyWithOffset(1, func() error {
cmd := exec.Command("kubectl", "apply", "-f", filepath.Join(projectDir,
"test/testdata/"+test.SonataFlowSimpleOpsYamlCRImageContainsNoWorkflow), "-n", targetNamespace)
cmd := exec.Command("kubectl", "apply", "-f", test.GetPathFromDataDirectory(test.SonataFlowSimpleOpsYamlCRImageContainsNoWorkflow), "-n", targetNamespace)
_, err := utils.Run(cmd)
return err
}, 3*time.Minute, time.Second).Should(Succeed())
Expand All @@ -152,8 +151,7 @@ var _ = Describe("Workflow Non-Persistence Use Cases :: ", Label("flows-ephemera
}, 1*time.Minute, 10*time.Second).Should(BeFalse(), "Workflow unexpectedly reached the running state")

EventuallyWithOffset(1, func() error {
cmd := exec.Command("kubectl", "delete", "-f", filepath.Join(projectDir,
"test/testdata/"+test.SonataFlowSimpleOpsYamlCRImageContainsNoWorkflow), "-n", targetNamespace)
cmd := exec.Command("kubectl", "delete", "-f", test.GetPathFromDataDirectory(test.SonataFlowSimpleOpsYamlCRImageContainsNoWorkflow), "-n", targetNamespace)
_, err := utils.Run(cmd)
return err
}, 3*time.Minute, time.Second).Should(Succeed())
Expand All @@ -162,8 +160,7 @@ var _ = Describe("Workflow Non-Persistence Use Cases :: ", Label("flows-ephemera
It("should not deploy the Simple Workflow because image contains broken (not equals to flow from yaml) workflow definition", func() {

Check failure on line 160 in test/e2e/workflow_test.go

View workflow job for this annotation

GitHub Actions / End-to-End Tests (Kind)

It 10/07/24 18:20:43.762
By("creating an instance of the SonataFlow Operand(CR)")
EventuallyWithOffset(1, func() error {
cmd := exec.Command("kubectl", "apply", "-f", filepath.Join(projectDir,
"test/testdata/"+test.SonataFlowSimpleOpsYamlCRImageContainsBrokenWorkflow), "-n", targetNamespace)
cmd := exec.Command("kubectl", "apply", "-f", test.GetPathFromDataDirectory(test.SonataFlowSimpleOpsYamlCRImageContainsBrokenWorkflow), "-n", targetNamespace)
_, err := utils.Run(cmd)
return err
}, 3*time.Minute, time.Second).Should(Succeed())
Expand All @@ -174,8 +171,7 @@ var _ = Describe("Workflow Non-Persistence Use Cases :: ", Label("flows-ephemera
}, 1*time.Minute, 10*time.Second).Should(BeFalse(), "Workflow unexpectedly reached the running state")

EventuallyWithOffset(1, func() error {
cmd := exec.Command("kubectl", "delete", "-f", filepath.Join(projectDir,
"test/testdata/"+test.SonataFlowSimpleOpsYamlCRImageContainsBrokenWorkflow), "-n", targetNamespace)
cmd := exec.Command("kubectl", "delete", "-f", test.GetPathFromDataDirectory(test.SonataFlowSimpleOpsYamlCRImageContainsBrokenWorkflow), "-n", targetNamespace)
_, err := utils.Run(cmd)
return err
}, 3*time.Minute, time.Second).Should(Succeed())
Expand Down

0 comments on commit ac78e6b

Please sign in to comment.