From a102ba4a19a968b3c2ce30072ed2f99a442acc7e Mon Sep 17 00:00:00 2001 From: Arvyd Paeglit Date: Mon, 2 Aug 2021 13:56:37 +0000 Subject: [PATCH] fix: corrected codeowners for sast-team --- .github/CODEOWNERS | 4 +-- .../{ => snyk-code}/snyk-code-test.spec.ts | 26 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) rename test/jest/unit/{ => snyk-code}/snyk-code-test.spec.ts (92%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d560d02fd32..a77443bd482 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -8,6 +8,8 @@ src/cli/commands/test/iac-output.ts @snyk/cloudconfig src/cli/commands/test/iac-test-shim.ts @snyk/cloudconfig src/lib/cloud-config-projects.ts @snyk/cloudconfig src/lib/plugins/sast/ @snyk/sast-team +test/fixtures/sast/ @snyk/sast-team +test/jest/unit/snyk-code/ @snyk/sast-team src/lib/iac/ @snyk/cloudconfig src/lib/snyk-test/iac-test-result.ts @snyk/cloudconfig src/lib/snyk-test/payload-schema.ts @snyk/cloudconfig @@ -17,8 +19,6 @@ test/fixtures/container-projects/ @snyk/capsule test/fixtures/iac/ @snyk/cloudconfig test/smoke/spec/iac/ @snyk/cloudconfig test/smoke/.iac-data/ @snyk/cloudconfig -test/fixtures/sast/ @snyk/sast-team -test/snyk-code-test.spec.ts @snyk/sast-team test/jest/unit/iac-unit-tests/ @snyk/cloudconfig test/jest/acceptance/iac/ @snyk/cloudconfig src/lib/errors/invalid-iac-file.ts @snyk/cloudconfig diff --git a/test/jest/unit/snyk-code-test.spec.ts b/test/jest/unit/snyk-code/snyk-code-test.spec.ts similarity index 92% rename from test/jest/unit/snyk-code-test.spec.ts rename to test/jest/unit/snyk-code/snyk-code-test.spec.ts index 49dfa1b6ba8..5f799559fe3 100644 --- a/test/jest/unit/snyk-code-test.spec.ts +++ b/test/jest/unit/snyk-code/snyk-code-test.spec.ts @@ -5,16 +5,16 @@ import { analyzeFolders, AnalysisSeverity } from '@snyk/code-client'; jest.mock('@snyk/code-client'); const analyzeFoldersMock = analyzeFolders as jest.Mock; -import { loadJson } from '../../utils'; -import * as featureFlags from '../../../src/lib/feature-flags'; -import * as checks from '../../../src/lib/plugins/sast/checks'; -import { config as userConfig } from '../../../src/lib/user-config'; -import * as analysis from '../../../src/lib/plugins/sast/analysis'; -import { Options, TestOptions } from '../../../src/lib/types'; -import * as ecosystems from '../../../src/lib/ecosystems'; -import * as analytics from '../../../src/lib/analytics'; -import * as cli from '../../../src/cli/commands'; -import { jsonStringifyLargeObject } from '../../../src/lib/json'; +import { loadJson } from '../../../utils'; +import * as featureFlags from '../../../../src/lib/feature-flags'; +import * as checks from '../../../../src/lib/plugins/sast/checks'; +import { config as userConfig } from '../../../../src/lib/user-config'; +import * as analysis from '../../../../src/lib/plugins/sast/analysis'; +import { Options, TestOptions } from '../../../../src/lib/types'; +import * as ecosystems from '../../../../src/lib/ecosystems'; +import * as analytics from '../../../../src/lib/analytics'; +import * as cli from '../../../../src/cli/commands'; +import { jsonStringifyLargeObject } from '../../../../src/lib/json'; const { getCodeAnalysisAndParseResults } = analysis; const osName = require('os-name'); @@ -27,12 +27,12 @@ describe('Test snyk code', () => { const failedCodeTestMessage = "Failed to run 'code test'"; const fakeApiKey = '123456789'; const sampleSarifResponse = loadJson( - path.join(__dirname, '/../../fixtures/sast/sample-sarif.json'), + path.join(__dirname, '/../../../fixtures/sast/sample-sarif.json'), ); const sampleAnalyzeFoldersResponse = loadJson( path.join( __dirname, - '/../../fixtures/sast/sample-analyze-folders-response.json', + '/../../../fixtures/sast/sample-analyze-folders-response.json', ), ); @@ -40,7 +40,7 @@ describe('Test snyk code', () => { osName() .toLowerCase() .indexOf('windows') === 0; - const fixturePath = path.join(__dirname, '../../fixtures', 'sast'); + const fixturePath = path.join(__dirname, '../../../fixtures', 'sast'); const cwd = process.cwd(); function readFixture(filename: string) {