Skip to content

Commit 9f18dad

Browse files
committed
Correct testing data typos, and redundant check.
Signed-off-by: Humair Khan <[email protected]>
1 parent d2305f4 commit 9f18dad

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

controllers/testdata/declarative/case_3/expected/not_created/sample-config.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ metadata:
44
name: sample-config-testdsp3
55
namespace: default
66
labels:
7-
app: ds-pipeline-testdsp2
7+
app: ds-pipeline-testdsp3
88
component: data-science-pipelines
99
data: {}

controllers/testdata/declarative/case_3/expected/not_created/sample-pipeline.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ metadata:
44
name: sample-pipeline-testdsp3
55
namespace: default
66
labels:
7-
app: ds-pipeline-testdsp2
7+
app: ds-pipeline-testdsp3
88
component: data-science-pipelines
99
data: {}

controllers/testutil/equalities.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func deploymentsAreEqual(expected, actual *unstructured.Unstructured) (bool, err
9898
}
9999

100100
if !reflect.DeepEqual(expectedDep.Spec.Template.ObjectMeta, actualDep.Spec.Template.ObjectMeta) {
101-
return false, notEqualMsg("selector")
101+
return false, notEqualMsg("spec template")
102102
}
103103

104104
if !reflect.DeepEqual(expectedDep.Spec.Template.Spec.Volumes, actualDep.Spec.Template.Spec.Volumes) {
@@ -123,9 +123,6 @@ func deploymentsAreEqual(expected, actual *unstructured.Unstructured) (bool, err
123123
}
124124
}
125125

126-
if !reflect.DeepEqual(expectedContainer.Env, actualContainer.Env) {
127-
return false, notEqualMsg("Container Env")
128-
}
129126
if !reflect.DeepEqual(expectedContainer.Ports, actualContainer.Ports) {
130127
return false, notEqualMsg("Container Ports")
131128
}

0 commit comments

Comments
 (0)