Skip to content

Commit 6872b00

Browse files
committed
issue-11979 - WIP - Fixed tests
Signed-off-by: Helber Belmiro <[email protected]>
1 parent b080846 commit 6872b00

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

backend/test/v2/integration/dag_status_conditional_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ func (s *DAGStatusConditionalTestSuite) createUploadParams(testName, filePath st
5959
pipelineName := fmt.Sprintf("%s_test", testName)
6060
displayName := fmt.Sprintf("%s Test Pipeline", testName)
6161
description := fmt.Sprintf("Test pipeline for %s scenario", testName)
62+
63+
// Use resourceNamespace if available (Kubeflow mode), otherwise use kubeflow namespace
6264
namespace := s.resourceNamespace
65+
if namespace == "" {
66+
namespace = "kubeflow"
67+
}
6368

6469
uploadParams.SetName(&pipelineName)
6570
uploadParams.SetDisplayName(&displayName)

backend/test/v2/integration/dag_status_nested_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ func (s *DAGStatusNestedTestSuite) createUploadParams(testName, filePath string)
4141
pipelineName := fmt.Sprintf("%s_test", testName)
4242
displayName := fmt.Sprintf("%s Test Pipeline", testName)
4343
description := fmt.Sprintf("Test pipeline for %s scenario", testName)
44+
45+
// Use resourceNamespace if available (Kubeflow mode), otherwise use kubeflow namespace
4446
namespace := s.resourceNamespace
47+
if namespace == "" {
48+
namespace = "kubeflow"
49+
}
4550

4651
uploadParams.SetName(&pipelineName)
4752
uploadParams.SetDisplayName(&displayName)

backend/test/v2/integration/dag_status_parallel_for_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ func (s *DAGStatusParallelForTestSuite) createUploadParams(testName, filePath st
5757
pipelineName := fmt.Sprintf("%s_test", testName)
5858
displayName := fmt.Sprintf("%s Test Pipeline", testName)
5959
description := fmt.Sprintf("Test pipeline for %s scenario", testName)
60+
61+
// Use resourceNamespace if available (Kubeflow mode), otherwise use kubeflow namespace
6062
namespace := s.resourceNamespace
63+
if namespace == "" {
64+
namespace = "kubeflow"
65+
}
6166

6267
uploadParams.SetName(&pipelineName)
6368
uploadParams.SetDisplayName(&displayName)

0 commit comments

Comments
 (0)