Skip to content

Commit

Permalink
Distinquish wf without persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
domhanak committed Feb 7, 2024
1 parent 35599ea commit d3af319
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/e2e/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ var _ = Describe("Validate the persistence ", Ordered, func() {
By("Wait for SonatatFlow CR to complete deployment")
// wait for service deployments to be ready
EventuallyWithOffset(1, func() error {
cmd = exec.Command("kubectl", "wait", "pod", "-n", ns, "-l", "sonataflow.org/workflow-app=callbackstatetimeouts", "--for", "condition=Ready", "--timeout=5s")
cmd = exec.Command("kubectl", "wait", "pod", "-n", ns, "-l", "sonataflow.org/workflow-app=callbackstatetimeouts-persistence", "--for", "condition=Ready", "--timeout=5s")
out, err := utils.Run(cmd)
GinkgoWriter.Printf("%s\n", string(out))
return err
}, 10*time.Minute, 5).Should(Succeed())

By("Evaluate status of the workflow's pod database connection health endpoint")
cmd = exec.Command("kubectl", "get", "pod", "-l", "sonataflow.org/workflow-app=callbackstatetimeouts", "-n", ns, "-ojsonpath={.items[*].metadata.name}")
cmd = exec.Command("kubectl", "get", "pod", "-l", "sonataflow.org/workflow-app=callbackstatetimeouts-persistence", "-n", ns, "-ojsonpath={.items[*].metadata.name}")
output, err := utils.Run(cmd)
Expect(err).NotTo(HaveOccurred())
EventuallyWithOffset(1, func() bool {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
apiVersion: sonataflow.org/v1alpha08
kind: SonataFlow
metadata:
name: callbackstatetimeouts
name: callbackstatetimeouts-persistence
annotations:
sonataflow.org/description: Callback State Timeouts Example k8s
sonataflow.org/version: 0.0.1
Expand All @@ -30,7 +30,7 @@ spec:
name: postgres
port: 5432
databaseName: sonataflow
databaseSchema: callbackstatetimeouts
databaseSchema: callbackstatetimeouts-persistence
podTemplate:
container:
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
resources:
- 01-postgres.yaml
- 02-sonataflow_platform.yaml
- 03-sonataflow_callbackstatetimeouts.sw.yaml
- 03-sonataflow_callbackstatetimeouts_persistence.sw.yaml

generatorOptions:
disableNameSuffixHash: true
Expand Down

0 comments on commit d3af319

Please sign in to comment.