File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -489,8 +489,8 @@ func TestAWSMachineReconciler(t *testing.T) {
489
489
instanceCreate (t , g )
490
490
getCoreSecurityGroups (t , g )
491
491
492
- ms .AWSMachine .Spec .AdditionalTags = infrav1.Tags {"kind" : "alicorn" }
493
- cs .AWSCluster .Spec .AdditionalTags = infrav1.Tags {"colour" : "lavender" }
492
+ ms .AWSMachine .Spec .AdditionalTags = infrav1.Tags {"kind" : "alicorn" , "colour" : "pink" } // takes precedence
493
+ cs .AWSCluster .Spec .AdditionalTags = infrav1.Tags {"colour" : "lavender" , "shape" : "round" }
494
494
495
495
ec2Svc .EXPECT ().GetAdditionalSecurityGroupsIDs (gomock .Any ()).Return (nil , nil )
496
496
@@ -500,20 +500,20 @@ func TestAWSMachineReconciler(t *testing.T) {
500
500
ec2Svc .EXPECT ().UpdateResourceTags (
501
501
PointsTo ("myMachine" ),
502
502
map [string ]string {
503
- "colour" : "lavender" ,
503
+ "colour" : "pink" ,
504
+ "shape" : "round" ,
504
505
"kind" : "alicorn" ,
505
506
},
506
507
map [string ]string {},
507
508
).Return (nil )
508
509
509
510
ec2Svc .EXPECT ().UpdateResourceTags (
510
511
gomock .Any (),
511
- //create
512
512
map [string ]string {
513
- "colour" : "lavender" ,
513
+ "colour" : "pink" ,
514
+ "shape" : "round" ,
514
515
"kind" : "alicorn" ,
515
516
},
516
- //remove
517
517
map [string ]string {},
518
518
).Return (nil ).Times (2 )
519
519
You can’t perform that action at this time.
0 commit comments