Skip to content

Commit 411a5fc

Browse files
committed
Updated testdata to include new mTLS context objexts to go test passes
1 parent 1d83b07 commit 411a5fc

4 files changed

+47
-1
lines changed

events/testdata/apigw-custom-auth-request-type-request.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,17 @@
6868
"requestId": "...",
6969
"identity": {
7070
"apiKey": "...",
71-
"sourceIp": "..."
71+
"sourceIp": "..." ,
72+
"clientCert": {
73+
"clientCertPem": "-----BEGIN CERTIFICATE-----\nMIIEZTCCAk0CAQEwDQ...",
74+
"issuerDN": "C=US,ST=Washington,L=Seattle,O=Amazon Web Services,OU=Security,CN=My Private CA",
75+
"serialNumber": "1",
76+
"subjectDN": "C=US,ST=Washington,L=Seattle,O=Amazon Web Services,OU=Security,CN=My Client",
77+
"validity": {
78+
"notAfter": "Aug 5 00:28:21 2120 GMT",
79+
"notBefore": "Aug 29 00:28:21 2020 GMT"
80+
}
81+
}
7282
},
7383
"resourcePath": "/request",
7484
"httpMethod": "GET",

events/testdata/apigw-v2-request-iam.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@
3939
}
4040
},
4141
"apiId": "api-id",
42+
"authentication": {
43+
"clientCert": {
44+
"clientCertPem": "-----BEGIN CERTIFICATE-----\nMIIEZTCCAk0CAQEwDQ...",
45+
"issuerDN": "C=US,ST=Washington,L=Seattle,O=Amazon Web Services,OU=Security,CN=My Private CA",
46+
"serialNumber": "1",
47+
"subjectDN": "C=US,ST=Washington,L=Seattle,O=Amazon Web Services,OU=Security,CN=My Client",
48+
"validity": {
49+
"notAfter": "Aug 5 00:28:21 2120 GMT",
50+
"notBefore": "Aug 29 00:28:21 2020 GMT"
51+
}
52+
}
53+
},
4254
"domainName": "id.execute-api.us-east-1.amazonaws.com",
4355
"domainPrefix": "id",
4456
"time": "12/Mar/2020:19:03:58+0000",

events/testdata/apigw-v2-request-jwt-authorizer.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@
3636
}
3737
},
3838
"apiId": "api-id",
39+
"authentication": {
40+
"clientCert": {
41+
"clientCertPem": "-----BEGIN CERTIFICATE-----\nMIIEZTCCAk0CAQEwDQ...",
42+
"issuerDN": "C=US,ST=Washington,L=Seattle,O=Amazon Web Services,OU=Security,CN=My Private CA",
43+
"serialNumber": "1",
44+
"subjectDN": "C=US,ST=Washington,L=Seattle,O=Amazon Web Services,OU=Security,CN=My Client",
45+
"validity": {
46+
"notAfter": "Aug 5 00:28:21 2120 GMT",
47+
"notBefore": "Aug 29 00:28:21 2020 GMT"
48+
}
49+
}
50+
},
3951
"domainName": "id.execute-api.us-east-1.amazonaws.com",
4052
"domainPrefix": "id",
4153
"time": "12/Mar/2020:19:03:58+0000",

events/testdata/apigw-v2-request-no-authorizer.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@
1616
"requestContext": {
1717
"accountId": "123456789012",
1818
"apiId": "aaaaaaaaaa",
19+
"authentication": {
20+
"clientCert": {
21+
"clientCertPem": "-----BEGIN CERTIFICATE-----\nMIIEZTCCAk0CAQEwDQ...",
22+
"issuerDN": "C=US,ST=Washington,L=Seattle,O=Amazon Web Services,OU=Security,CN=My Private CA",
23+
"serialNumber": "1",
24+
"subjectDN": "C=US,ST=Washington,L=Seattle,O=Amazon Web Services,OU=Security,CN=My Client",
25+
"validity": {
26+
"notAfter": "Aug 5 00:28:21 2120 GMT",
27+
"notBefore": "Aug 29 00:28:21 2020 GMT"
28+
}
29+
}
30+
},
1931
"domainName": "aaaaaaaaaa.execute-api.us-west-2.amazonaws.com",
2032
"domainPrefix": "aaaaaaaaaa",
2133
"http": {

0 commit comments

Comments
 (0)