diff --git a/package.json b/package.json index 8ef79b7b..1fabe4ab 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "parse-link-header": "2.0.0", "sleep-promise": "8.0.1", "snyk-config": "^4.0.0", - "snyk-request-manager": "1.4.4", + "snyk-request-manager": "1.5.0", "source-map-support": "^0.5.16", "split": "1.0.1", "yargs": "16.2.0" diff --git a/test/lib/source-handlers/github/github.test.ts b/test/lib/source-handlers/github/github.test.ts index 62c33452..fd923f85 100644 --- a/test/lib/source-handlers/github/github.test.ts +++ b/test/lib/source-handlers/github/github.test.ts @@ -14,7 +14,7 @@ describe('listGithubOrgs script', () => { id: expect.any(Number), url: expect.any(String), }); - }, 20000); + }, 30000); it('list orgs GHE', async () => { process.env.GITHUB_TOKEN = process.env.TEST_GHE_TOKEN; const GHE_URL = process.env.TEST_GHE_URL; @@ -24,7 +24,7 @@ describe('listGithubOrgs script', () => { id: expect.any(Number), url: expect.any(String), }); - }, 20000); + }, 30000); }); describe('listGithubRepos script', () => { @@ -44,7 +44,7 @@ describe('listGithubRepos script', () => { branch: expect.any(String), fork: expect.any(Boolean), }); - }, 20000); + }, 30000); it('list GHE repos', async () => { const GITHUB_ORG_NAME = process.env.TEST_GH_ORG_NAME; const GHE_URL = process.env.TEST_GHE_URL; @@ -60,5 +60,5 @@ describe('listGithubRepos script', () => { branch: expect.any(String), fork: expect.any(Boolean), }); - }, 20000); + }, 30000); }); diff --git a/test/scripts/generate-org-data.test.ts b/test/scripts/generate-org-data.test.ts index 1809fa26..79c7cd50 100644 --- a/test/scripts/generate-org-data.test.ts +++ b/test/scripts/generate-org-data.test.ts @@ -108,7 +108,7 @@ describe('generateOrgImportDataFile Github script', () => { name: expect.any(String), groupId, }); - }, 80000); + }, 180000); it('generate Github Enterprise Orgs data & skips empty Orgs', async () => { process.env.GITHUB_TOKEN = process.env.TEST_GHE_TOKEN; const GHE_URL = process.env.TEST_GHE_URL; @@ -135,7 +135,7 @@ describe('generateOrgImportDataFile Github script', () => { name: expect.any(String), groupId, }); - }, 80000); + }, 180000); }); describe('generateOrgImportDataFile Gitlab script', () => { @@ -170,7 +170,7 @@ describe('generateOrgImportDataFile Gitlab script', () => { name: expect.any(String), groupId, }); - }, 80000); + }, 180000); it('generate Gitlab Orgs data and skips empty orgs', async () => { process.env.GITLAB_TOKEN = process.env.TEST_GITLAB_TOKEN; diff --git a/test/scripts/generate-targets-data.test.ts b/test/scripts/generate-targets-data.test.ts index 57594303..3d34ecf9 100644 --- a/test/scripts/generate-targets-data.test.ts +++ b/test/scripts/generate-targets-data.test.ts @@ -49,7 +49,7 @@ describe('generateTargetsImportDataFile Github script', () => { integrationId: 'github-********-********-********', orgId: 'org-id', }); - }, 10000); + }, 30000); it('generate Github Enterprise repo data', async () => { process.env.GITHUB_TOKEN = process.env.TEST_GHE_TOKEN; @@ -87,7 +87,7 @@ describe('generateTargetsImportDataFile Github script', () => { integrationId: 'github-enterprise-********-********', orgId: 'org-id', }); - }, 10000); + }, 30000); it('generate Github repo data when no integrations are available', async () => { process.env.GITHUB_TOKEN = process.env.GH_TOKEN; @@ -111,7 +111,7 @@ describe('generateTargetsImportDataFile Github script', () => { ).rejects.toThrow( 'No targets could be generated. Check the error output & try again.', ); - }, 10000); + }, 30000); it('Duplicate orgs are ignored', async () => { process.env.GITHUB_TOKEN = process.env.GH_TOKEN; filesToDelete.push(path.resolve(__dirname + '/github-import-targets.json')); @@ -159,7 +159,7 @@ describe('generateTargetsImportDataFile Github script', () => { integrationId: expect.any(String), orgId: expect.any(String), }); - }, 10000); + }, 30000); }); describe('generateTargetsImportDataFile Gitlab script', () => {