Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit e9a8f3f

Browse files
committed
Rename messaging
1 parent c1d5292 commit e9a8f3f

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

src/extension/ddappsec.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

tests/extension/phpinfo_enabled_01.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Check enablement status by default
44
<?php
55
include __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--
1111
string(3) "Yes"

tests/extension/phpinfo_enabled_02.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ datadog.appsec.enabled=1
66
<?php
77
include __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--
1313
string(2) "No"

tests/extension/phpinfo_enabled_03.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ datadog.appsec.enabled=0
66
<?php
77
include __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--
1313
string(2) "No"

tests/extension/phpinfo_enabled_04.phpt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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"));
2020
rinit(); //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"));
2323
rshutdown();
2424
rinit(); //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"));
2727
rshutdown();
2828
rinit(); //Third rinit. Nothing changes
2929
rshutdown();
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--
3333
string(3) "Yes"
3434
string(14) "Not configured"

0 commit comments

Comments
 (0)