Skip to content

Commit

Permalink
[issue-368] knative integration with DataIndex and JobService: fix e2…
Browse files Browse the repository at this point in the history
…e test errors and use temp images for DI and JS
  • Loading branch information
jianrongzhang89 committed Aug 12, 2024
1 parent 68e4167 commit 31e96d0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions test/e2e/platform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,14 @@ var _ = Describe("Validate the persistence", Ordered, func() {
Entry("and both Job Service and Data Index have service level brokers", test.GetSonataFlowE2EPlatformServicesKnativeDirectory("service-level-broker")),
)

DescribeTable("when deploying a SonataFlowPlatform CR with platform broker", func(testcaseDir, brokerNamespace string) {
brokerName := "default"
DescribeTable("when deploying a SonataFlowPlatform CR with platform broker", func(testcaseDir string, brokerInAnotherNamespace bool) {
By("Deploy the broker")
brokerName := "default"
brokerNamespace := targetNamespace
if brokerInAnotherNamespace {
brokerNamespace = targetNamespace2
}
GinkgoWriter.Println(fmt.Sprintf("testcaseDir=%v, brokerNamespace = %s", testcaseDir, brokerNamespace))
cmd := exec.Command("kubectl", "create", "-n", brokerNamespace, "-f", filepath.Join(projectDir,
testcaseDir, "broker"))
_, err := utils.Run(cmd)
Expand Down Expand Up @@ -333,7 +338,7 @@ var _ = Describe("Validate the persistence", Ordered, func() {
Expect(verifyTrigger(triggers, sfName, "", brokerNamespace, brokerName)).NotTo(HaveOccurred())
Expect(verifySinkBinding(fmt.Sprintf("%s-sb", sfName), targetNamespace, brokerName)).NotTo(HaveOccurred())
},
Entry("and with broker and platform in the same namespace", test.GetSonataFlowE2EPlatformServicesKnativeDirectory("platform-level-broker"), targetNamespace),
Entry("and with broker and platform in a separate namespace", test.GetSonataFlowE2EPlatformServicesKnativeDirectory("platform-level-broker"), targetNamespace2),
Entry("and with broker and platform in the same namespace", test.GetSonataFlowE2EPlatformServicesKnativeDirectory("platform-level-broker"), false),
Entry("and with broker and platform in a separate namespace", test.GetSonataFlowE2EPlatformServicesKnativeDirectory("platform-level-broker"), true),
)
})

0 comments on commit 31e96d0

Please sign in to comment.