Browse Source

elastic tests fix

pull/21/head
Coin de Gamma 4 years ago
parent
commit
d3b8271836
  1. 6
      spec/elasticsearch.jest.ts

6
spec/elasticsearch.jest.ts

@ -100,7 +100,7 @@ describe('simple query', function(){
"type": "derivative" "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", "refId": "A",
"target": "carbon.agents.0b0226864dc8-a.cpuUsage", "target": "carbon.agents.0b0226864dc8-a.cpuUsage",
"timeField": "@timestamp" "timeField": "@timestamp"
@ -129,7 +129,7 @@ describe('simple query', function(){
{ {
"query_string": { "query_string": {
"analyze_wildcard": true, "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, url: datasourse.url,
method: 'POST', method: 'POST',
schema: { schema: {
data: queryTemplate.map(e => JSON.stringify(e)).join('\n') data: queryTemplate.map(e => JSON.stringify(e)).join('\n') + "\n"
} }
}; };

Loading…
Cancel
Save