@@ -641,7 +641,7 @@ func TestCheckAggregateLimits(t *testing.T) {
641641 },
642642 ).AnyTimes ()
643643
644- err := checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), ontapConfig , mockOntapAPI )
644+ err := checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), "create" , ontapConfig , mockOntapAPI )
645645 assert .Equal (t , "could not find aggregate, cannot check aggregate provisioning limits for aggr1" , err .Error ())
646646
647647 // ////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -654,7 +654,7 @@ func TestCheckAggregateLimits(t *testing.T) {
654654 },
655655 ).AnyTimes ()
656656
657- err = checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), ontapConfig , mockOntapAPI )
657+ err = checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), "create" , ontapConfig , mockOntapAPI )
658658 assert .Equal (t , "could not find aggregate, cannot check aggregate provisioning limits for aggr1" , err .Error ())
659659
660660 // ////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -673,15 +673,15 @@ func TestCheckAggregateLimits(t *testing.T) {
673673 },
674674 ).AnyTimes ()
675675
676- err = checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), ontapConfig , mockOntapAPI )
676+ err = checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), "create" , ontapConfig , mockOntapAPI )
677677 assert .Nil (t , err )
678678
679679 // ////////////////////////////////////////////////////////////////////////////////////////////////////////////
680680 // negative case: aggregate name is empty
681681
682682 aggr = ""
683683
684- err = checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), ontapConfig , mockOntapAPI )
684+ err = checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), "create" , ontapConfig , mockOntapAPI )
685685
686686 assert .Error (t , err )
687687
@@ -693,7 +693,7 @@ func TestCheckAggregateLimits(t *testing.T) {
693693 mockOntapAPI .EXPECT ().GetSVMAggregateSpace (gomock .Any (), aggr ).Return ([]api.SVMAggregateSpace {},
694694 errors .New ("GetSVMAggregateSpace returned error" ))
695695
696- err = checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), ontapConfig , mockOntapAPI )
696+ err = checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), "create" , ontapConfig , mockOntapAPI )
697697
698698 assert .Error (t , err )
699699
@@ -716,7 +716,7 @@ func TestCheckAggregateLimits(t *testing.T) {
716716 },
717717 ).AnyTimes ()
718718
719- err = checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), ontapConfig , mockOntapAPI )
719+ err = checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), "create" , ontapConfig , mockOntapAPI )
720720
721721 assert .Error (t , err )
722722
@@ -739,7 +739,7 @@ func TestCheckAggregateLimits(t *testing.T) {
739739 },
740740 ).AnyTimes ()
741741
742- err = checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), ontapConfig , mockOntapAPI )
742+ err = checkAggregateLimits (ctx , aggr , spaceReserve , uint64 (requestedSizeInt ), "create" , ontapConfig , mockOntapAPI )
743743
744744 assert .Error (t , err )
745745}
0 commit comments