Skip to content

Commit 7e84c3d

Browse files
authored
fix: fix build error (#193)
* fix: fix build error * fix: remove custom domain test
1 parent d0c4d48 commit 7e84c3d

File tree

6 files changed

+46
-884
lines changed

6 files changed

+46
-884
lines changed

__tests__/apigw.test.ts

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -379,41 +379,42 @@ describe('apigw', () => {
379379
expect(detail).toBeNull();
380380
});
381381

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);
413414

414-
const deployOutputsAgain = await apigw.deploy(inputs);
415+
// const deployOutputsAgain = await apigw.deploy(inputs);
415416

416-
console.log({ deployOutputs, deployOutputsAgain });
417-
await apigw.remove(deployOutputs);
418-
});
417+
// console.log({ deployOutputs, deployOutputsAgain });
418+
// await apigw.remove(deployOutputs);
419+
// });
419420
});

0 commit comments

Comments
 (0)