caddytest: Rename adapt tests to *.caddyfiletest extension (#6119)

This commit is contained in:
Francis Lavoie 2024-02-20 19:37:40 -05:00 committed by GitHub
parent f8143a3af1
commit 4512be49a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
131 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,54 @@
a.caddy.localhost {
respond /version 200 {
body "hello from localhost"
}
}
----------
{
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [
":443"
],
"routes": [
{
"match": [
{
"host": [
"a.caddy.localhost"
]
}
],
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"body": "hello from localhost",
"handler": "static_response",
"status_code": 200
}
],
"match": [
{
"path": [
"/version"
]
}
]
}
]
}
],
"terminal": true
}
]
}
}
}
}
}