Skip to content

Commit

Permalink
[backend] fix test compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
isselparra committed Oct 14, 2024
1 parent cdfddc2 commit 09f826f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openbas-api/src/test/java/io/openbas/rest/PayloadApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.openbas.IntegrationTest;
import io.openbas.database.model.Document;
import io.openbas.database.model.Endpoint;
import io.openbas.database.model.Payload;
import io.openbas.database.repository.DocumentRepository;
import io.openbas.rest.payload.form.PayloadCreateInput;
import io.openbas.utils.mockUser.WithMockAdminUser;
Expand Down Expand Up @@ -50,8 +51,8 @@ void createExecutablePayload() throws Exception {
PayloadCreateInput input = new PayloadCreateInput();
input.setType("Executable");
input.setName("My Executable Payload");
input.setSource("MANUAL");
input.setStatus("VERIFIED");
input.setSource(Payload.PAYLOAD_SOURCE.MANUAL);
input.setStatus(Payload.PAYLOAD_STATUS.VERIFIED);
input.setPlatforms(new Endpoint.PLATFORM_TYPE[]{Endpoint.PLATFORM_TYPE.Linux});
input.setAttackPatternsIds(Collections.emptyList());
input.setTagIds(Collections.emptyList());
Expand Down

0 comments on commit 09f826f

Please sign in to comment.