From d3b8271836d6812c648cf0078f804a1503fa1c98 Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Sun, 13 Dec 2020 17:50:56 +0100 Subject: [PATCH] elastic tests fix --- spec/elasticsearch.jest.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/elasticsearch.jest.ts b/spec/elasticsearch.jest.ts index ffb5b3d..e386684 100644 --- a/spec/elasticsearch.jest.ts +++ b/spec/elasticsearch.jest.ts @@ -100,7 +100,7 @@ describe('simple query', function(){ "type": "derivative" } ], - "query": "beat.hostname:opt-project.ru AND !system.network.name:\"IBM USB Remote NDIS Network Device\"", + "query": "beat.hostname:example.com AND !system.network.name:\"IBM USB Remote NDIS Network Device\"", "refId": "A", "target": "carbon.agents.0b0226864dc8-a.cpuUsage", "timeField": "@timestamp" @@ -129,7 +129,7 @@ describe('simple query', function(){ { "query_string": { "analyze_wildcard": true, - "query": "beat.hostname:opt-project.ru AND !system.network.name:\"IBM USB Remote NDIS Network Device\"" + "query": "beat.hostname:example.com AND !system.network.name:\"IBM USB Remote NDIS Network Device\"" } } ] @@ -173,7 +173,7 @@ describe('simple query', function(){ url: datasourse.url, method: 'POST', schema: { - data: queryTemplate.map(e => JSON.stringify(e)).join('\n') + data: queryTemplate.map(e => JSON.stringify(e)).join('\n') + "\n" } };