Skip to content

Commit

Permalink
ARSN-365:Id added on policy schema and validator
Browse files Browse the repository at this point in the history
Signed-off-by: Maha Benzekri <maha.benzekri@scality.com>
(cherry picked from commit 9ea39c6)
  • Loading branch information
benzekrimaha committed Oct 2, 2023
1 parent a20665d commit f3db764
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/policy/resourcePolicySchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@
"type": "string",
"const": "2012-10-17"
},
"Id": {
"type": "string"
},
"Statement": {
"oneOf": [
{
Expand Down
1 change: 1 addition & 0 deletions tests/unit/policy/test_policyValidator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const sampleUserPolicy = {
};
const sampleResourcePolicy = {
Version: '2012-10-17',
Id: 'cd3ad3d9-2776-4ef1-a904-4c229d1642ee',
Statement: [
{
Sid: 'ResourcePolicy1',
Expand Down

0 comments on commit f3db764

Please sign in to comment.