summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/test/rgw/test_rgw_iam_policy.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/rgw/test_rgw_iam_policy.cc b/src/test/rgw/test_rgw_iam_policy.cc
index 7751b086898..7738869ff37 100644
--- a/src/test/rgw/test_rgw_iam_policy.cc
+++ b/src/test/rgw/test_rgw_iam_policy.cc
@@ -109,7 +109,10 @@ public:
}
bool is_identity(const flat_set<Principal>& ids) const override {
- return ids.find(id) != ids.end();
+ if (id.is_wildcard() && (!ids.empty())) {
+ return true;
+ }
+ return ids.find(id) != ids.end() || ids.find(Principal::wildcard()) != ids.end();
}
};