Skip to content

Commit

Permalink
Format go code
Browse files Browse the repository at this point in the history
Signed-off-by: Knative Automation <[email protected]>
  • Loading branch information
knative-automation committed Nov 26, 2024
1 parent 65da6fc commit d6bb33e
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions pkg/apis/sinks/v1alpha1/job_sink_defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,34 +34,34 @@ func TestSetDefaults(t *testing.T) {
initial: JobSink{
Spec: JobSinkSpec{
Job: &batchv1.Job{
Spec: batchv1.JobSpec{
Spec: batchv1.JobSpec{
Template: corev1.PodTemplateSpec{
Spec: corev1.PodSpec{
Spec: corev1.PodSpec{
Containers: []corev1.Container{
{
Name: "cnt",
Image: "img",
Name: "cnt",
Image: "img",
},
{
Name: "cnt2",
Image: "img2",
Name: "cnt2",
Image: "img2",
},
{
Name: "cnt3",
Image: "img3",
Name: "cnt3",
Image: "img3",
Env: []corev1.EnvVar{
{Name: "KNATIVE_EXECUTION_MODE", Value: "something"},
},
},
},
InitContainers: []corev1.Container{
{
Name: "cnt",
Image: "img",
Name: "cnt",
Image: "img",
},
{
Name: "cnt-ini2",
Image: "img-ini2",
Name: "cnt-ini2",
Image: "img-ini2",
Env: []corev1.EnvVar{
{Name: "KNATIVE_EXECUTION_MODE", Value: "something"},
},
Expand All @@ -76,43 +76,43 @@ func TestSetDefaults(t *testing.T) {
expected: JobSink{
Spec: JobSinkSpec{
Job: &batchv1.Job{
Spec: batchv1.JobSpec{
Spec: batchv1.JobSpec{
Template: corev1.PodTemplateSpec{
Spec: corev1.PodSpec{
Spec: corev1.PodSpec{
InitContainers: []corev1.Container{
{
Name: "cnt",
Image: "img",
Name: "cnt",
Image: "img",
Env: []corev1.EnvVar{
{Name: "KNATIVE_EXECUTION_MODE", Value: "batch"},
},
},
{
Name: "cnt-ini2",
Image: "img-ini2",
Name: "cnt-ini2",
Image: "img-ini2",
Env: []corev1.EnvVar{
{Name: "KNATIVE_EXECUTION_MODE", Value: "something"},
},
},
},
Containers: []corev1.Container{
{
Name: "cnt",
Image: "img",
Name: "cnt",
Image: "img",
Env: []corev1.EnvVar{
{Name: "KNATIVE_EXECUTION_MODE", Value: "batch"},
},
},
{
Name: "cnt2",
Image: "img2",
Name: "cnt2",
Image: "img2",
Env: []corev1.EnvVar{
{Name: "KNATIVE_EXECUTION_MODE", Value: "batch"},
},
},
{
Name: "cnt3",
Image: "img3",
Name: "cnt3",
Image: "img3",
Env: []corev1.EnvVar{
{Name: "KNATIVE_EXECUTION_MODE", Value: "something"},
},
Expand Down

0 comments on commit d6bb33e

Please sign in to comment.