Merge pull request #1225 from trheyi/main
Refactor test case structure for path matching in ACL tests
This commit is contained in:
commit
827bcb7757
1 changed files with 4 additions and 5 deletions
|
|
@ -98,10 +98,10 @@ func TestPathMatchingExactPaths(t *testing.T) {
|
|||
|
||||
// Add endpoints with different trailing slash patterns
|
||||
testCases := []struct {
|
||||
method string
|
||||
definedPath string
|
||||
requestPaths []string
|
||||
shouldMatch bool
|
||||
method string
|
||||
definedPath string
|
||||
requestPaths []string
|
||||
shouldMatch bool
|
||||
}{
|
||||
{
|
||||
method: "POST",
|
||||
|
|
@ -147,4 +147,3 @@ func TestPathMatchingExactPaths(t *testing.T) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue