Test fill number

pull/10616/head
Jared Scheib 2017-09-05 18:37:56 -04:00
parent 888e8a8b9d
commit e0c93f3b2a
1 changed files with 0 additions and 58 deletions

View File

@ -498,62 +498,6 @@ func TestConvert(t *testing.T) {
},
},
},
<<<<<<< HEAD
{
name: "Test implicit null fill accepted and made explicit",
influxQL: `SELECT mean("usage_idle") FROM "telegraf"."autogen"."cpu" WHERE time > now() - 15m GROUP BY time(1m)`,
want: chronograf.QueryConfig{
Database: "telegraf",
Measurement: "cpu",
RetentionPolicy: "autogen",
Fields: []chronograf.Field{
chronograf.Field{
Field: "usage_idle",
Funcs: []string{
"mean",
},
},
},
GroupBy: chronograf.GroupBy{
Time: "1m",
Tags: []string{},
},
Tags: map[string][]string{},
AreTagsAccepted: false,
Fill: "null",
Range: &chronograf.DurationRange{
Lower: "now() - 15m",
},
},
},
||||||| parent of a45faebe... bob
{
name: "Test implicit null fill accepted and made explicit",
influxQL: `SELECT mean("usage_idle") FROM "telegraf"."autogen"."cpu" WHERE time > now() - 15m GROUP BY time(1m)`,
want: chronograf.QueryConfig{
Database: "telegraf",
Measurement: "cpu",
RetentionPolicy: "autogen",
Fields: []chronograf.Field{
chronograf.Field{
Field: "usage_idle",
Funcs: []string{
"mean",
},
},
},
GroupBy: chronograf.GroupBy{
Time: "1m",
Tags: []string{},
},
Tags: map[string][]string{},
AreTagsAccepted: false,
Fill: "null",
Range: &chronograf.DurationRange{
Lower: "now() - 15m",
},
},
},
{
name: "Test fill number accepted",
influxQL: `SELECT mean("usage_idle") FROM "telegraf"."autogen"."cpu" WHERE time > now() - 15m GROUP BY time(1m) FILL(1337)`,
@ -581,8 +525,6 @@ func TestConvert(t *testing.T) {
},
},
},
=======
>>>>>>> a45faebe... bob
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {