summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-09-01 21:40:15 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-09-01 21:43:23 -0600
commite77992dd99509c883dbb3b6dd185f771a42e5fae (patch)
treeb31ce0bf8523acc58e1b19cd00662b7cd6091d2d /caddytest
parentaefd821ae0b966c8f8599eaa59dffe1b0fc51740 (diff)
Fix failing test
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/map_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/caddytest/integration/map_test.go b/caddytest/integration/map_test.go
index 7cd769e..afed0c3 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": [
{