@@ -407,11 +407,8 @@ func TestAppsecOnMatchHooks(t *testing.T) {
407407 },
408408 },
409409 }
410- for _ , test := range tests {
411- t .Run (test .name , func (t * testing.T ) {
412- loadAppSecEngine (test , t )
413- })
414- }
410+
411+ runTests (t , tests )
415412}
416413
417414func TestAppsecPreEvalHooks (t * testing.T ) {
@@ -824,11 +821,7 @@ func TestAppsecPreEvalHooks(t *testing.T) {
824821 },
825822 }
826823
827- for _ , test := range tests {
828- t .Run (test .name , func (t * testing.T ) {
829- loadAppSecEngine (test , t )
830- })
831- }
824+ runTests (t , tests )
832825}
833826
834827func TestAppsecRemediationConfigHooks (t * testing.T ) {
@@ -917,11 +910,7 @@ func TestAppsecRemediationConfigHooks(t *testing.T) {
917910 },
918911 }
919912
920- for _ , test := range tests {
921- t .Run (test .name , func (t * testing.T ) {
922- loadAppSecEngine (test , t )
923- })
924- }
913+ runTests (t , tests )
925914}
926915
927916func TestOnMatchRemediationHooks (t * testing.T ) {
@@ -1090,9 +1079,6 @@ func TestOnMatchRemediationHooks(t *testing.T) {
10901079 },
10911080 },
10921081 }
1093- for _ , test := range tests {
1094- t .Run (test .name , func (t * testing.T ) {
1095- loadAppSecEngine (test , t )
1096- })
1097- }
1082+
1083+ runTests (t , tests )
10981084}
0 commit comments