For unit tests, how do we assert that items exist in an array in any order #27487
Unanswered
ecs-jnguyen
asked this question in
Q&A
Replies: 1 comment
-
Here's how I solved it in my code: assertions.Match.object_like(
{
"Action": assertions.Match.array_with(
[
"dynamodb:GetItem",
]
) and assertions.Match.array_with(
[
"dynambodb:PutItem",
]
) and assertions.Match.array_with(
[
"dynamodb:UpdateItem",
]
), |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a IAM policy that has multiple statements and in each statement there are multiple actions (like below). How do I assert that this policy has the following statements:
kms:<something>
actions for theSampleKmsKey
resourcedynamodb:<something>
actions for multiple tabless3:<something>
actions for multiple tablesBeta Was this translation helpful? Give feedback.
All reactions