@@ -379,41 +379,42 @@ describe('apigw', () => {
379
379
expect ( detail ) . toBeNull ( ) ;
380
380
} ) ;
381
381
382
- test . only ( '[Apigw] Bind CustomDomain success' , async ( ) => {
383
- const apigwInputs = deepClone ( inputs ) ;
384
- apigwInputs . customDomains = [
385
- {
386
- domain : 'test-1.sls.plus' ,
387
- // certificateId: 'cWOJJjax',
388
- isDefaultMapping : false ,
389
- pathMappingSet : [
390
- {
391
- path : '/' ,
392
- environment : 'release' ,
393
- } ,
394
- ] ,
395
- protocols : [ 'http' ] ,
396
- isForcedHttps : true ,
397
- } ,
398
- {
399
- domain : 'test-2.sls.plus' ,
400
- // certificateId: 'cWOJJjax',
401
- isDefaultMapping : false ,
402
- pathMappingSet : [
403
- {
404
- path : '/' ,
405
- environment : 'release' ,
406
- } ,
407
- ] ,
408
- protocols : [ 'http' ] ,
409
- isForcedHttps : true ,
410
- } ,
411
- ] ;
412
- const deployOutputs = await apigw . deploy ( inputs ) ;
382
+ // FIXME: remove custom domain test (not complete)
383
+ // test.only('[Apigw] Bind CustomDomain success', async () => {
384
+ // const apigwInputs = deepClone(inputs);
385
+ // apigwInputs.customDomains = [
386
+ // {
387
+ // domain: 'test-1.sls.plus',
388
+ // // certificateId: 'cWOJJjax',
389
+ // isDefaultMapping: false,
390
+ // pathMappingSet: [
391
+ // {
392
+ // path: '/',
393
+ // environment: 'release',
394
+ // },
395
+ // ],
396
+ // protocols: ['http'],
397
+ // isForcedHttps: true,
398
+ // },
399
+ // {
400
+ // domain: 'test-2.sls.plus',
401
+ // // certificateId: 'cWOJJjax',
402
+ // isDefaultMapping: false,
403
+ // pathMappingSet: [
404
+ // {
405
+ // path: '/',
406
+ // environment: 'release',
407
+ // },
408
+ // ],
409
+ // protocols: ['http'],
410
+ // isForcedHttps: true,
411
+ // },
412
+ // ];
413
+ // const deployOutputs = await apigw.deploy(inputs);
413
414
414
- const deployOutputsAgain = await apigw . deploy ( inputs ) ;
415
+ // const deployOutputsAgain = await apigw.deploy(inputs);
415
416
416
- console . log ( { deployOutputs, deployOutputsAgain } ) ;
417
- await apigw . remove ( deployOutputs ) ;
418
- } ) ;
417
+ // console.log({ deployOutputs, deployOutputsAgain });
418
+ // await apigw.remove(deployOutputs);
419
+ // });
419
420
} ) ;
0 commit comments