This repository was archived by the owner on May 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +16
-17
lines changed Expand file tree Collapse file tree 5 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -422,10 +422,9 @@ static PHP_MINFO_FUNCTION(ddappsec)
422422 }
423423
424424 php_info_print_table_start ();
425- php_info_print_table_row (2 ,
426- "Datadog AppSec status managed by remote config" ,
425+ php_info_print_table_row (2 , "State managed by remote config" ,
427426 DDAPPSEC_G (enabled_by_configuration ) == NOT_CONFIGURED ? "Yes" : "No" );
428- php_info_print_table_row (2 , "Datadog AppSec state" , state );
427+ php_info_print_table_row (2 , "Current state" , state );
429428 php_info_print_table_row (2 , "Version" , PHP_DDAPPSEC_VERSION );
430429 php_info_print_table_end ();
431430
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ Check enablement status by default
44<?php
55include __DIR__ . '/inc/phpinfo.php ' ;
66
7- var_dump (get_configuration_value ("Datadog AppSec status managed by remote config " ));
8- var_dump (get_configuration_value ("Datadog AppSec state " ));
7+ var_dump (get_configuration_value ("State managed by remote config " ));
8+ var_dump (get_configuration_value ("Current state " ));
99
1010--EXPECT --
1111string (3 ) "Yes "
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ datadog.appsec.enabled=1
66<?php
77include __DIR__ . '/inc/phpinfo.php ' ;
88
9- var_dump (get_configuration_value ("Datadog AppSec status managed by remote config " ));
10- var_dump (get_configuration_value ("Datadog AppSec state " ));
9+ var_dump (get_configuration_value ("State managed by remote config " ));
10+ var_dump (get_configuration_value ("Current state " ));
1111
1212--EXPECT --
1313string (2 ) "No "
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ datadog.appsec.enabled=0
66<?php
77include __DIR__ . '/inc/phpinfo.php ' ;
88
9- var_dump (get_configuration_value ("Datadog AppSec status managed by remote config " ));
10- var_dump (get_configuration_value ("Datadog AppSec state " ));
9+ var_dump (get_configuration_value ("State managed by remote config " ));
10+ var_dump (get_configuration_value ("Current state " ));
1111
1212--EXPECT --
1313string (2 ) "No "
Original file line number Diff line number Diff line change @@ -15,20 +15,20 @@ $helper = Helper::createInitedRun([
1515]);
1616
1717//Enabled not configured
18- var_dump (get_configuration_value ("Datadog AppSec status managed by remote config " ));
19- var_dump (get_configuration_value ("Datadog AppSec state " ));
18+ var_dump (get_configuration_value ("State managed by remote config " ));
19+ var_dump (get_configuration_value ("Current state " ));
2020rinit (); //On this rinit it gets enabled
21- var_dump (get_configuration_value ("Datadog AppSec status managed by remote config " ));
22- var_dump (get_configuration_value ("Datadog AppSec state " ));
21+ var_dump (get_configuration_value ("State managed by remote config " ));
22+ var_dump (get_configuration_value ("Current state " ));
2323rshutdown ();
2424rinit (); //Second rinit. This time it got disabled
25- var_dump (get_configuration_value ("Datadog AppSec status managed by remote config " ));
26- var_dump (get_configuration_value ("Datadog AppSec state " ));
25+ var_dump (get_configuration_value ("State managed by remote config " ));
26+ var_dump (get_configuration_value ("Current state " ));
2727rshutdown ();
2828rinit (); //Third rinit. Nothing changes
2929rshutdown ();
30- var_dump (get_configuration_value ("Datadog AppSec status managed by remote config " ));
31- var_dump (get_configuration_value ("Datadog AppSec state " ));
30+ var_dump (get_configuration_value ("State managed by remote config " ));
31+ var_dump (get_configuration_value ("Current state " ));
3232--EXPECT --
3333string (3 ) "Yes "
3434string (14 ) "Not configured "
You can’t perform that action at this time.
0 commit comments