Skip to content

Commit 434a6e3

Browse files
author
Nikita Dugar
committed
add mock method
1 parent 9f02990 commit 434a6e3

File tree

3 files changed

+94
-96
lines changed

3 files changed

+94
-96
lines changed

_example/basic/example.tf

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ EOF
3333
}, {}]
3434

3535
# Api Gateway Method Response
36-
status_codes = [200, 200]
37-
response_models = [{ "application/json" = "Empty" }, {}]
36+
status_codes = [200, 200]
37+
response_models = [{ "application/json" = "Empty" }, {}]
3838
response_parameters = [{ "method.response.header.X-Some-Header" = true }, {}]
3939

4040
# Api Gateway Integration Response
@@ -49,11 +49,11 @@ EOF
4949
EOF
5050
}, {}]
5151

52-
# Api Gateway Deployment
52+
# Api Gateway Deployment
5353
deployment_enabled = true
5454
stage_name = "deploy"
5555

56-
# Api Gateway Stage
56+
# Api Gateway Stage
5757
stage_enabled = true
5858
stage_names = ["qa", "dev"]
5959
}

_example/complete/example.tf

+9-9
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ EOF
3434
}, {}]
3535

3636
# Api Gateway Method Response
37-
status_codes = [200, 200]
38-
response_models = [{ "application/json" = "Empty" }, {}]
37+
status_codes = [200, 200]
38+
response_models = [{ "application/json" = "Empty" }, {}]
3939
response_parameters = [{ "method.response.header.X-Some-Header" = true }, {}]
4040

4141
# Api Gateway Integration Response
@@ -50,19 +50,19 @@ EOF
5050
EOF
5151
}, {}]
5252

53-
# Api Gateway Deployment
53+
# Api Gateway Deployment
5454
deployment_enabled = true
5555
stage_name = "deploy"
5656

57-
# Api Gateway Stage
57+
# Api Gateway Stage
5858
stage_enabled = true
5959
stage_names = ["qa", "dev"]
6060

61-
# Api Gateway Client Certificate
61+
# Api Gateway Client Certificate
6262
cert_enabled = true
6363
cert_description = "clouddrove"
6464

65-
# Api Gateway Authorizer
65+
# Api Gateway Authorizer
6666
authorizer_count = 2
6767
authorizer_names = ["test", "test1"]
6868
authorizer_uri = ["arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:xxxxxxxxxx:function:test/invocations", "arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:xxxxxxxxxx:function:test/invocations"]
@@ -71,17 +71,17 @@ EOF
7171
identity_validation_expressions = ["sfdgfhghrfdsdas", ""]
7272
authorizer_types = ["TOKEN", "REQUEST"]
7373

74-
# Api Gateway Gateway Response
74+
# Api Gateway Gateway Response
7575
gateway_response_count = 2
7676
response_types = ["UNAUTHORIZED", "RESOURCE_NOT_FOUND"]
7777
gateway_status_codes = ["401", "404"]
7878

79-
# Api Gateway Model
79+
# Api Gateway Model
8080
model_count = 2
8181
model_names = ["test", "test1"]
8282
content_types = ["application/json", "application/json"]
8383

84-
# Api Gateway Api Key
84+
# Api Gateway Api Key
8585
key_count = 2
8686
key_names = ["test", "test1"]
8787
}

0 commit comments

Comments
 (0)