Forbidden body substrings
10-http-body-not-contains.yaml
HTTP(S)
What this example does
This example demonstrates forbidden body substrings.
Checks and behavior
- Sends an GET request to http://127.0.0.1:8080/health.
- Looks for expected response content and/or rejects known error markers.
Adapt example domains, addresses, credentials and thresholds to your environment before use.
YAML configuration
name: Forbidden body substrings
url: http://127.0.0.1:8080/health
tests:
body:
not_contains: [traceback, exception, '"error"']