Skip to content

Commit

Permalink
test: tech debt
Browse files Browse the repository at this point in the history
  • Loading branch information
lrm25 committed Dec 9, 2024
1 parent 20055bc commit 4868a4a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/test_s3api_policy_object.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,10 @@ test_s3api_policy_put_wildcard() {
username=${lines[0]}
password=${lines[1]}

effect="Allow"
principal="$username"
action="s3:PutObject"
resource="arn:aws:s3:::$BUCKET_ONE_NAME/$test_folder/*"

run setup_bucket "s3api" "$BUCKET_ONE_NAME"
assert_success

run setup_policy_with_single_statement "$TEST_FILE_FOLDER/$policy_file" "dummy" "$effect" "$principal" "$action" "$resource"
run setup_policy_with_single_statement "$TEST_FILE_FOLDER/$policy_file" "dummy" "Allow" "$username" "s3:PutObject" "arn:aws:s3:::$BUCKET_ONE_NAME/$test_folder/*"
assert_success

run put_bucket_policy "s3api" "$BUCKET_ONE_NAME" "$TEST_FILE_FOLDER/$policy_file"
Expand Down

0 comments on commit 4868a4a

Please sign in to comment.