Skip to content

Commit db8daf3

Browse files
committed
feat(CI: installer tests): fix installer tests by changing enabling check on appsec extension
Signed-off-by: Alexandre Rulleau <[email protected]>
1 parent ba0eb26 commit db8daf3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • dockerfiles/verify_packages/installer

dockerfiles/verify_packages/installer/utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ assert_appsec_installed() {
116116

117117
assert_appsec_enabled() {
118118
output="$(php --ri ddappsec)"
119-
if [ -z "${output##*datadog.appsec.enabled => On*}" ]; then
119+
if [ -z "${output##*Current state => Enabled*}" ]; then
120120
echo "---\nOk: ddappsec is enabled\n---\n${output}\n---\n"
121121
else
122122
echo "---\nError: Wrong ddappsec should be enabled\n---\n${output}\n---\n"
@@ -126,7 +126,7 @@ assert_appsec_enabled() {
126126

127127
assert_appsec_disabled() {
128128
output="$(php --ri ddappsec)"
129-
if [ -n "${output##*datadog.appsec.enabled => On*}" ]; then
129+
if [ -n "${output##*Current state => Enabled*}" ]; then
130130
echo "---\nOk: ddappsec is not enabled\n---\n${output}\n---\n"
131131
else
132132
echo "---\nError: Wrong ddappsec should not be enabled\n---\n${output}\n---\n"

0 commit comments

Comments
 (0)