Browse Source

fx templete

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

9
spec/elasticsearch.jest.ts

@ -30,7 +30,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\""
} }
} }
] ]
@ -142,8 +142,8 @@ describe('simple query', function(){
"field": "@timestamp", "field": "@timestamp",
"min_doc_count": 0, "min_doc_count": 0,
"extended_bounds": { "extended_bounds": {
"min": "1545933121101", "min": "0", // used to be 1545933121101
"max": "1545954721101" "max": "1" // used to be 1545954721101
}, },
"format": "epoch_millis" "format": "epoch_millis"
}, },
@ -184,6 +184,9 @@ describe('simple query', function(){
let result = elasticMetric.getQuery(from, to, limit, offset); let result = elasticMetric.getQuery(from, to, limit, offset);
console.log(result.schema.data);
console.log(expectedQuery.schema.data);
expect(result).toEqual(expectedQuery); expect(result).toEqual(expectedQuery);
}); });

Loading…
Cancel
Save