-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get tests working against IAM enforcement
- Loading branch information
1 parent
88cb3a9
commit 653e28f
Showing
3 changed files
with
58 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Id": "QueuePolicy", | ||
"Statement": [ | ||
{ | ||
"Sid": "Allow-SNS-SendMessage", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": "sns.amazonaws.com" | ||
}, | ||
"Action": "sqs:SendMessage", | ||
"Resource": "arn:aws:sqs:us-east-1:000000000000:QuizzesWriteFailuresQueue", | ||
"Condition": { | ||
"ArnEquals": { | ||
"aws:SourceArn": "arn:aws:sns:us-east-1:000000000000:QuizzesWriteFailures" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ curl -X GET "$API_ENDPOINT/listquizzes" | |
|
||
# Get the quiz; Change the ID below | ||
|
||
curl -X GET "$API_ENDPOINT/getquiz?quiz_id=flashy-hippopotamus-skipped" | ||
curl -X GET "$API_ENDPOINT/getquiz?quiz_id=astonishing-dinosaurs-glided" | ||
|
||
# Submit responses | ||
|
||
|
@@ -78,7 +78,7 @@ curl -X POST "$API_ENDPOINT/submitquiz" \ | |
-d '{ | ||
"Username": "user2", | ||
"Email": "[email protected]", | ||
"QuizID": "pretty-sloths-pranced", | ||
"QuizID": "astonishing-dinosaurs-glided", | ||
"Answers": { | ||
"0": {"Answer": "D. Paris", "TimeTaken": 7}, | ||
"1": {"Answer": "B. Shakespeare", "TimeTaken": 6} | ||
|
@@ -102,7 +102,7 @@ curl -X GET "$API_ENDPOINT/getsubmission?submission_id=2c5cb81f-7b21-4ef0-a4a5-6 | |
|
||
# Get leaderboard | ||
|
||
curl -X GET "$API_ENDPOINT/getleaderboard?quiz_id=flashy-hippopotamus-skipped&top=3" | ||
curl -X GET "$API_ENDPOINT/getleaderboard?quiz_id=astonishing-dinosaurs-glided&top=3" | ||
|
||
# Check SES | ||
curl -s http://localhost.localstack.cloud:4566/_aws/ses | ||
|