Browse Source

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.
s3tables-by-claude
Chris Lu 2 days ago
parent
commit
d399113e0c
  1. 4
      weed/s3api/s3tables/permissions_test.go

4
weed/s3api/s3tables/permissions_test.go

@ -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},
}

Loading…
Cancel
Save