Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 14:15 UTC
Fix failing test
Matthew Holt committed
Sep 1, 2022 at 21:40 UTC
e77992dd99509c883dbb3b6dd185f771a42e5fae
1 file changed
+2
-2
caddytest/integration/map_test.go
+2
-2
@@ -60,7 +60,7 @@ func TestMapRespondWithDefault(t *testing.T) {
60
tester.AssertPostResponseBody("http://localhost:9080/version", []string{}, bytes.NewBuffer([]byte{}), 200, "hello from localhost unknown")
61
}
62
63
-func TestMapAsJson(t *testing.T) {
63
+func TestMapAsJSON(t *testing.T) {
64
// arrange
65
tester := caddytest.NewTester(t)
66
tester.InitServer(`
@@ -85,7 +85,7 @@ func TestMapAsJson(t *testing.T) {
85
{
86
"handler": "map",
87
"source": "{http.request.method}",
88
- "destinations": ["dest-name"],
88
+ "destinations": ["{dest-name}"],
89
"defaults": ["unknown"],
90
"mappings": [
91
{