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
|
// Add endpoints with different trailing slash patterns
|
||||||
testCases := []struct {
|
testCases := []struct {
|
||||||
method string
|
method string
|
||||||
definedPath string
|
definedPath string
|
||||||
requestPaths []string
|
requestPaths []string
|
||||||
shouldMatch bool
|
shouldMatch bool
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|
@ -147,4 +147,3 @@ func TestPathMatchingExactPaths(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue