-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into kics-1317
- Loading branch information
Showing
50 changed files
with
1,635 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"kics_version": "development", | ||
"files_scanned": 3, | ||
"lines_scanned": 89, | ||
"files_parsed": 3, | ||
"lines_parsed": 86, | ||
"lines_ignored": 3, | ||
"files_failed_to_scan": 0, | ||
"queries_total": 1, | ||
"queries_failed_to_execute": 0, | ||
"queries_failed_to_compute_similarity_id": 0, | ||
"scan_id": "console", | ||
"severity_counters": { | ||
"HIGH": 0, | ||
"INFO": 0, | ||
"LOW": 0, | ||
"MEDIUM": 0, | ||
"TRACE": 0 | ||
}, | ||
"total_counter": 0, | ||
"total_bom_resources": 0, | ||
"start": "2024-02-06T12:29:45.3845776Z", | ||
"end": "2024-02-06T12:29:49.5261723Z", | ||
"paths": [ | ||
"/path/test/fixtures/helm_ignore" | ||
], | ||
"queries": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"kics_version": "development", | ||
"files_scanned": 3, | ||
"lines_scanned": 89, | ||
"files_parsed": 3, | ||
"lines_parsed": 34, | ||
"lines_ignored": 55, | ||
"files_failed_to_scan": 0, | ||
"queries_total": 1, | ||
"queries_failed_to_execute": 0, | ||
"queries_failed_to_compute_similarity_id": 0, | ||
"scan_id": "console", | ||
"severity_counters": { | ||
"HIGH": 0, | ||
"INFO": 0, | ||
"LOW": 0, | ||
"MEDIUM": 0, | ||
"TRACE": 0 | ||
}, | ||
"total_counter": 0, | ||
"total_bom_resources": 0, | ||
"start": "2024-02-06T12:29:45.3845776Z", | ||
"end": "2024-02-06T12:29:49.5261723Z", | ||
"paths": [ | ||
"/path/test/fixtures/helm_ignore_block" | ||
], | ||
"queries": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"kics_version": "development", | ||
"files_scanned": 3, | ||
"lines_scanned": 89, | ||
"files_parsed": 3, | ||
"lines_parsed": 86, | ||
"lines_ignored": 3, | ||
"files_failed_to_scan": 0, | ||
"queries_total": 1, | ||
"queries_failed_to_execute": 0, | ||
"queries_failed_to_compute_similarity_id": 0, | ||
"scan_id": "console", | ||
"severity_counters": { | ||
"HIGH": 0, | ||
"INFO": 0, | ||
"LOW": 0, | ||
"MEDIUM": 0, | ||
"TRACE": 0 | ||
}, | ||
"total_counter": 0, | ||
"total_bom_resources": 0, | ||
"start": "2024-02-06T15:01:20.657455Z", | ||
"end": "2024-02-06T15:01:25.1183483Z", | ||
"paths": [ | ||
"/path/test/fixtures/helm_disable_query" | ||
], | ||
"queries": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package testcases | ||
|
||
// E2E-CLI-083 - KICS scan | ||
// should perform a scan and return zero results ignoring the file | ||
func init() { //nolint | ||
testSample := TestCase{ | ||
Name: "should perform a scan and return zero results ignoring the file [E2E-CLI-083]", | ||
Args: args{ | ||
Args: []cmdArgs{ | ||
[]string{"scan", "-o", "/path/e2e/output", | ||
"--output-name", "E2E_CLI_083_RESULT", | ||
"-p", "\"/path/test/fixtures/helm_ignore\"", | ||
"-i", "b7652612-de4e-4466-a0bf-1cd81f0c6063", | ||
}, | ||
}, | ||
ExpectedResult: []ResultsValidation{ | ||
{ | ||
ResultsFile: "E2E_CLI_083_RESULT", | ||
ResultsFormats: []string{"json"}, | ||
}, | ||
}, | ||
}, | ||
WantStatus: []int{0}, | ||
} | ||
|
||
Tests = append(Tests, testSample) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package testcases | ||
|
||
// E2E-CLI-084 - KICS scan | ||
// should perform a scan and return zero results ignoring the block | ||
func init() { //nolint | ||
testSample := TestCase{ | ||
Name: "should perform a scan and return zero results ignoring the block [E2E-CLI-084]", | ||
Args: args{ | ||
Args: []cmdArgs{ | ||
[]string{"scan", "-o", "/path/e2e/output", | ||
"--output-name", "E2E_CLI_084_RESULT", | ||
"-p", "\"/path/test/fixtures/helm_ignore_block\"", | ||
"-i", "b7652612-de4e-4466-a0bf-1cd81f0c6063", | ||
}, | ||
}, | ||
ExpectedResult: []ResultsValidation{ | ||
{ | ||
ResultsFile: "E2E_CLI_084_RESULT", | ||
ResultsFormats: []string{"json"}, | ||
}, | ||
}, | ||
}, | ||
WantStatus: []int{0}, | ||
} | ||
|
||
Tests = append(Tests, testSample) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package testcases | ||
|
||
// E2E-CLI-085 - KICS scan | ||
// should perform a scan and return zero results ignoring the query | ||
func init() { //nolint | ||
testSample := TestCase{ | ||
Name: "should perform a scan and return zero results ignoring the query [E2E-CLI-085]", | ||
Args: args{ | ||
Args: []cmdArgs{ | ||
[]string{"scan", "-o", "/path/e2e/output", | ||
"--output-name", "E2E_CLI_085_RESULT", | ||
"-p", "\"/path/test/fixtures/helm_disable_query\"", | ||
"-i", "b7652612-de4e-4466-a0bf-1cd81f0c6063", | ||
}, | ||
}, | ||
ExpectedResult: []ResultsValidation{ | ||
{ | ||
ResultsFile: "E2E_CLI_085_RESULT", | ||
ResultsFormats: []string{"json"}, | ||
}, | ||
}, | ||
}, | ||
WantStatus: []int{0}, | ||
} | ||
|
||
Tests = append(Tests, testSample) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.