From 0e204b730aa2b1fa0835336b1117eff8c420f713 Mon Sep 17 00:00:00 2001 From: Norman Soetbeer Date: Wed, 11 Oct 2023 22:24:29 +0200 Subject: admin: Respond with 4xx on non-existing config path (#5870) Co-authored-by: Matt Holt --- admin_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'admin_test.go') diff --git a/admin_test.go b/admin_test.go index 04aa886..9137a88 100644 --- a/admin_test.go +++ b/admin_test.go @@ -75,6 +75,12 @@ func TestUnsyncedConfigAccess(t *testing.T) { path: "/bar/qq", expect: `{"foo": "jet", "bar": {"aa": "bb"}, "list": ["a", "b", "c"]}`, }, + { + method: "DELETE", + path: "/bar/qq", + expect: `{"foo": "jet", "bar": {"aa": "bb"}, "list": ["a", "b", "c"]}`, + shouldErr: true, + }, { method: "POST", path: "/list", -- cgit v1.2.3