Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VaniHaripriya committed Dec 13, 2024
1 parent 083a2ee commit 93706b9
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 50 deletions.
4 changes: 0 additions & 4 deletions controllers/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ func TestDeployCommonPolicies(t *testing.T) {
Image: "someimage",
},
},
APIServer: &dspav1.APIServer{
EnableSamplePipeline: false,
EnableIlabKFPPipeline: false,
},
},
}

Expand Down
8 changes: 0 additions & 8 deletions controllers/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ func TestDeployDatabase(t *testing.T) {
Image: "someimage",
},
},
APIServer: &dspav1.APIServer{
EnableSamplePipeline: false,
EnableIlabKFPPipeline: false,
},
},
}

Expand Down Expand Up @@ -100,10 +96,6 @@ func TestDontDeployDatabase(t *testing.T) {
Image: "someimage",
},
},
APIServer: &dspav1.APIServer{
EnableSamplePipeline: false,
EnableIlabKFPPipeline: false,
},
},
}

Expand Down
5 changes: 3 additions & 2 deletions controllers/dspipeline_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,6 @@ func (p *DSPAParams) ExtractParams(ctx context.Context, dsp *dspa.DataSciencePip
p.CustomCABundleRootMountPath = config.CustomCABundleRootMountPath
p.PiplinesCABundleMountPath = config.GetCABundleFileMountPath()
p.PodToPodTLS = false
p.EnableSamplePipeline = dsp.Spec.APIServer.EnableSamplePipeline
p.EnableIlabKFPPipeline = dsp.Spec.APIServer.EnableIlabKFPPipeline
dspTrustedCAConfigMapKey := config.CustomDSPTrustedCAConfigMapKey

// by default it's enabled when omitted
Expand All @@ -599,6 +597,9 @@ func (p *DSPAParams) ExtractParams(ctx context.Context, dsp *dspa.DataSciencePip
argoLauncherImageFromConfig := config.GetStringConfigWithDefault(config.LauncherImagePath, config.DefaultImageValue)
argoDriverImageFromConfig := config.GetStringConfigWithDefault(config.DriverImagePath, config.DefaultImageValue)

p.EnableSamplePipeline = dsp.Spec.APIServer.EnableSamplePipeline
p.EnableIlabKFPPipeline = dsp.Spec.APIServer.EnableIlabKFPPipeline

setStringDefault(serverImageFromConfig, &p.APIServer.Image)
setStringDefault(argoLauncherImageFromConfig, &p.APIServer.ArgoLauncherImage)
setStringDefault(argoDriverImageFromConfig, &p.APIServer.ArgoDriverImage)
Expand Down
12 changes: 0 additions & 12 deletions controllers/mlpipeline_ui_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ func TestDeployUI(t *testing.T) {
Image: "someimage",
},
},
APIServer: &dspav1.APIServer{
EnableSamplePipeline: false,
EnableIlabKFPPipeline: false,
},
},
}

Expand Down Expand Up @@ -108,10 +104,6 @@ func TestDontDeployUI(t *testing.T) {
Image: "someimage",
},
},
APIServer: &dspav1.APIServer{
EnableSamplePipeline: false,
EnableIlabKFPPipeline: false,
},
},
}

Expand Down Expand Up @@ -162,10 +154,6 @@ func TestDefaultDeployBehaviorUI(t *testing.T) {
Image: "someimage",
},
},
APIServer: &dspav1.APIServer{
EnableSamplePipeline: false,
EnableIlabKFPPipeline: false,
},
},
}

Expand Down
4 changes: 0 additions & 4 deletions controllers/persistence_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ func TestDeployPersistenceAgent(t *testing.T) {
Image: "someimage",
},
},
APIServer: &dspav1.APIServer{
EnableSamplePipeline: false,
EnableIlabKFPPipeline: false,
},
},
}

Expand Down
4 changes: 0 additions & 4 deletions controllers/scheduled_workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ func TestDeployScheduledWorkflow(t *testing.T) {
Image: "someimage",
},
},
APIServer: &dspav1.APIServer{
EnableSamplePipeline: false,
EnableIlabKFPPipeline: false,
},
},
}

Expand Down
16 changes: 0 additions & 16 deletions controllers/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ func TestDeployStorage(t *testing.T) {
},
},
},
APIServer: &dspav1.APIServer{
EnableSamplePipeline: false,
EnableIlabKFPPipeline: false,
},
},
}

Expand Down Expand Up @@ -136,10 +132,6 @@ func TestDeployStorageWithExternalRouteEnabled(t *testing.T) {
},
},
},
APIServer: &dspav1.APIServer{
EnableSamplePipeline: false,
EnableIlabKFPPipeline: false,
},
},
}

Expand Down Expand Up @@ -202,10 +194,6 @@ func TestDontDeployStorage(t *testing.T) {
Image: "someimage",
},
},
APIServer: &dspav1.APIServer{
EnableSamplePipeline: false,
EnableIlabKFPPipeline: false,
},
},
}

Expand Down Expand Up @@ -252,10 +240,6 @@ func TestDefaultDeployBehaviorStorage(t *testing.T) {
ObjectStorage: &dspav1.ObjectStorage{
DisableHealthCheck: false,
},
APIServer: &dspav1.APIServer{
EnableSamplePipeline: false,
EnableIlabKFPPipeline: false,
},
},
}

Expand Down

0 comments on commit 93706b9

Please sign in to comment.