Skip to content

Commit

Permalink
Update iac_scan_report_processor.test.ts
Browse files Browse the repository at this point in the history
Signed-off-by: pankhurisaxena28 <76627925+pankhurisaxena28@users.noreply.github.com>
  • Loading branch information
pankhurisaxena28 authored Jun 27, 2024
1 parent 902d2f9 commit ec9c3d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/iac_scan_report_processor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,18 +159,18 @@ test(
);

Check failure on line 160 in tests/iac_scan_report_processor.test.ts

View workflow job for this annotation

GitHub Actions / unit

Delete `····`
await suite.test(

Check failure on line 161 in tests/iac_scan_report_processor.test.ts

View workflow job for this annotation

GitHub Actions / unit

Replace `⏎······'zero·violations,·generates·report·with·only·the·note·field',⏎·····` with `'zero·violations,·generates·report·with·only·the·note·field',`
'zero violations, generates report only the note field',
'zero violations, generates report with only the note field',
async () => {
const reportGenerator = new SarifReportGenerator('version');

Check failure on line 164 in tests/iac_scan_report_processor.test.ts

View workflow job for this annotation

GitHub Actions / unit

Delete `··`

const report: IACValidationReport = {

Check failure on line 166 in tests/iac_scan_report_processor.test.ts

View workflow job for this annotation

GitHub Actions / unit

Delete `··`
note: 'IaC validation is limited to certain asset types and policies. For information about supported asset types and policies for IaC validation, see https://cloud.google.com/security-command-center/docs/supported-iac-assets-policies.',

Check failure on line 167 in tests/iac_scan_report_processor.test.ts

View workflow job for this annotation

GitHub Actions / unit

Replace `··········` with `········`
};

Check failure on line 168 in tests/iac_scan_report_processor.test.ts

View workflow job for this annotation

GitHub Actions / unit

Delete `··`

await IACScanReportProcessor.processReport(report, reportGenerator, 'sarif.json');

Check failure on line 170 in tests/iac_scan_report_processor.test.ts

View workflow job for this annotation

GitHub Actions / unit

Delete `··`
const sarif = await fs.readFile('./sarif.json', 'utf-8');

Check failure on line 171 in tests/iac_scan_report_processor.test.ts

View workflow job for this annotation

GitHub Actions / unit

Replace `········` with `······`
const sarifJson: SARIFTemplate = JSON.parse(sarif);

Check failure on line 172 in tests/iac_scan_report_processor.test.ts

View workflow job for this annotation

GitHub Actions / unit

Delete `··`

assert.deepStrictEqual(sarifJson.runs.at(0)?.tool.driver.rules.length, 0);

Check failure on line 174 in tests/iac_scan_report_processor.test.ts

View workflow job for this annotation

GitHub Actions / unit

Delete `··`
assert.deepStrictEqual(sarifJson.runs.at(0)?.results.length, 0);
},
Expand Down

0 comments on commit ec9c3d4

Please sign in to comment.