@@ -192,8 +192,8 @@ func Test_poll_reconcile_objects(t *testing.T) {
192
192
193
193
// Ignore the first one as it's the original resource.
194
194
for idx , item := range tfList .Items [1 :] {
195
- expectToEqual (g , item .Name , fmt .Sprintf ("%s-%d" , original .Name , idx + 1 ))
196
- expectToEqual (g , item .Spec .SourceRef .Name , fmt .Sprintf ("%s-source-%d" , original .Name , idx + 1 ))
195
+ expectToEqual (g , item .Name , fmt .Sprintf ("%s-pr- %d" , original .Name , idx + 1 ))
196
+ expectToEqual (g , item .Spec .SourceRef .Name , fmt .Sprintf ("%s-source-pr- %d" , original .Name , idx + 1 ))
197
197
expectToEqual (g , item .Spec .SourceRef .Namespace , ns .Name )
198
198
expectToEqual (g , item .Spec .PlanOnly , true )
199
199
expectToEqual (g , item .Spec .StoreReadablePlan , "human" )
@@ -217,7 +217,7 @@ func Test_poll_reconcile_objects(t *testing.T) {
217
217
218
218
// Ignore the first one as it's the original resource.
219
219
for idx , item := range srcList .Items [1 :] {
220
- expectToEqual (g , item .Name , fmt .Sprintf ("%s-%d" , source .Name , idx + 1 ))
220
+ expectToEqual (g , item .Name , fmt .Sprintf ("%s-pr- %d" , source .Name , idx + 1 ))
221
221
expectToEqual (g , item .Spec .Reference .Branch , fmt .Sprintf ("test-branch-%d" , idx + 1 ))
222
222
expectToEqual (g , item .Labels [bpconfig .LabelKey ], bpconfig .LabelValue )
223
223
expectToEqual (g , item .Labels ["test-label" ], "123" )
@@ -260,7 +260,7 @@ func Test_poll_reconcile_objects(t *testing.T) {
260
260
261
261
expectToEqual (g , len (tfList .Items ), 2 )
262
262
expectToEqual (g , tfList .Items [0 ].Name , original .Name )
263
- expectToEqual (g , tfList .Items [1 ].Name , original .Name + "-3" )
263
+ expectToEqual (g , tfList .Items [1 ].Name , original .Name + "-pr- 3" )
264
264
265
265
srcList .Items = nil
266
266
@@ -270,7 +270,7 @@ func Test_poll_reconcile_objects(t *testing.T) {
270
270
271
271
expectToEqual (g , len (srcList .Items ), 2 )
272
272
expectToEqual (g , srcList .Items [0 ].Name , source .Name )
273
- expectToEqual (g , srcList .Items [1 ].Name , source .Name + "-3" )
273
+ expectToEqual (g , srcList .Items [1 ].Name , source .Name + "-pr- 3" )
274
274
275
275
t .Cleanup (func () { expectToSucceed (g , k8sClient .Delete (context .TODO (), ns )) })
276
276
}
0 commit comments