@@ -167,8 +167,8 @@ func TestCopyToNamespace(t *testing.T) {
167
167
UID : "uid" ,
168
168
ResourceVersion : "42" ,
169
169
Annotations : map [string ]string {
170
- "$copyhash-nonstatus" : "hn" ,
171
- "$copyhash-status" : "hs-2" ,
170
+ "$copyhash-spec" : "hn" ,
171
+ "$copyhash-status" : "hs-2" ,
172
172
},
173
173
},
174
174
},
@@ -220,8 +220,8 @@ func TestCopyToNamespace(t *testing.T) {
220
220
UID : "uid" ,
221
221
ResourceVersion : "42" ,
222
222
Annotations : map [string ]string {
223
- "$copyhash-nonstatus" : "hn-2" ,
224
- "$copyhash-status" : "hs-2" ,
223
+ "$copyhash-spec" : "hn-2" ,
224
+ "$copyhash-status" : "hs-2" ,
225
225
},
226
226
},
227
227
},
@@ -280,8 +280,8 @@ func TestCopyToNamespace(t *testing.T) {
280
280
Namespace : "to" ,
281
281
UID : "uid" ,
282
282
Annotations : map [string ]string {
283
- "$copyhash-nonstatus" : "hn" ,
284
- "$copyhash-status" : "hs" ,
283
+ "$copyhash-spec" : "hn" ,
284
+ "$copyhash-status" : "hs" ,
285
285
},
286
286
},
287
287
},
@@ -301,9 +301,8 @@ func TestCopyToNamespace(t *testing.T) {
301
301
client := fake .NewSimpleClientset ()
302
302
303
303
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 })
307
306
} else {
308
307
v1alpha1lister .ClusterServiceVersionListerReturns (FakeClusterServiceVersionLister (nil ))
309
308
}
0 commit comments