@@ -124,12 +124,12 @@ class AppSecConfigServiceImplSpecification extends DDSpecification {
124124
125125 when :
126126 setUpTest()
127- appSecConfigService. init()
127+ appSecConfigService. init(wafBuilder )
128128 then :
129129 1 * config. getAppSecRulesFile() >> (p as String )
130130
131131 when :
132- appSecConfigService. maybeSubscribeConfigPolling()
132+ appSecConfigService. maybeSubscribeConfigPolling(wafBuilder )
133133
134134 then :
135135 2 * config. getAppSecActivation() >> ProductActivation . ENABLED_INACTIVE
@@ -185,7 +185,7 @@ class AppSecConfigServiceImplSpecification extends DDSpecification {
185185 setup :
186186 setUpTest()
187187 appSecConfigService. init(wafBuilder)
188- appSecConfigService. maybeSubscribeConfigPolling()
188+ appSecConfigService. maybeSubscribeConfigPolling(wafBuilder )
189189
190190 expect :
191191 AppSecConfigService.TransactionalAppSecModuleConfigurer configurer = appSecConfigService. createAppSecModuleConfigurer()
@@ -239,7 +239,7 @@ class AppSecConfigServiceImplSpecification extends DDSpecification {
239239
240240 then :
241241 1 * subconfigListener. onNewSubconfig({ CurrentAppSecConfig casc -> casc. ddConfig != null }, _)
242- AppSecSystem . active == true
242+ AppSecSystem . active
243243 }
244244
245245 void ' provides updated configuration to waf subscription' () {
@@ -353,7 +353,7 @@ class AppSecConfigServiceImplSpecification extends DDSpecification {
353353 listeners. savedConfEndListener. onConfigurationEnd()
354354
355355 then :
356- AppSecSystem . active == false
356+ ! AppSecSystem . active
357357
358358 when : ' switch back to enabled'
359359 listeners. savedFeaturesListener. accept(' asm_features_activation' ,
@@ -362,7 +362,7 @@ class AppSecConfigServiceImplSpecification extends DDSpecification {
362362 listeners. savedConfEndListener. onConfigurationEnd()
363363
364364 then : ' it is enabled again'
365- AppSecSystem . active == true
365+ AppSecSystem . active
366366
367367 when : ' asm are not set'
368368 listeners. savedFeaturesListener. accept(' asm_features_activation' ,
@@ -371,7 +371,7 @@ class AppSecConfigServiceImplSpecification extends DDSpecification {
371371 listeners. savedConfEndListener. onConfigurationEnd()
372372
373373 then : ' it is disabled (<not set> == false)'
374- AppSecSystem . active == false
374+ ! AppSecSystem . active
375375
376376 when : ' switch back to enabled'
377377 listeners. savedFeaturesListener. accept(' asm_features_activation' ,
@@ -380,7 +380,7 @@ class AppSecConfigServiceImplSpecification extends DDSpecification {
380380 listeners. savedConfEndListener. onConfigurationEnd()
381381
382382 then : ' it is enabled again'
383- AppSecSystem . active == true
383+ AppSecSystem . active
384384
385385 when : ' asm features are not set'
386386 listeners. savedFeaturesListener. accept(' asm_features_activation' ,
@@ -389,7 +389,7 @@ class AppSecConfigServiceImplSpecification extends DDSpecification {
389389 listeners. savedConfEndListener. onConfigurationEnd()
390390
391391 then : ' it is disabled (<not set> == false)'
392- AppSecSystem . active == false
392+ ! AppSecSystem . active
393393
394394 cleanup :
395395 AppSecSystem . active = true
@@ -474,8 +474,8 @@ class AppSecConfigServiceImplSpecification extends DDSpecification {
474474 mergedUpdateConfig = casc. mergedUpdateConfig
475475 }
476476 mergedUpdateConfig. numberOfRules == 0
477- mergedUpdateConfig. rawConfig[' rules_override' ]. isEmpty() == false
478- mergedAsmData. mergedData. rules. isEmpty() == false
477+ ! mergedUpdateConfig. rawConfig[' rules_override' ]. isEmpty()
478+ ! mergedAsmData. mergedData. rules. isEmpty()
479479
480480 when :
481481 listeners. savedConfChangesListener. accept(' asm_dd config' , null , null )
@@ -491,8 +491,8 @@ class AppSecConfigServiceImplSpecification extends DDSpecification {
491491 }
492492
493493 mergedUpdateConfig. numberOfRules > 0
494- mergedUpdateConfig. rawConfig[' rules_override' ]. isEmpty() == true
495- mergedAsmData. mergedData. rules. isEmpty() == true
494+ mergedUpdateConfig. rawConfig[' rules_override' ]. isEmpty()
495+ mergedAsmData. mergedData. rules. isEmpty()
496496 }
497497
498498 void ' stopping appsec unsubscribes from the poller' () {
0 commit comments