Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds FTW and E2E #56

Merged
merged 3 commits into from
Apr 28, 2023
Merged

Adds FTW and E2E #56

merged 3 commits into from
Apr 28, 2023

Conversation

M4tteoP
Copy link
Member

@M4tteoP M4tteoP commented Apr 21, 2023

This PR mimics what we have in the proxy/wasm connector to spin up easily and test coraza-caddy: it adds FTW tests, and a complete example deployment with CRS and custom rules to quickly spin up caddy-coraza and play with it.

I currently didn't add FTW to the CI, because I'm experiencing some inconsistent failing tests across different runs :(
An example of a run result is the following:

➕ run 3448 total tests in 40.395347349s
⏭  skipped 4 tests
☝  ignored 62 tests
👎 7 test(s) failed to run: ["920310-3" "920600-13" "920600-15" "921120-3" "942280-2" "942522-5" "980170-2"]
Error: failed 7 tests
[+] Running 7/5

@M4tteoP M4tteoP force-pushed the mage_ftw branch 5 times, most recently from 332f6fc to 5812abf Compare April 24, 2023 16:08
@M4tteoP M4tteoP marked this pull request as ready for review April 24, 2023 16:43
@@ -1,19 +1,19 @@
#!/bin/bash
# Copyright 2022 The OWASP Coraza contributors
# SPDX-License-Identifier: Apache-2.0
# Copied from https://github.com/corazawaf/coraza-proxy-wasm/tree/main/e2e
ENVOY_HOST=${ENVOY_HOST:-"localhost:8080"}
# Revisited from https://github.com/corazawaf/coraza-proxy-wasm/tree/main/e2e
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a next effort we should port this tests to go an reuse across different connectors.

@M4tteoP M4tteoP changed the title WIP - Adds FTW and mage commands Adds FTW and mage commands Apr 26, 2023
@sonarcloud
Copy link

sonarcloud bot commented Apr 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 3 Security Hotspots
Code Smell A 5 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jcchavezs jcchavezs changed the title Adds FTW and mage commands Adds E2E Apr 28, 2023
@jcchavezs jcchavezs merged commit 785e584 into corazawaf:master Apr 28, 2023
@jcchavezs
Copy link
Member

jcchavezs commented Apr 28, 2023

This is good already. Let's add ftw to the CI in a next PR.

@jcchavezs jcchavezs changed the title Adds E2E Adds FTW and E2E Apr 28, 2023
@M4tteoP M4tteoP deleted the mage_ftw branch April 28, 2023 09:00
@M4tteoP M4tteoP mentioned this pull request May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants