mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Cosmetic changes to tests
This commit is contained in:
parent
12e2e500b1
commit
def73cfd4c
5 changed files with 43 additions and 7 deletions
|
|
@ -6,6 +6,8 @@ local influxdb = require("influxdb")
|
|||
local test_utils = require("test_utils")
|
||||
local influx2Series = influxdb._influx2Series
|
||||
|
||||
-- ##############################################
|
||||
|
||||
-- Reproduces 12c8fc315654c1a0e7bf82f089ee47d45a98fc07 - Fix occasional series ponts differences in InfluxDB
|
||||
local function test_sampling1(test)
|
||||
local schema = {
|
||||
|
|
@ -99,6 +101,8 @@ local function test_sampling1(test)
|
|||
return test:success()
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
-- Reproduces e8955df951556421659c964a202cc006a4bf40d1 - Fix influx2Series points bug
|
||||
local function test_datafill1(test)
|
||||
local tags = {}
|
||||
|
|
@ -173,6 +177,8 @@ local function test_datafill1(test)
|
|||
return test:success()
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
-- Reproduces 65b30e24c8eb851cdd8614917e328b54873d4a2c - Fix influx2Series points bug with sampling
|
||||
local function test_datafill2(test)
|
||||
local tags = {}
|
||||
|
|
@ -248,6 +254,8 @@ local function test_datafill2(test)
|
|||
return test:success()
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function test_datafill3(test)
|
||||
local tags = {}
|
||||
local options = {
|
||||
|
|
@ -326,6 +334,8 @@ function test_datafill3(test)
|
|||
return test:success()
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function test_no_derivative1(test)
|
||||
local tags = {}
|
||||
local options = {
|
||||
|
|
@ -380,6 +390,8 @@ function test_no_derivative1(test)
|
|||
return test:success()
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
--http://127.0.0.1:3000/lua/get_ts.lua?ts_query=ifid:1&epoch_end=1534493220&ts_schema=iface:flows&epoch_begin=1534492620&initial_point=true&ts_compare=30m&limit=42
|
||||
|
||||
function test_skip_initial1(test)
|
||||
|
|
@ -438,6 +450,8 @@ function test_skip_initial1(test)
|
|||
return test:success()
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function run(tester)
|
||||
local rv = tester.run_test("influx2Series:test_sampling1", test_sampling1)
|
||||
rv = tester.run_test("influx2Series:test_datafill1", test_datafill1) and rv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue