Skip to content

Commit

Permalink
Fixed the integeration tests to work and not flake out on version cha…
Browse files Browse the repository at this point in the history
…nges
  • Loading branch information
FrankHassanabad committed Jun 8, 2021
1 parent 5923ebc commit 89c1db9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
deleteListsIndex,
importFile,
} from '../../../lists_api_integration/utils';
import { SIGNALS_TEMPLATE_VERSION } from '../../../../plugins/security_solution/server/lib/detection_engine/routes/index/get_signals_template';

// eslint-disable-next-line import/no-default-export
export default ({ getService }: FtrProviderContext) => {
Expand Down Expand Up @@ -127,7 +128,7 @@ export default ({ getService }: FtrProviderContext) => {
host: { name: ['mothra'] },
event: { kind: 'signal' },
signal: {
_meta: { version: 35 },
_meta: { version: SIGNALS_TEMPLATE_VERSION },
parents: [
{
id:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {

import { getCreateThreatMatchRulesSchemaMock } from '../../../../plugins/security_solution/common/detection_engine/schemas/request/rule_schemas.mock';
import { getThreatMatchingSchemaPartialMock } from '../../../../plugins/security_solution/common/detection_engine/schemas/response/rules_schema.mocks';
import { SIGNALS_TEMPLATE_VERSION } from '../../../../plugins/security_solution/server/lib/detection_engine/routes/index/get_signals_template';

const format = (value: unknown): string => JSON.stringify(value, null, 2);

Expand Down Expand Up @@ -201,7 +202,7 @@ export default ({ getService }: FtrProviderContext) => {
},
signal: {
_meta: {
version: 35,
version: SIGNALS_TEMPLATE_VERSION,
},
ancestors: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ export default ({ getService }: FtrProviderContext) => {
'host.id': '8cc95778cce5407c809480e8e32ad76b',
event: { kind: 'signal' },
signal: {
_meta: { version: 35 },
_meta: { version: SIGNALS_TEMPLATE_VERSION },
parents: [
{
depth: 0,
Expand Down Expand Up @@ -1011,7 +1011,7 @@ export default ({ getService }: FtrProviderContext) => {
'host.id': '8cc95778cce5407c809480e8e32ad76b',
event: { kind: 'signal' },
signal: {
_meta: { version: 35 },
_meta: { version: SIGNALS_TEMPLATE_VERSION },
parents: [
{
depth: 0,
Expand Down Expand Up @@ -1101,7 +1101,7 @@ export default ({ getService }: FtrProviderContext) => {
'process.name': 'sshd',
event: { kind: 'signal' },
signal: {
_meta: { version: 35 },
_meta: { version: SIGNALS_TEMPLATE_VERSION },
parents: [
{
depth: 0,
Expand Down

0 comments on commit 89c1db9

Please sign in to comment.