Skip to content

Commit eb78803

Browse files
author
Graham Krizek
committed
Remove test from .gitignore
1 parent 3fd8b95 commit eb78803

File tree

7 files changed

+968
-1
lines changed

7 files changed

+968
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
test*
21
.DS_Store
32
.vscode
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**To test invoke a request to a Custom Authorizer including the required header and value**
2+
3+
Command::
4+
5+
aws apigateway test-invoke-authorizer --rest-api-id 1234123412 --authorizer-id 5yid1t --headers Authorization='Value'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
**To test invoke the root resource in an API by making a GET request**
2+
3+
Command::
4+
5+
aws apigateway test-invoke-method --rest-api-id 1234123412 --resource-id avl5sg8fw8 --http-method GET --path-with-query-string '/'
6+
7+
**To test invoke a sub-resource in an API by making a GET request with a path parameter value specified**
8+
9+
Command::
10+
11+
aws apigateway test-invoke-method --rest-api-id 1234123412 --resource-id 3gapai --http-method GET --path-with-query-string '/pets/1'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
**To test triggers in a repository**
2+
3+
This example demonstrates how to test a trigger named 'MyFirstTrigger' in an AWS CodeCommit repository named MyDemoRepo. In this example, events in the repository trigger notifications
4+
from an Amazon Simple Notification Service (Amazon SNS) topic.
5+
6+
7+
Command::
8+
9+
aws codecommit test-repository-triggers --repository-name MyDemoRepo --triggers name=MyFirstTrigger,destinationArn=arn:aws:sns:us-east-1:111111111111:MyCodeCommitTopic,branches=mainline,preprod,events=all
10+
11+
Output::
12+
13+
{
14+
"successfulExecutions": [
15+
"MyFirstTrigger"
16+
],
17+
"failedExecutions": []
18+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**To check whether an event pattern matches a specified event**
2+
3+
This example tests whether the pattern "source:com.mycompany.myapp" matches the specified event. In this example, the output would be "true"::
4+
5+
aws events test-event-pattern --event-pattern "{\"source\":[\"com.mycompany.myapp\"]}" --event "{\"id\":\"1\",\"source\":\"com.mycompany.myapp\",\"detail-type\":\"myDetailType\",\"account\":\"123456789012\",\"region\":\"us-east-1\",\"time\":\"2017-04-11T20:11:04Z\"}"

0 commit comments

Comments
 (0)