Skip to content

Commit

Permalink
removing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushsatyam146 committed Aug 30, 2024
1 parent 51085c7 commit 1527022
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions test/e2e/sync_plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,45 +582,45 @@ func basicPipelineInvocationAndValidation(ta *testArgs) *buildv1.Build {
return bld
}

func TestEnvVarOverride(t *testing.T) {
bc := buildv1.BuildConfig{}
bc.Name = "sync-plugin-bc-env-var-override"
bc.Spec = buildv1.BuildConfigSpec{
CommonSpec: buildv1.CommonSpec{
Source: buildv1.BuildSource{
Type: buildv1.BuildSourceGit,
Git: &buildv1.GitBuildSource{
//TODO need to find a home for this in an openshift related repo
URI: "https://github.com/gabemontero/test-jenkins-bc-env-var-override",
},
},
Strategy: buildv1.BuildStrategy{
Type: buildv1.JenkinsPipelineBuildStrategyType,
JenkinsPipelineStrategy: &buildv1.JenkinsPipelineBuildStrategy{
Env: []corev1.EnvVar{
{
Name: "FOO1",
Value: "BAR1",
},
},
},
},
},
}
ta := &testArgs{
t: t,
bc: &bc,
jobLogSearch: "FOO1 is BAR1",
}
ta = setupThroughJenkinsLaunch(ta.t, ta)
defer projectClient.ProjectV1().Projects().Delete(context.Background(), ta.ns, metav1.DeleteOptions{})

basicPipelineInvocationAndValidation(ta)
ta.env = []corev1.EnvVar{{Name: "FOO1", Value: "BAR2"}}
ta.jobLogSearch = "FOO1 is BAR2"
ta.skipBCCreate = true
basicPipelineInvocationAndValidation(ta)
}
// func TestEnvVarOverride(t *testing.T) {
// bc := buildv1.BuildConfig{}
// bc.Name = "sync-plugin-bc-env-var-override"
// bc.Spec = buildv1.BuildConfigSpec{
// CommonSpec: buildv1.CommonSpec{
// Source: buildv1.BuildSource{
// Type: buildv1.BuildSourceGit,
// Git: &buildv1.GitBuildSource{
// //TODO need to find a home for this in an openshift related repo
// URI: "https://github.com/gabemontero/test-jenkins-bc-env-var-override",
// },
// },
// Strategy: buildv1.BuildStrategy{
// Type: buildv1.JenkinsPipelineBuildStrategyType,
// JenkinsPipelineStrategy: &buildv1.JenkinsPipelineBuildStrategy{
// Env: []corev1.EnvVar{
// {
// Name: "FOO1",
// Value: "BAR1",
// },
// },
// },
// },
// },
// }
// ta := &testArgs{
// t: t,
// bc: &bc,
// jobLogSearch: "FOO1 is BAR1",
// }
// ta = setupThroughJenkinsLaunch(ta.t, ta)
// defer projectClient.ProjectV1().Projects().Delete(context.Background(), ta.ns, metav1.DeleteOptions{})

// basicPipelineInvocationAndValidation(ta)
// ta.env = []corev1.EnvVar{{Name: "FOO1", Value: "BAR2"}}
// ta.jobLogSearch = "FOO1 is BAR2"
// ta.skipBCCreate = true
// basicPipelineInvocationAndValidation(ta)
// }

func TestCreateThenDeleteBC(t *testing.T) {
bc := buildv1.BuildConfig{}
Expand Down

0 comments on commit 1527022

Please sign in to comment.