Skip to content

Commit

Permalink
chore: add kql scope path test
Browse files Browse the repository at this point in the history
  • Loading branch information
fschade committed Aug 24, 2023
1 parent 3e1f5d6 commit 5dc8d3f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions services/search/pkg/query/kql/dictionary_test.go
Expand Up @@ -272,6 +272,27 @@ func TestParse(t *testing.T) {
},
err: false,
},
{
name: "misc",
got: []string{
`scope:"<uuid>/new folder/subfolder" file`,
},
want: &ast.Ast{
Nodes: []ast.Node{
&ast.StringNode{
Key: "scope",
Value: "<uuid>/new folder/subfolder",
},
&ast.OperatorNode{
Value: "AND",
},
&ast.StringNode{
Value: "file",
},
},
},
err: false,
},
}

for _, tt := range tests {
Expand Down

0 comments on commit 5dc8d3f

Please sign in to comment.