chore: add proxy backend (#3126)
* feat(backends): add proxy backend * feat: add proxy server initial commit * fix: move from joi to @hapi/joi * test: add joi validation tests * feat: proxy server initial implementations * test: add tests, fix build * chore: update yarn.lock * build: fix develop command * fix(back-proxy): fix bugs * test(backend-proxy): add cypress tests * chore: cleanup * chore: support node 10 * chore: code cleanup * chore: run cypress on ubuntu 16.04 * test(e2e): fix proxy backend cypress tests * chore: don't start proxy server on yarn develop
This commit is contained in:
committed by
Shawn Erquhart
parent
cf57da223d
commit
7e8084be87
@ -27,6 +27,7 @@ const {
|
||||
setupBitBucketTest,
|
||||
teardownBitBucketTest,
|
||||
} = require('./bitbucket');
|
||||
const { setupProxy, teardownProxy, setupProxyTest, teardownProxyTest } = require('./proxy');
|
||||
|
||||
const { copyBackendFiles } = require('../utils/config');
|
||||
|
||||
@ -51,6 +52,9 @@ module.exports = async (on, config) => {
|
||||
case 'bitbucket':
|
||||
result = await setupBitBucket(options);
|
||||
break;
|
||||
case 'proxy':
|
||||
result = await setupProxy(options);
|
||||
break;
|
||||
}
|
||||
|
||||
return result;
|
||||
@ -72,6 +76,9 @@ module.exports = async (on, config) => {
|
||||
case 'bitbucket':
|
||||
await teardownBitBucket(taskData);
|
||||
break;
|
||||
case 'proxy':
|
||||
await teardownProxy(taskData);
|
||||
break;
|
||||
}
|
||||
|
||||
console.log('Restoring defaults');
|
||||
@ -96,6 +103,9 @@ module.exports = async (on, config) => {
|
||||
case 'bitbucket':
|
||||
await setupBitBucketTest(taskData);
|
||||
break;
|
||||
case 'proxy':
|
||||
await setupProxyTest(taskData);
|
||||
break;
|
||||
}
|
||||
|
||||
return null;
|
||||
@ -118,6 +128,9 @@ module.exports = async (on, config) => {
|
||||
case 'bitbucket':
|
||||
await teardownBitBucketTest(taskData);
|
||||
break;
|
||||
case 'proxy':
|
||||
await teardownProxyTest(taskData);
|
||||
break;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user