OpenBAS-Platform / openbas

Open Breach and Attack Simulation Platform
https://openbas.io
Other
488 stars 46 forks source link

[backend] Adding import endpoints #1145

Closed Dimfacion closed 2 months ago

Dimfacion commented 3 months ago

Proposed changes

Related issues

Checklist

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 69.91150% with 170 lines in your changes missing coverage. Please review.

Project coverage is 28.53%. Comparing base (be131ce) to head (6cbfb6d).

Files Patch % Lines
...rc/main/java/io/openbas/service/InjectService.java 71.06% 111 Missing and 27 partials :warning:
.../openbas/rest/scenario/response/ImportMessage.java 76.66% 7 Missing :warning:
...pi/src/main/java/io/openbas/utils/InjectUtils.java 40.00% 3 Missing and 3 partials :warning:
...va/io/openbas/rest/mapper/form/MapperAddInput.java 0.00% 5 Missing :warning:
...io/openbas/rest/mapper/form/MapperUpdateInput.java 0.00% 5 Missing :warning:
...va/io/openbas/rest/scenario/ScenarioImportApi.java 40.00% 3 Missing :warning:
...nbas/rest/scenario/response/ImportTestSummary.java 66.66% 2 Missing :warning:
...openbas/rest/scenario/form/InjectsImportInput.java 75.00% 1 Missing :warning:
...nbas/rest/scenario/response/ImportPostSummary.java 66.66% 1 Missing :warning:
...pi/src/main/java/io/openbas/service/ImportRow.java 75.00% 1 Missing :warning:
... and 1 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## issue/290 #1145 +/- ## =============================================== + Coverage 26.63% 28.53% +1.89% - Complexity 1132 1249 +117 =============================================== Files 495 506 +11 Lines 12075 12558 +483 Branches 650 703 +53 =============================================== + Hits 3216 3583 +367 - Misses 8767 8853 +86 - Partials 92 122 +30 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.