Skip to content

Commit d497e63

Browse files
Merge pull request #190 from gmfrasca/fix-largefile-unittest
UPSTREAM: <carry>: Update remote pipeline URL references to point to DSP repo in tests
2 parents 237f55f + 2debde0 commit d497e63

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

backend/src/apiserver/server/pipeline_server_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func TestCreatePipelineV1_LargeFile(t *testing.T) {
9595
pipelineServer := PipelineServer{resourceManager: resourceManager, httpClient: httpServer.Client(), options: &PipelineServerOptions{CollectMetrics: false}}
9696
pipeline, err := pipelineServer.CreatePipelineV1(context.Background(), &api.CreatePipelineRequest{
9797
Pipeline: &api.Pipeline{
98-
Url: &api.Url{PipelineUrl: "https://raw.githubusercontent.com/kubeflow/pipelines/master/sdk/python/test_data/pipelines/xgboost_sample_pipeline.yaml"},
98+
Url: &api.Url{PipelineUrl: "https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/master/sdk/python/test_data/pipelines/xgboost_sample_pipeline.yaml"},
9999
Name: "xgboost-url",
100100
Description: "pipeline description",
101101
},
@@ -782,7 +782,7 @@ func TestPipelineServer_CreatePipelineAndVersion_v2(t *testing.T) {
782782
},
783783
PipelineVersion: &apiv2.PipelineVersion{
784784
PackageUrl: &apiv2.Url{
785-
PipelineUrl: "https://raw.githubusercontent.com/kubeflow/pipelines/master/sdk/python/test_data/pipelines/xgboost_sample_pipeline.yaml",
785+
PipelineUrl: "https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/master/sdk/python/test_data/pipelines/xgboost_sample_pipeline.yaml",
786786
},
787787
},
788788
},

backend/test/integration/pipeline_api_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (s *PipelineApiTest) TestPipelineAPI() {
123123
time.Sleep(1 * time.Second)
124124
sequentialPipeline, err := s.pipelineClient.Create(&params.PipelineServiceCreatePipelineV1Params{
125125
Body: &model.APIPipeline{Name: "sequential", URL: &model.APIURL{
126-
PipelineURL: "https://raw.githubusercontent.com/kubeflow/pipelines/refs/heads/master/backend/test/v2/resources/sequential.yaml",
126+
PipelineURL: "https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/refs/heads/master/backend/test/v2/resources/sequential.yaml",
127127
}},
128128
})
129129
require.Nil(t, err)
@@ -137,7 +137,7 @@ func (s *PipelineApiTest) TestPipelineAPI() {
137137
assert.Equal(t, "zip-arguments-parameters", argumentUploadPipeline.Name)
138138

139139
/* ---------- Import pipeline tarball by URL ---------- */
140-
pipelineURL := "https://github.com/kubeflow/pipelines/raw/refs/heads/master/backend/test/v2/resources/arguments.pipeline.zip"
140+
pipelineURL := "https://github.com/opendatahub-io/data-science-pipelines/raw/refs/heads/master/backend/test/v2/resources/arguments.pipeline.zip"
141141

142142
if pullNumber := os.Getenv("PULL_NUMBER"); pullNumber != "" {
143143
pipelineURL = fmt.Sprintf("https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/pull/%s/head/backend/test/v2/resources/arguments.pipeline.zip", pullNumber)

backend/test/integration/pipeline_version_api_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (s *PipelineVersionApiTest) TestArgoSpec() {
146146
Body: &pipeline_model.APIPipelineVersion{
147147
Name: "sequential",
148148
PackageURL: &pipeline_model.APIURL{
149-
PipelineURL: "https://raw.githubusercontent.com/kubeflow/pipelines/refs/heads/master/backend/test/v2/resources/sequential.yaml",
149+
PipelineURL: "https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/refs/heads/master/backend/test/v2/resources/sequential.yaml",
150150
},
151151
ResourceReferences: []*pipeline_model.APIResourceReference{
152152
{
@@ -171,7 +171,7 @@ func (s *PipelineVersionApiTest) TestArgoSpec() {
171171

172172
/* ---------- Import pipeline tarball by URL ---------- */
173173
time.Sleep(1 * time.Second)
174-
pipelineURL := "https://github.com/kubeflow/pipelines/raw/refs/heads/master/backend/test/resources/arguments.pipeline.zip"
174+
pipelineURL := "https://github.com/opendatahub-io/data-science-pipelines/raw/refs/heads/master/backend/test/resources/arguments.pipeline.zip"
175175

176176
if pullNumber := os.Getenv("PULL_NUMBER"); pullNumber != "" {
177177
pipelineURL = fmt.Sprintf("https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/pull/%s/head/backend/test/resources/arguments.pipeline.zip", pullNumber)

backend/test/integration/upgrade_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func (s *UpgradeTests) PreparePipelines() {
272272
time.Sleep(1 * time.Second)
273273
sequentialPipeline, err := s.pipelineClient.Create(&pipelineParams.PipelineServiceCreatePipelineV1Params{
274274
Body: &pipeline_model.APIPipeline{Name: "sequential", URL: &pipeline_model.APIURL{
275-
PipelineURL: "https://raw.githubusercontent.com/kubeflow/pipelines/refs/heads/master/backend/test/v2/resources/sequential.yaml",
275+
PipelineURL: "https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/refs/heads/master/backend/test/v2/resources/sequential.yaml",
276276
}},
277277
})
278278
require.Nil(t, err)
@@ -286,7 +286,7 @@ func (s *UpgradeTests) PreparePipelines() {
286286
assert.Equal(t, "zip-arguments-parameters", argumentUploadPipeline.Name)
287287

288288
/* ---------- Import pipeline tarball by URL ---------- */
289-
pipelineURL := "https://github.com/kubeflow/pipelines/raw/refs/heads/master/backend/test/v2/resources/arguments.pipeline.zip"
289+
pipelineURL := "https://github.com/opendatahub-io/data-science-pipelines/raw/refs/heads/master/backend/test/v2/resources/arguments.pipeline.zip"
290290

291291
if pullNumber := os.Getenv("PULL_NUMBER"); pullNumber != "" {
292292
pipelineURL = fmt.Sprintf("https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/pull/%s/head/backend/test/v2/resources/arguments.pipeline.zip", pullNumber)

backend/test/v2/integration/pipeline_api_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (s *PipelineApiTest) TestPipelineAPI() {
131131
},
132132
PipelineVersion: &model.V2beta1PipelineVersion{
133133
PackageURL: &model.V2beta1URL{
134-
PipelineURL: "https://raw.githubusercontent.com/kubeflow/pipelines/refs/heads/master/backend/test/v2/resources/sequential-v2.yaml",
134+
PipelineURL: "https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/refs/heads/master/backend/test/v2/resources/sequential-v2.yaml",
135135
},
136136
},
137137
},
@@ -148,7 +148,7 @@ func (s *PipelineApiTest) TestPipelineAPI() {
148148
assert.Equal(t, "sequential", sequentialPipelineVersions[0].DisplayName)
149149
assert.Equal(t, "sequential pipeline", sequentialPipelineVersions[0].Description)
150150
assert.Equal(t, sequentialPipeline.PipelineID, sequentialPipelineVersions[0].PipelineID)
151-
assert.Equal(t, "https://raw.githubusercontent.com/kubeflow/pipelines/refs/heads/master/backend/test/v2/resources/sequential-v2.yaml", sequentialPipelineVersions[0].PackageURL.PipelineURL)
151+
assert.Equal(t, "https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/refs/heads/master/backend/test/v2/resources/sequential-v2.yaml", sequentialPipelineVersions[0].PackageURL.PipelineURL)
152152

153153
/* ---------- Upload pipelines zip ---------- */
154154
time.Sleep(1 * time.Second)
@@ -158,7 +158,7 @@ func (s *PipelineApiTest) TestPipelineAPI() {
158158
assert.Equal(t, "zip-arguments-parameters", argumentUploadPipeline.DisplayName)
159159

160160
/* ---------- Import pipeline tarball by URL ---------- */
161-
pipelineURL := "https://github.com/kubeflow/pipelines/raw/refs/heads/master/backend/test/v2/resources/arguments.pipeline.zip"
161+
pipelineURL := "https://github.com/opendatahub-io/data-science-pipelines/raw/refs/heads/master/backend/test/v2/resources/arguments.pipeline.zip"
162162

163163
if pullNumber := os.Getenv("PULL_NUMBER"); pullNumber != "" {
164164
pipelineURL = fmt.Sprintf("https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/pull/%s/head/backend/test/v2/resources/arguments.pipeline.zip", pullNumber)

backend/test/v2/integration/pipeline_version_api_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (s *PipelineVersionApiTest) TestPipelineSpec() {
141141
Name: "sequential-v2",
142142
DisplayName: "sequential",
143143
PackageURL: &pipeline_model.V2beta1URL{
144-
PipelineURL: "https://raw.githubusercontent.com/kubeflow/pipelines/refs/heads/master/backend/test/v2/resources/sequential-v2.yaml",
144+
PipelineURL: "https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/refs/heads/master/backend/test/v2/resources/sequential-v2.yaml",
145145
},
146146
PipelineID: pipelineId,
147147
},
@@ -161,7 +161,7 @@ func (s *PipelineVersionApiTest) TestPipelineSpec() {
161161
assert.Equal(t, "zip-arguments-parameters", argumentUploadPipelineVersion.DisplayName)
162162

163163
/* ---------- Import pipeline tarball by URL ---------- */
164-
pipelineURL := "https://github.com/kubeflow/pipelines/raw/refs/heads/master/backend/test/v2/resources/arguments.pipeline.zip"
164+
pipelineURL := "https://github.com/opendatahub-io/data-science-pipelines/raw/refs/heads/master/backend/test/v2/resources/arguments.pipeline.zip"
165165

166166
if pullNumber := os.Getenv("PULL_NUMBER"); pullNumber != "" {
167167
pipelineURL = fmt.Sprintf("https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/pull/%s/head/backend/test/v2/resources/arguments.pipeline.zip", pullNumber)

backend/test/v2/integration/upgrade_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func (s *UpgradeTests) PreparePipelines() {
278278
Body: &pipeline_model.V2beta1PipelineVersion{
279279
DisplayName: "sequential",
280280
PackageURL: &pipeline_model.V2beta1URL{
281-
PipelineURL: "https://raw.githubusercontent.com/kubeflow/pipelines/refs/heads/master/backend/test/v2/resources/sequential-v2.yaml",
281+
PipelineURL: "https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/refs/heads/master/backend/test/v2/resources/sequential-v2.yaml",
282282
},
283283
PipelineID: sequentialPipeline.PipelineID,
284284
},
@@ -294,7 +294,7 @@ func (s *UpgradeTests) PreparePipelines() {
294294
assert.Equal(t, "zip-arguments-parameters", argumentUploadPipeline.DisplayName)
295295

296296
/* ---------- Import pipeline tarball by URL ---------- */
297-
pipelineURL := "https://github.com/kubeflow/pipelines/raw/refs/heads/master/backend/test/v2/resources/arguments.pipeline.zip"
297+
pipelineURL := "https://github.com/opendatahub-io/data-science-pipelines/raw/refs/heads/master/backend/test/v2/resources/arguments.pipeline.zip"
298298

299299
if pullNumber := os.Getenv("PULL_NUMBER"); pullNumber != "" {
300300
pipelineURL = fmt.Sprintf("https://raw.githubusercontent.com/opendatahub-io/data-science-pipelines/pull/%s/head/backend/test/v2/resources/arguments.pipeline.zip", pullNumber)

0 commit comments

Comments
 (0)