Skip to content

Commit

Permalink
Fix itegration test
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Jul 14, 2020
1 parent b24f604 commit 5fe8948
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions x-pack/test/api_integration/apis/security_solution/timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
} from '../../../../plugins/security_solution/public/graphql/types';
import { FtrProviderContext } from '../../ftr_provider_context';

const LTE = '3000-01-01T00:00:00.000Z';
const GTE = '2000-01-01T00:00:00.000Z';
const TO = '3000-01-01T00:00:00.000Z';
const FROM = '2000-01-01T00:00:00.000Z';

// typical values that have to change after an update from "scripts/es_archiver"
const DATA_COUNT = 2;
Expand All @@ -37,13 +37,13 @@ const FILTER_VALUE = {
filter: [
{
bool: {
should: [{ range: { '@timestamp': { gte: GTE } } }],
should: [{ range: { '@timestamp': { gte: FROM } } }],
minimum_should_match: 1,
},
},
{
bool: {
should: [{ range: { '@timestamp': { lte: LTE } } }],
should: [{ range: { '@timestamp': { lte: TO } } }],
minimum_should_match: 1,
},
},
Expand Down Expand Up @@ -82,6 +82,11 @@ export default function ({ getService }: FtrProviderContext) {
defaultIndex: ['auditbeat-*', 'filebeat-*', 'packetbeat-*', 'winlogbeat-*'],
docValueFields: [],
inspect: false,
timerange: {
from: FROM,
to: TO,
interval: '12h',
},
},
})
.then((resp) => {
Expand Down Expand Up @@ -113,6 +118,11 @@ export default function ({ getService }: FtrProviderContext) {
defaultIndex: ['auditbeat-*', 'filebeat-*', 'packetbeat-*', 'winlogbeat-*'],
docValueFields: [],
inspect: false,
timerange: {
from: FROM,
to: TO,
interval: '12h',
},
},
})
.then((resp) => {
Expand Down

0 comments on commit 5fe8948

Please sign in to comment.