Skip to content

Commit f5e4c64

Browse files
committed
Update test annotations and test client
Signed-off-by: Todd Short <[email protected]>
1 parent 3b4e6f5 commit f5e4c64

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pkg/controller/operators/olm/operatorgroup_test.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ func TestCopyToNamespace(t *testing.T) {
167167
UID: "uid",
168168
ResourceVersion: "42",
169169
Annotations: map[string]string{
170-
"$copyhash-nonstatus": "hn",
171-
"$copyhash-status": "hs-2",
170+
"$copyhash-spec": "hn",
171+
"$copyhash-status": "hs-2",
172172
},
173173
},
174174
},
@@ -220,8 +220,8 @@ func TestCopyToNamespace(t *testing.T) {
220220
UID: "uid",
221221
ResourceVersion: "42",
222222
Annotations: map[string]string{
223-
"$copyhash-nonstatus": "hn-2",
224-
"$copyhash-status": "hs-2",
223+
"$copyhash-spec": "hn-2",
224+
"$copyhash-status": "hs-2",
225225
},
226226
},
227227
},
@@ -280,8 +280,8 @@ func TestCopyToNamespace(t *testing.T) {
280280
Namespace: "to",
281281
UID: "uid",
282282
Annotations: map[string]string{
283-
"$copyhash-nonstatus": "hn",
284-
"$copyhash-status": "hs",
283+
"$copyhash-spec": "hn",
284+
"$copyhash-status": "hs",
285285
},
286286
},
287287
},
@@ -301,9 +301,8 @@ func TestCopyToNamespace(t *testing.T) {
301301
client := fake.NewSimpleClientset()
302302

303303
if tc.ExistingCopy != nil {
304-
client = fake.NewSimpleClientset(&v1alpha1.ClusterServiceVersion{
305-
ObjectMeta: tc.ExistingCopy.ObjectMeta,
306-
})
304+
client = fake.NewSimpleClientset(tc.ExistingCopy)
305+
v1alpha1lister.ClusterServiceVersionListerReturns(FakeClusterServiceVersionLister{tc.ExistingCopy})
307306
} else {
308307
v1alpha1lister.ClusterServiceVersionListerReturns(FakeClusterServiceVersionLister(nil))
309308
}

0 commit comments

Comments
 (0)