@@ -16,7 +16,7 @@ describe('apigw', () => {
16
16
netTypes : [ 'OUTER' ] ,
17
17
// customDomains: [
18
18
// {
19
- // domain: 'test.yugasun.com ',
19
+ // domain: 'test.yuga.chat ',
20
20
// // TODO: change to your certId
21
21
// certificateId: 'cWOJJjax',
22
22
// isDefaultMapping: false,
@@ -27,6 +27,7 @@ describe('apigw', () => {
27
27
// },
28
28
// ],
29
29
// protocols: ['http', 'https'],
30
+ // isForcedHttps: true
30
31
// },
31
32
// ],
32
33
usagePlan : {
@@ -48,6 +49,18 @@ describe('apigw', () => {
48
49
function : {
49
50
functionName : 'serverless-unit-test' ,
50
51
} ,
52
+ isBase64Encoded : true ,
53
+ isBase64Trigger : true ,
54
+ base64EncodedTriggerRules : [
55
+ {
56
+ name : 'Accept' ,
57
+ value : [ 'application/x-vpeg005' , 'application/xhtml+xml' ] ,
58
+ } ,
59
+ {
60
+ name : 'Content_Type' ,
61
+ value : [ 'application/x-vpeg005' , 'application/xhtml+xml' ] ,
62
+ } ,
63
+ ] ,
51
64
} ,
52
65
{
53
66
path : '/mo' ,
@@ -162,6 +175,7 @@ describe('apigw', () => {
162
175
created : true ,
163
176
authType : 'NONE' ,
164
177
businessType : 'NORMAL' ,
178
+ isBase64Encoded : true ,
165
179
} ,
166
180
{
167
181
path : '/mo' ,
@@ -172,6 +186,7 @@ describe('apigw', () => {
172
186
created : true ,
173
187
authType : 'NONE' ,
174
188
businessType : 'NORMAL' ,
189
+ isBase64Encoded : false ,
175
190
} ,
176
191
{
177
192
path : '/auto' ,
@@ -182,6 +197,7 @@ describe('apigw', () => {
182
197
created : true ,
183
198
authType : 'NONE' ,
184
199
businessType : 'NORMAL' ,
200
+ isBase64Encoded : false ,
185
201
} ,
186
202
{
187
203
path : '/ws' ,
@@ -192,6 +208,7 @@ describe('apigw', () => {
192
208
created : true ,
193
209
authType : 'NONE' ,
194
210
businessType : 'NORMAL' ,
211
+ isBase64Encoded : false ,
195
212
} ,
196
213
{
197
214
path : '/wsf' ,
@@ -204,6 +221,7 @@ describe('apigw', () => {
204
221
created : true ,
205
222
authType : 'NONE' ,
206
223
businessType : 'NORMAL' ,
224
+ isBase64Encoded : false ,
207
225
} ,
208
226
{
209
227
path : '/oauth' ,
@@ -214,6 +232,7 @@ describe('apigw', () => {
214
232
authType : 'OAUTH' ,
215
233
businessType : 'OAUTH' ,
216
234
internalDomain : expect . any ( String ) ,
235
+ isBase64Encoded : false ,
217
236
} ,
218
237
{
219
238
path : '/oauthwork' ,
@@ -225,6 +244,7 @@ describe('apigw', () => {
225
244
businessType : 'NORMAL' ,
226
245
authRelationApiId : expect . stringContaining ( 'api-' ) ,
227
246
internalDomain : expect . any ( String ) ,
247
+ isBase64Encoded : false ,
228
248
} ,
229
249
] ,
230
250
} ) ;
@@ -273,6 +293,7 @@ describe('apigw', () => {
273
293
} ,
274
294
usagePlanId : expect . stringContaining ( 'usagePlan-' ) ,
275
295
} ,
296
+ isBase64Encoded : true ,
276
297
} ,
277
298
{
278
299
path : '/mo' ,
@@ -283,6 +304,7 @@ describe('apigw', () => {
283
304
created : true ,
284
305
authType : 'NONE' ,
285
306
businessType : 'NORMAL' ,
307
+ isBase64Encoded : false ,
286
308
} ,
287
309
{
288
310
path : '/auto' ,
@@ -293,6 +315,7 @@ describe('apigw', () => {
293
315
created : true ,
294
316
authType : 'NONE' ,
295
317
businessType : 'NORMAL' ,
318
+ isBase64Encoded : false ,
296
319
} ,
297
320
{
298
321
path : '/ws' ,
@@ -303,6 +326,7 @@ describe('apigw', () => {
303
326
authType : 'NONE' ,
304
327
businessType : 'NORMAL' ,
305
328
created : true ,
329
+ isBase64Encoded : false ,
306
330
} ,
307
331
{
308
332
path : '/wsf' ,
@@ -315,6 +339,7 @@ describe('apigw', () => {
315
339
authType : 'NONE' ,
316
340
businessType : 'NORMAL' ,
317
341
created : true ,
342
+ isBase64Encoded : false ,
318
343
} ,
319
344
{
320
345
path : '/oauth' ,
@@ -325,6 +350,7 @@ describe('apigw', () => {
325
350
authType : 'OAUTH' ,
326
351
businessType : 'OAUTH' ,
327
352
internalDomain : expect . any ( String ) ,
353
+ isBase64Encoded : false ,
328
354
} ,
329
355
{
330
356
path : '/oauthwork' ,
@@ -336,6 +362,7 @@ describe('apigw', () => {
336
362
businessType : 'NORMAL' ,
337
363
authRelationApiId : expect . stringContaining ( 'api-' ) ,
338
364
internalDomain : expect . any ( String ) ,
365
+ isBase64Encoded : false ,
339
366
} ,
340
367
] ,
341
368
} ) ;
0 commit comments