@@ -150,7 +150,9 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
150150			//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
151151			changedEvent , ok  :=  event .(* models.ActualLRPChangedEvent )
152152			Expect (ok ).To (BeTrue ())
153+ 			//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
153154			Expect (changedEvent .Before ).To (Equal (actualLRP .ToActualLRPGroup ()))
155+ 			//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
154156			Expect (changedEvent .After ).To (Equal (afterActualLRP .ToActualLRPGroup ()))
155157		})
156158
@@ -317,10 +319,14 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
317319				err  =  controller .StartActualLRP (ctx , logger , & actualLRPKey , & afterInstanceKey , & netInfo , internalRoutes , metricTags , routable , availabilityZone )
318320				Eventually (actualHub .EmitCallCount ).Should (Equal (2 ))
319321
322+ 				//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
320323				Expect (actualHub .EmitArgsForCall (0 )).To (Equal (models .NewActualLRPCreatedEvent (
324+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
321325					afterActualLRP .ToActualLRPGroup (),
322326				)))
327+ 				//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
323328				Expect (actualHub .EmitArgsForCall (1 )).To (Equal (models .NewActualLRPRemovedEvent (
329+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
324330					suspect .ToActualLRPGroup (),
325331				)))
326332			})
@@ -350,10 +356,14 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
350356					err  =  controller .StartActualLRP (ctx , logger , & actualLRPKey , & afterInstanceKey , & netInfo , internalRoutes , metricTags , routable , availabilityZone )
351357					Eventually (actualHub .EmitCallCount ).Should (Equal (2 ))
352358
359+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
353360					Expect (actualHub .EmitArgsForCall (0 )).To (Equal (models .NewActualLRPCreatedEvent (
361+ 						//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
354362						afterActualLRP .ToActualLRPGroup (),
355363					)))
364+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
356365					Expect (actualHub .EmitArgsForCall (1 )).To (Equal (models .NewActualLRPRemovedEvent (
366+ 						//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
357367						suspect .ToActualLRPGroup (),
358368					)))
359369				})
@@ -469,12 +479,17 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
469479
470480					Eventually (actualHub .EmitCallCount ).Should (Equal (2 ))
471481
482+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
472483					Expect (actualHub .EmitArgsForCall (0 )).To (Equal (models .NewActualLRPChangedEvent (
484+ 						//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
473485						actualLRP .ToActualLRPGroup (),
486+ 						//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
474487						afterActualLRP .ToActualLRPGroup (),
475488					)))
476489
490+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
477491					Expect (actualHub .EmitArgsForCall (1 )).To (Equal (models .NewActualLRPRemovedEvent (
492+ 						//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
478493						evacuating .ToActualLRPGroup (),
479494					)))
480495				})
@@ -503,6 +518,7 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
503518					//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
504519					createdEvent , ok  :=  event .(* models.ActualLRPCreatedEvent )
505520					Expect (ok ).To (BeTrue ())
521+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
506522					Expect (createdEvent .ActualLrpGroup ).To (Equal (afterActualLRP .ToActualLRPGroup ()))
507523				})
508524
@@ -526,7 +542,9 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
526542					//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
527543					changedEvent , ok  :=  event .(* models.ActualLRPChangedEvent )
528544					Expect (ok ).To (BeTrue ())
545+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
529546					Expect (changedEvent .Before ).To (Equal (actualLRP .ToActualLRPGroup ()))
547+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
530548					Expect (changedEvent .After ).To (Equal (afterActualLRP .ToActualLRPGroup ()))
531549				})
532550			})
@@ -547,7 +565,9 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
547565					//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
548566					changedEvent , ok  :=  event .(* models.ActualLRPChangedEvent )
549567					Expect (ok ).To (BeTrue ())
568+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
550569					Expect (changedEvent .Before ).To (Equal (actualLRP .ToActualLRPGroup ()))
570+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
551571					Expect (changedEvent .After ).To (Equal (afterActualLRP .ToActualLRPGroup ()))
552572				})
553573			})
@@ -661,8 +681,10 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
661681			},
662682				//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
663683				& models.ActualLRPChangedEvent {
684+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
664685					Before : actualLRP .ToActualLRPGroup (),
665- 					After :  afterActualLRP .ToActualLRPGroup (),
686+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
687+ 					After : afterActualLRP .ToActualLRPGroup (),
666688				}))
667689		})
668690
@@ -845,6 +867,7 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
845867				//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
846868				removedEvent , ok  :=  event .(* models.ActualLRPRemovedEvent )
847869				Expect (ok ).To (BeTrue ())
870+ 				//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
848871				Expect (removedEvent .ActualLrpGroup ).To (Equal (actualLRP .ToActualLRPGroup ()))
849872			})
850873
@@ -929,7 +952,9 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
929952					Expect (event ).To (BeAssignableToTypeOf (createdEvent ))
930953					//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
931954					createdEvent  =  event .(* models.ActualLRPChangedEvent )
955+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
932956					Expect (createdEvent .Before ).To (Equal (actualLRP .ToActualLRPGroup ()))
957+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
933958					Expect (createdEvent .After ).To (Equal (replacementLRP .ToActualLRPGroup ()))
934959				})
935960
@@ -973,6 +998,7 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
973998					Expect (event ).To (BeAssignableToTypeOf (createdEvent ))
974999					//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
9751000					createdEvent  =  event .(* models.ActualLRPCreatedEvent )
1001+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
9761002					Expect (createdEvent .ActualLrpGroup ).To (Equal (replacementLRP .ToActualLRPGroup ()))
9771003
9781004					event  =  actualHub .EmitArgsForCall (1 )
@@ -981,6 +1007,7 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
9811007					Expect (event ).To (BeAssignableToTypeOf (removedEvent ))
9821008					//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
9831009					removedEvent  =  event .(* models.ActualLRPRemovedEvent )
1010+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
9841011					Expect (removedEvent .ActualLrpGroup ).To (Equal (actualLRP .ToActualLRPGroup ()))
9851012				})
9861013
@@ -1058,8 +1085,11 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
10581085				err  =  controller .FailActualLRP (ctx , logger , & actualLRPKey , errorMessage )
10591086				Eventually (actualHub .EmitCallCount ).Should (Equal (1 ))
10601087				event  :=  actualHub .EmitArgsForCall (0 )
1088+ 				//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
10611089				Expect (event ).To (Equal (models .NewActualLRPChangedEvent (
1090+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
10621091					actualLRP .ToActualLRPGroup (),
1092+ 					//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
10631093					afterActualLRP .ToActualLRPGroup (),
10641094				)))
10651095			})
@@ -1194,6 +1224,7 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
11941224				//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
11951225				removedEvent , ok  :=  event .(* models.ActualLRPRemovedEvent )
11961226				Expect (ok ).To (BeTrue ())
1227+ 				//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
11971228				Expect (removedEvent .ActualLrpGroup ).To (Equal (actualLRP .ToActualLRPGroup ()))
11981229			})
11991230
@@ -1367,6 +1398,7 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
13671398				//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
13681399				removedEvent , ok  :=  event .(* models.ActualLRPRemovedEvent )
13691400				Expect (ok ).To (BeTrue ())
1401+ 				//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
13701402				Expect (removedEvent .ActualLrpGroup ).To (Equal (actualLRP .ToActualLRPGroup ()))
13711403			})
13721404
@@ -1429,6 +1461,7 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
14291461				//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
14301462				removedEvent , ok  :=  event .(* models.ActualLRPRemovedEvent )
14311463				Expect (ok ).To (BeTrue ())
1464+ 				//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
14321465				Expect (removedEvent .ActualLrpGroup ).To (Equal (actualLRP .ToActualLRPGroup ()))
14331466			})
14341467
@@ -1517,6 +1550,7 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
15171550						//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
15181551						removedEvent , ok  :=  event .(* models.ActualLRPRemovedEvent )
15191552						Expect (ok ).To (BeTrue ())
1553+ 						//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
15201554						Expect (removedEvent .ActualLrpGroup ).To (Equal (actualLRP .ToActualLRPGroup ()))
15211555					})
15221556
@@ -1600,6 +1634,7 @@ var _ = Describe("ActualLRP Lifecycle Controller", func() {
16001634							//lint:ignore SA1019 - calling deprecated model while unit testing deprecated method 
16011635							removedEvent , ok  :=  event .(* models.ActualLRPRemovedEvent )
16021636							Expect (ok ).To (BeTrue ())
1637+ 							//lint:ignore SA1019 - still need to emit these events until the ActaulLRPGroup api is deleted 
16031638							Expect (removedEvent .ActualLrpGroup ).To (Equal (actualLRP .ToActualLRPGroup ()))
16041639						})
16051640
0 commit comments