Skip to content

Commit

Permalink
Resolve drone errors
Browse files Browse the repository at this point in the history
  • Loading branch information
johanah29 committed Nov 29, 2024
1 parent 6be12a7 commit c01b635
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
import io.openbas.database.repository.InjectStatusRepository;
import io.openbas.database.repository.InjectorContractRepository;
import io.openbas.utils.mockUser.WithMockAdminUser;

import java.time.Instant;

import org.junit.jupiter.api.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
Expand All @@ -32,14 +30,10 @@ public class AtomicTestingApiTest extends IntegrationTest {
static InjectStatus INJECT_STATUS;
static String NEW_INJECT_ID;

@Autowired
private MockMvc mvc;
@Autowired
private InjectRepository injectRepository;
@Autowired
private InjectorContractRepository injectorContractRepository;
@Autowired
private InjectStatusRepository injectStatusRepository;
@Autowired private MockMvc mvc;
@Autowired private InjectRepository injectRepository;
@Autowired private InjectorContractRepository injectorContractRepository;
@Autowired private InjectStatusRepository injectStatusRepository;

@BeforeAll
void beforeAll() {
Expand Down
2 changes: 2 additions & 0 deletions openbas-front/src/actions/payloads/Payload.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ export type PayloadStore = Omit<Payload, 'payload_collector'> & {
executable_arch?: string;
payload_attack_patterns?: string[];
};

export type PayloadStatus = 'UNVERIFIED' | 'VERIFIED' | 'DEPRECATED';
3 changes: 1 addition & 2 deletions openbas-front/src/admin/components/payloads/Payloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { CollectorHelper } from '../../../actions/collectors/collector-help
import { fetchDocuments } from '../../../actions/Document';
import type { DocumentHelper } from '../../../actions/helper';
import { searchPayloads } from '../../../actions/Payload';
import type { PayloadStore } from '../../../actions/payloads/Payload';
import type { PayloadStatus, PayloadStore } from '../../../actions/payloads/Payload';
import Breadcrumbs from '../../../components/Breadcrumbs';
import Drawer from '../../../components/common/Drawer';
import ExportButton from '../../../components/common/ExportButton';
Expand All @@ -23,7 +23,6 @@ import ItemTags from '../../../components/ItemTags';
import PayloadIcon from '../../../components/PayloadIcon';
import PlatformIcon from '../../../components/PlatformIcon';
import { useHelper } from '../../../store';
import { PayloadStatus } from '../../../utils/api-types';
import { useAppDispatch } from '../../../utils/hooks';
import useDataLoader from '../../../utils/hooks/useDataLoader';
import CreatePayload from './CreatePayload';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const ScenarioForm: FunctionComponent<Props> = ({
scenario_tags: z.string().array().optional(),
scenario_external_reference: z.string().optional(),
scenario_external_url: z.string().optional(),
scenario_mail_from: z.string().email(t('Should be a valid email address')),
scenario_mail_from: z.string().email(t('Should be a valid email address')).optional(),
scenario_mails_reply_to: z.array(z.string().email(t('Should be a valid email address'))).optional(),
scenario_message_header: z.string().optional(),
scenario_message_footer: z.string().optional(),
Expand Down

0 comments on commit c01b635

Please sign in to comment.