Skip to content

Commit

Permalink
ci(end to end): Fix test preparation for AppSec
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Oct 4, 2024
1 parent c67a525 commit 8b1cee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ jobs:
run: |
cd ${{ github.workspace }}/${{env.EXTENSION_PATH}}
# Change AppSec fallback
sed -i 's/\x27appsec_fallback_remediationx27 => Constants::REMEDIATION_CAPTCHA/\x27appsec_fallback_remediation\x27 => Constants::REMEDIATION_BAN/g' scripts/settings.php
sed -i 's/\x27appsec_fallback_remediation\x27 => Constants::REMEDIATION_CAPTCHA/\x27appsec_fallback_remediation\x27 => Constants::REMEDIATION_BAN/g' scripts/settings.php
cat scripts/settings.php
cd ${{ github.workspace }}/${{env.EXTENSION_PATH}}/tests/end-to-end/
./__scripts__/run-tests.sh ci "./__tests__/9-appsec-timeout-ban.js"
Expand All @@ -525,7 +525,7 @@ jobs:
run: |
cd ${{ github.workspace }}/${{env.EXTENSION_PATH}}
# Change AppSec fallback
sed -i 's/\x27appsec_fallback_remediationx27 => Constants::REMEDIATION_BAN/\x27appsec_fallback_remediation\x27 => Constants::REMEDIATION_BYPASS/g' scripts/settings.php
sed -i 's/\x27appsec_fallback_remediation\x27 => Constants::REMEDIATION_BAN/\x27appsec_fallback_remediation\x27 => Constants::REMEDIATION_BYPASS/g' scripts/settings.php
cat scripts/settings.php
cd ${{ github.workspace }}/${{env.EXTENSION_PATH}}/tests/end-to-end/
./__scripts__/run-tests.sh ci "./__tests__/10-appsec-timeout-bypass.js"
Expand Down

0 comments on commit 8b1cee9

Please sign in to comment.