diff --git a/internal/operators/restpath_test.go b/internal/operators/restpath_test.go index 1810f03a7..37a277571 100644 --- a/internal/operators/restpath_test.go +++ b/internal/operators/restpath_test.go @@ -29,25 +29,6 @@ func TestRestPath(t *testing.T) { } } -func TestRestPathQueryShouldNotBeIncluded(t *testing.T) { - waf := corazawaf.NewWAF() - tx := waf.NewTransaction() - exp := "/some-random/url/{id}" - path := "/some-random/url/123?name=foo" - rp, err := newRESTPath(plugintypes.OperatorOptions{ - Arguments: exp, - }) - if err != nil { - t.Error(err) - } - if !rp.Evaluate(tx, path) { - t.Errorf("Expected %s to match %s", exp, path) - } - if tx.Variables().ArgsPath().Get("id")[0] != "123" { - t.Errorf("Expected id value of 123, got %s", tx.Variables().ArgsPath().Get("id")) - } -} - func TestRestPathQueryShouldNotBeGreedy(t *testing.T) { waf := corazawaf.NewWAF() tx := waf.NewTransaction()