2018-11-16 20:20:49 +00:00
|
|
|
package spectests
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
RegisterFixture(
|
|
|
|
NewFixture(
|
|
|
|
`SHOW RETENTION POLICIES ON telegraf`,
|
2019-02-06 16:18:33 +00:00
|
|
|
`package main
|
|
|
|
|
|
|
|
databases()
|
|
|
|
|> filter(fn: (r) => r.databaseName == "telegraf")
|
|
|
|
|> rename(columns: {retentionPolicy: "name", retentionPeriod: "duration"})
|
|
|
|
|> set(key: "shardGroupDuration", value: "0")
|
|
|
|
|> set(key: "replicaN", value: "2")
|
|
|
|
|> keep(columns: ["name", "duration", "shardGroupDuration", "replicaN", "default")
|
|
|
|
|> yield(name: "0")
|
|
|
|
`,
|
2018-11-16 20:20:49 +00:00
|
|
|
),
|
|
|
|
)
|
|
|
|
}
|