expose PATCH /config

This commit is contained in:
bel
2023-03-26 14:17:33 -06:00
parent af42db6803
commit c663b1a12c
4 changed files with 112 additions and 12 deletions

View File

@@ -70,7 +70,7 @@ func TestConfigPatch(t *testing.T) {
for name, d := range cases {
c := d
t.Run(name, func(t *testing.T) {
got := c.cfg.WithJSONPatch(c.patch)
got := c.cfg.WithPatch(c.patch)
if fmt.Sprintf("%+v", got) != fmt.Sprintf("%+v", c.want) {
t.Errorf("(%+v).Patch(%+v) want %+v, got %+v", c.cfg, c.patch, c.want, got)
}