You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add test for resubmit flag and fix config retrieval logic
Introduce a new integration test to verify handling of the resubmit flag during scan creation for non-existent projects, ensuring successful creation with default config. Additionally, fix the logic to retrieve configuration only when scans are available, preventing potential nil pointer dereferences.
* Refactor scan model response variable assignment
Simplified the retrieval of config and engines by using a single variable, `scanModelResponse`, to improve code readability and maintainability. This change consolidates access to elements of `allScansModel.Scans[0]` into one clear reference point, making the code easier to understand and modify in the future.
* Handle non-existent projects in ScansMockWrapper Get method.
Updated the ScansMockWrapper's Get method to return an empty configuration if the project ID is "non-existent-project". Added a test to ensure that the method behaves correctly in this scenario, verifying that an empty configuration is returned when attempting to resubmit a scan for a non-existent project.
* Refactor variable name in ScansMockWrapper Get function
* fix trivy vul
* fix trivy vul
* fix trivy vul
* fix trivy vul
* fix trivy vul
* dix healthcheck vul
---------
Co-authored-by: AlvoBen <[email protected]>
0 commit comments