Skip to content

Commit

Permalink
placebo for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Jones committed Mar 25, 2016
1 parent e46934f commit a0a8be9
Show file tree
Hide file tree
Showing 524 changed files with 10,273 additions and 26 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ _Before you begin, make sure you have a valid AWS account and your [AWS credenti

$ pip install zappa

(If you're looking for Django-specific integration, you should instead check out **[django-zappa](https://github.com/Miserlou/django-zappa)**.)
If you're looking for Django-specific integration, you should probably check out _**[django-zappa](https://github.com/Miserlou/django-zappa)**_ instead.

Next, you'll need to define your local and server-side settings.

Expand Down Expand Up @@ -96,7 +96,7 @@ This creates a new archive, uploads it to S3 and updates the Lambda function to

You can also rollback the deployed code to a previous version by supplying the number of revisions to return to. For instance, to rollback to the version deployed 3 versions ago:

$ zappa rollback production 3
$ zappa rollback production -n 3

#### Tailing Logs

Expand Down
2 changes: 1 addition & 1 deletion test_settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"test": {
"ttt333": {
"s3_bucket": "lmbda",
"settings_file": "test_settings.py",
"delete_zip": true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"status_code": 201,
"data": {
"id": "0j4gr5",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "21a26879-f2cc-11e5-934a-01f4862b04e9"
},
"createdDate": {
"hour": 16,
"__class__": "datetime",
"month": 3,
"second": 7,
"microsecond": 0,
"year": 2016,
"day": 25,
"minute": 57
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"status_code": 201,
"data": {
"path": "/{parameter_1}",
"pathPart": "{parameter_1}",
"id": "g7wfu0",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "0a4767b3-f2cc-11e5-a340-d76d518ae6ea"
},
"parentId": "80futfvqmi"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"status_code": 201,
"data": {
"path": "/{parameter_1}/{parameter_2}",
"pathPart": "{parameter_2}",
"id": "x9nbob",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "1004d3e5-f2cc-11e5-910b-97ce8e2335d5"
},
"parentId": "g7wfu0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"status_code": 201,
"data": {
"path": "/{parameter_1}/{parameter_2}/{parameter_3}",
"pathPart": "{parameter_3}",
"id": "3zl2yk",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "15c4629c-f2cc-11e5-a340-d76d518ae6ea"
},
"parentId": "x9nbob"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"status_code": 201,
"data": {
"path": "/{parameter_1}/{parameter_2}/{parameter_3}/{parameter_4}",
"pathPart": "{parameter_4}",
"id": "qegtku",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "1bf0e354-f2cc-11e5-934a-01f4862b04e9"
},
"parentId": "3zl2yk"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"status_code": 201,
"data": {
"id": "k8frs085c0",
"name": "zappa-ttt333",
"description": "zappa-ttt333 Zappa",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "065bfcc4-f2cc-11e5-934a-01f4862b04e9"
},
"createdDate": {
"hour": 16,
"__class__": "datetime",
"month": 3,
"second": 19,
"microsecond": 0,
"year": 2016,
"day": 25,
"minute": 56
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"status_code": 200,
"data": {
"items": [
{
"path": "/",
"id": "80futfvqmi"
}
],
"ResponseMetadata": {
"HTTPStatusCode": 200,
"RequestId": "066b8d1f-f2cc-11e5-910b-97ce8e2335d5"
}
}
}
13 changes: 13 additions & 0 deletions tests/placebo/TestZappa.test_cli_aws/apigateway.GetRestApi_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"status_code": 404,
"data": {
"ResponseMetadata": {
"HTTPStatusCode": 404,
"RequestId": "06567e4f-f2cc-11e5-a340-d76d518ae6ea"
},
"Error": {
"Message": "Invalid REST API identifier specified",
"Code": "NotFoundException"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"status_code": 201,
"data": {
"statusCode": "200",
"responseTemplates": {
"text/html": "#set($inputRoot = $input.path('$'))\n$inputRoot.Content"
},
"selectionPattern": "",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "06c3bf43-f2cc-11e5-910b-97ce8e2335d5"
},
"responseParameters": {
"method.response.header.Content-Type": "integration.response.body.Content-Type",
"method.response.header.Location": "integration.response.body.Location",
"method.response.header.X-Frame-Options": "integration.response.body.X-Frame-Options",
"method.response.header.Status": "integration.response.body.Status",
"method.response.header.Set-Cookie": "integration.response.body.Set-Cookie"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"status_code": 201,
"data": {
"statusCode": "400",
"responseTemplates": {
"text/html": "#set($inputRoot = $input.path('$.errorMessage'))\n$util.base64Decode($inputRoot)"
},
"selectionPattern": "PCFET0NUWVBFIGh0bWw\\+NDAw.*",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "074bdb09-f2cc-11e5-910b-97ce8e2335d5"
},
"responseParameters": {
"method.response.header.Content-Type": "integration.response.body.Content-Type",
"method.response.header.Location": "integration.response.body.Location",
"method.response.header.X-Frame-Options": "integration.response.body.X-Frame-Options",
"method.response.header.Status": "integration.response.body.Status",
"method.response.header.Set-Cookie": "integration.response.body.Set-Cookie"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"status_code": 201,
"data": {
"statusCode": "301",
"responseTemplates": {
"text/html": null
},
"selectionPattern": "https://.*|/.*",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "1321563b-f2cc-11e5-934a-01f4862b04e9"
},
"responseParameters": {
"method.response.header.Content-Type": "integration.response.body.Content-Type",
"method.response.header.Location": "integration.response.body.errorMessage",
"method.response.header.X-Frame-Options": "integration.response.body.X-Frame-Options",
"method.response.header.Status": "integration.response.body.Status",
"method.response.header.Set-Cookie": "integration.response.body.Set-Cookie"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"status_code": 201,
"data": {
"statusCode": "400",
"responseTemplates": {
"text/html": "#set($inputRoot = $input.path('$.errorMessage'))\n$util.base64Decode($inputRoot)"
},
"selectionPattern": "PCFET0NUWVBFIGh0bWw\\+NDAw.*",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "1328d016-f2cc-11e5-a340-d76d518ae6ea"
},
"responseParameters": {
"method.response.header.Content-Type": "integration.response.body.Content-Type",
"method.response.header.Location": "integration.response.body.Location",
"method.response.header.X-Frame-Options": "integration.response.body.X-Frame-Options",
"method.response.header.Status": "integration.response.body.Status",
"method.response.header.Set-Cookie": "integration.response.body.Set-Cookie"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"status_code": 201,
"data": {
"statusCode": "401",
"responseTemplates": {
"text/html": "#set($inputRoot = $input.path('$.errorMessage'))\n$util.base64Decode($inputRoot)"
},
"selectionPattern": "PCFET0NUWVBFIGh0bWw\\+NDAx.*",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "132fd527-f2cc-11e5-910b-97ce8e2335d5"
},
"responseParameters": {
"method.response.header.Content-Type": "integration.response.body.Content-Type",
"method.response.header.Location": "integration.response.body.Location",
"method.response.header.X-Frame-Options": "integration.response.body.X-Frame-Options",
"method.response.header.Status": "integration.response.body.Status",
"method.response.header.Set-Cookie": "integration.response.body.Set-Cookie"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"status_code": 201,
"data": {
"statusCode": "403",
"responseTemplates": {
"text/html": "#set($inputRoot = $input.path('$.errorMessage'))\n$util.base64Decode($inputRoot)"
},
"selectionPattern": "PCFET0NUWVBFIGh0bWw\\+NDAz.*",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "1337764c-f2cc-11e5-934a-01f4862b04e9"
},
"responseParameters": {
"method.response.header.Content-Type": "integration.response.body.Content-Type",
"method.response.header.Location": "integration.response.body.Location",
"method.response.header.X-Frame-Options": "integration.response.body.X-Frame-Options",
"method.response.header.Status": "integration.response.body.Status",
"method.response.header.Set-Cookie": "integration.response.body.Set-Cookie"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"status_code": 201,
"data": {
"statusCode": "404",
"responseTemplates": {
"text/html": "#set($inputRoot = $input.path('$.errorMessage'))\n$util.base64Decode($inputRoot)"
},
"selectionPattern": "PCFET0NUWVBFIGh0bWw\\+NDA0.*",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "133f6557-f2cc-11e5-a340-d76d518ae6ea"
},
"responseParameters": {
"method.response.header.Content-Type": "integration.response.body.Content-Type",
"method.response.header.Location": "integration.response.body.Location",
"method.response.header.X-Frame-Options": "integration.response.body.X-Frame-Options",
"method.response.header.Status": "integration.response.body.Status",
"method.response.header.Set-Cookie": "integration.response.body.Set-Cookie"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"status_code": 201,
"data": {
"statusCode": "500",
"responseTemplates": {
"text/html": "#set($inputRoot = $input.path('$.errorMessage'))\n$util.base64Decode($inputRoot)"
},
"selectionPattern": "PCFET0NUWVBFIGh0bWw\\+NTAw.*",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "1346b888-f2cc-11e5-910b-97ce8e2335d5"
},
"responseParameters": {
"method.response.header.Content-Type": "integration.response.body.Content-Type",
"method.response.header.Location": "integration.response.body.Location",
"method.response.header.X-Frame-Options": "integration.response.body.X-Frame-Options",
"method.response.header.Status": "integration.response.body.Status",
"method.response.header.Set-Cookie": "integration.response.body.Set-Cookie"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"status_code": 201,
"data": {
"statusCode": "200",
"responseTemplates": {
"text/html": "#set($inputRoot = $input.path('$'))\n$inputRoot.Content"
},
"selectionPattern": "",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "139acc02-f2cc-11e5-934a-01f4862b04e9"
},
"responseParameters": {
"method.response.header.Content-Type": "integration.response.body.Content-Type",
"method.response.header.Location": "integration.response.body.Location",
"method.response.header.X-Frame-Options": "integration.response.body.X-Frame-Options",
"method.response.header.Status": "integration.response.body.Status",
"method.response.header.Set-Cookie": "integration.response.body.Set-Cookie"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"status_code": 201,
"data": {
"statusCode": "301",
"responseTemplates": {
"text/html": null
},
"selectionPattern": "https://.*|/.*",
"ResponseMetadata": {
"HTTPStatusCode": 201,
"RequestId": "13a245db-f2cc-11e5-a340-d76d518ae6ea"
},
"responseParameters": {
"method.response.header.Content-Type": "integration.response.body.Content-Type",
"method.response.header.Location": "integration.response.body.errorMessage",
"method.response.header.X-Frame-Options": "integration.response.body.X-Frame-Options",
"method.response.header.Status": "integration.response.body.Status",
"method.response.header.Set-Cookie": "integration.response.body.Set-Cookie"
}
}
}
Loading

0 comments on commit a0a8be9

Please sign in to comment.