Skip to content

Commit fc0a129

Browse files
committed
chore: set hidden api url
1 parent 39aeda9 commit fc0a129

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

test/acceptance/fake-server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,7 @@ export const fakeServer = (basePath: string, snykToken: string): FakeServer => {
856856
});
857857

858858
app.post(`*orgs/:orgId/feature_flags/evaluation`, (req, res) => {
859+
console.log('tombrew Feature flag evaluation request received');
859860
const flags: string[] = req.body?.data?.attributes?.flags ?? [];
860861

861862
const { orgId } = req.params;

test/jest/acceptance/analytics.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ describe('analytics module', () => {
2626
SNYK_INTEGRATION_VERSION: '1.2.3',
2727
SNYK_HTTP_PROTOCOL_UPGRADE: '0',
2828
SNYK_INTERNAL_ORGID: 'orgid-test-cli',
29+
SNYK_API_HIDDEN_URL: 'http://localhost:' + port + '/hidden',
2930
};
3031
server = fakeServer(baseApi, env.SNYK_TOKEN);
3132
server.listen(port, () => {

test/jest/acceptance/snyk-container/container.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ DepGraph end`,
481481
SNYK_TOKEN: '123456789',
482482
SNYK_DISABLE_ANALYTICS: '1',
483483
SNYK_INTERNAL_ORGID: 'orgid-container-cli',
484+
SNYK_API_HIDDEN_URL: 'http://localhost:' + port + '/hidden',
484485
};
485486
server = fakeServer(baseApi, env.SNYK_TOKEN);
486487
server.listen(port, () => {

test/jest/acceptance/snyk-test/all-projects.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ describe('snyk test --all-projects (mocked server only)', () => {
2525
SNYK_TOKEN: '123456789',
2626
SNYK_DISABLE_ANALYTICS: '1',
2727
SNYK_INTERNAL_ORGID: 'orgid-test-cli',
28+
SNYK_API_HIDDEN_URL: 'http://localhost:' + port + '/hidden',
2829
};
2930
server = fakeServer(baseApi, env.SNYK_TOKEN);
3031
server.listen(port, () => {

test/jest/acceptance/snyk-test/missing-node-modules.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('snyk test with missing node_modules', () => {
2727
SNYK_TOKEN: requireSnykToken(),
2828
SNYK_DISABLE_ANALYTICS: '1',
2929
SNYK_INTERNAL_ORGID: 'orgid-test-cli',
30+
SNYK_API_HIDDEN_URL: 'http://localhost:' + port + '/hidden',
3031
};
3132

3233
const apiKey = '123456789';

0 commit comments

Comments
 (0)