Skip to content

Commit

Permalink
[backend] wip
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Dec 3, 2024
1 parent 38c9651 commit f19969e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
11 changes: 0 additions & 11 deletions openbas-api/src/main/java/io/openbas/helper/InjectHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,4 @@ public List<ExecutableInject> getInjectsToRun() {
return concat(concat(executableInjects, executableDryInjects), executableAtomicTests)
.collect(Collectors.toList());
}

public ExecutableInject getExecutableInjectForOpenBASImplantExecutor(Inject inject) {
return new ExecutableInject(
true,
false,
inject,
getInjectTeams(inject),
inject.getAssets(),
inject.getAssetGroups(),
usersFromInjection(inject));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ public ExecutionProcess process(Execution execution, ExecutableInject injection)
computeExpectationsForAssetGroup(
expectations, content, assetGroup, new ArrayList<>())));

injectExpectationService.buildAndSaveInjectExpectations(
injectHelper.getExecutableInjectForOpenBASImplantExecutor(inject), expectations);
injectExpectationService.buildAndSaveInjectExpectations(injection, expectations);

return new ExecutionProcess(true);
}
Expand Down

0 comments on commit f19969e

Please sign in to comment.