test: fix duplicate subtest names in permissions_test.go
Rename duplicate 'combined * and ?' test cases to include singular/plural suffix for clarity and to support targeted test runs.
This commit is contained in:
@@ -32,8 +32,8 @@ func TestMatchesActionPattern(t *testing.T) {
|
||||
{"question mark no match", "GetTable?", "GetTableXY", false},
|
||||
|
||||
// Combined wildcards
|
||||
{"combined * and ?", "s3tables:Get?able*", "s3tables:GetTable", true},
|
||||
{"combined * and ?", "s3tables:Get?able*", "s3tables:GetTables", true},
|
||||
{"combined * and ? singular", "s3tables:Get?able*", "s3tables:GetTable", true},
|
||||
{"combined * and ? plural", "s3tables:Get?able*", "s3tables:GetTables", true},
|
||||
{"combined no match - ? needs 1 char", "s3tables:Get?able*", "s3tables:Getable", false},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user