/** * Copyright 2022 Gravwell, Inc. All rights reserved. * * Contact: [legal@gravwell.io](mailto:legal@gravwell.io) * * This software may be modified and distributed under the terms of the MIT * license. See the LICENSE file for details. */ import { CreatableActionable } from '~/models/actionable/creatable-actionable'; import { isActionable } from '~/models/actionable/is-actionable'; import { TEST_BASE_API_CONTEXT } from '~/tests/config'; import { integrationTest } from '~/tests/test-types'; import { makeCreateOneActionable } from './create-one-actionable'; xdescribe('createOneActionable()', () => { let createOneActionable: ReturnType; beforeAll(async () => { createOneActionable = makeCreateOneActionable(await TEST_BASE_API_CONTEXT()); }); // gravwell/gravwell#2425 xit( 'Should create an actionable and return it', integrationTest(async () => { const data: CreatableActionable = { name: 'Actionable test', actions: [{ name: 'Action test', command: { type: 'query', userQuery: 'tag=netflow' } }], triggers: [{ pattern: /abc/g, activatesOn: 'clicks and selection', disabled: false }], isDisabled: false, }; const actionable = await createOneActionable(data); expect(isActionable(actionable)).toBeTrue(); }), ); });