HTTP Basic auth literal (demo only)
17-http-basic-auth-literal.yaml
HTTP(S)
What this example does
This example demonstrates http basic auth literal (demo only).
Checks and behavior
- Sends an GET request to http://127.0.0.1:8080/private.
- Checks allowed/denied HTTP status codes.
Adapt example domains, addresses, credentials and thresholds to your environment before use.
YAML configuration
name: HTTP Basic auth literal (demo only)
url: http://127.0.0.1:8080/private
request:
method: GET
auth:
type: basic
username: demo
password: change-me
tests:
status:
allow: [200]