-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[backend/frontend] Multiple fixes for testing and linting
- Loading branch information
1 parent
36bd9cf
commit 2447763
Showing
18 changed files
with
172 additions
and
65 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
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
22 changes: 11 additions & 11 deletions
22
openbas-api/src/test/java/io/openbas/utils/fixtures/InjectFixture.java
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
package io.openbas.utils.fixtures; | ||
|
||
import io.openbas.database.model.Inject; | ||
import io.openbas.database.model.InjectorContract; | ||
|
||
import static io.openbas.injectors.email.EmailContract.EMAIL_DEFAULT; | ||
import static io.openbas.injectors.email.EmailContract.TYPE; | ||
|
||
public class InjectFixture { | ||
|
||
public static final String INJECT_EMAIL_NAME = "Test email inject"; | ||
|
||
public static Inject getInjectForEmailContract() { | ||
Inject inject = new Inject(); | ||
inject.setTitle(INJECT_EMAIL_NAME); | ||
inject.setType(TYPE); | ||
inject.setEnabled(true); | ||
inject.setDependsDuration(0L); | ||
return inject; | ||
} | ||
public static final String INJECT_EMAIL_NAME = "Test email inject"; | ||
|
||
public static Inject getInjectForEmailContract(InjectorContract injectorContract) { | ||
Inject inject = new Inject(); | ||
inject.setTitle(INJECT_EMAIL_NAME); | ||
inject.setType(TYPE); | ||
inject.setInjectorContract(injectorContract); | ||
inject.setEnabled(true); | ||
inject.setDependsDuration(0L); | ||
return inject; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
openbas-front/src/admin/components/common/injects/CreateinjectDetails.tsx
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.