Skip to content

Commit cd03ca0

Browse files
fix tests
1 parent 90c2561 commit cd03ca0

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

spec/02-requests/02-build_request_spec.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ describe("operations protocol", function()
155155
method = 'POST',
156156
path = '/hello%20world/42',
157157
host = 'sts.amazonaws.com',
158-
port = 80,
158+
port = 443,
159159
query = {
160160
RoleArn = 'hello',
161161
RoleSessionName = 'world',
@@ -189,7 +189,7 @@ describe("operations protocol", function()
189189
method = 'POST',
190190
path = '/hello%20world/42',
191191
host = 'sts.amazonaws.com',
192-
port = 80,
192+
port = 443,
193193
body = {
194194
subStructure = {
195195
hello = "the default hello thinghy",
@@ -228,7 +228,7 @@ describe("operations protocol", function()
228228
method = 'POST',
229229
path = '/hello%20world/42',
230230
host = 'sts.amazonaws.com',
231-
port = 80,
231+
port = 443,
232232
body = {
233233
subStructure = {
234234
hello = "the default hello thinghy",
@@ -283,7 +283,7 @@ describe("operations protocol", function()
283283
method = 'POST',
284284
path = '/hello%20world/42',
285285
host = 'sts.amazonaws.com',
286-
port = 80,
286+
port = 443,
287287
body = {
288288
RoleArn = {
289289
[1] = 'hello' },

spec/04-services/02-s3.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe("S3 service", function()
3434
s3_3rd = assert(aws:S3 {
3535
scheme = "http",
3636
endpoint = "testendpoint.com",
37-
port = 80,
37+
port = 443,
3838
tls = false,
3939
})
4040
end)
@@ -83,7 +83,7 @@ describe("S3 service", function()
8383
host = 'testbucket.testendpoint.com',
8484
method = 'PUT',
8585
path = '/testkey',
86-
port = 80,
86+
port = 443,
8787
query = {},
8888
tls = false,
8989
},
@@ -117,7 +117,7 @@ describe("S3 service", function()
117117
['host'] = 'testbucket.testendpoint.com',
118118
['method'] = 'GET',
119119
['path'] = '/testkey',
120-
['port'] = 80,
120+
['port'] = 443,
121121
['query'] = {},
122122
['tls'] = false,
123123
}
@@ -152,7 +152,7 @@ describe("S3 service", function()
152152
['host'] = 'testbucket.testendpoint.com',
153153
['method'] = 'GET',
154154
['path'] = '',
155-
['port'] = 80,
155+
['port'] = 443,
156156
['query'] = {
157157
['acl'] = ''
158158
},

spec/04-services/03-s3_compat_api.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe("S3 service", function()
3636
s3_3rd = assert(aws:S3 {
3737
scheme = "http",
3838
endpoint = "testendpoint.com",
39-
port = 80,
39+
port = 443,
4040
tls = false,
4141
})
4242
end)
@@ -85,7 +85,7 @@ describe("S3 service", function()
8585
host = 'testendpoint.com',
8686
method = 'PUT',
8787
path = '/testbucket/testkey',
88-
port = 80,
88+
port = 443,
8989
query = {},
9090
tls = false,
9191
},
@@ -119,7 +119,7 @@ describe("S3 service", function()
119119
['host'] = 'testendpoint.com',
120120
['method'] = 'GET',
121121
['path'] = '/testbucket/testkey',
122-
['port'] = 80,
122+
['port'] = 443,
123123
['query'] = {},
124124
['tls'] = false,
125125
}
@@ -154,7 +154,7 @@ describe("S3 service", function()
154154
['host'] = 'testendpoint.com',
155155
['method'] = 'GET',
156156
['path'] = '/testbucket',
157-
['port'] = 80,
157+
['port'] = 443,
158158
['query'] = {
159159
['acl'] = ''
160160
},

0 commit comments

Comments
 (0)