diff --git a/caddytest/integration/map_test.go b/caddytest/integration/map_test.go index 7cd769e7..afed0c35 100644 --- a/caddytest/integration/map_test.go +++ b/caddytest/integration/map_test.go @@ -60,7 +60,7 @@ func TestMapRespondWithDefault(t *testing.T) { tester.AssertPostResponseBody("http://localhost:9080/version", []string{}, bytes.NewBuffer([]byte{}), 200, "hello from localhost unknown") } -func TestMapAsJson(t *testing.T) { +func TestMapAsJSON(t *testing.T) { // arrange tester := caddytest.NewTester(t) tester.InitServer(` @@ -85,7 +85,7 @@ func TestMapAsJson(t *testing.T) { { "handler": "map", "source": "{http.request.method}", - "destinations": ["dest-name"], + "destinations": ["{dest-name}"], "defaults": ["unknown"], "mappings": [ {