Skip to content

Commit

Permalink
[fronius-exporter] Fix unit test for telegraf
Browse files Browse the repository at this point in the history
  • Loading branch information
ccremer committed Jun 13, 2021
1 parent 0d4676b commit f8a26f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/fronius-exporter/test/telegraf_secret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ func Test_TelegrafSecret_WhenDefiningGlobalTags_ThenRenderEachKeyValue(t *testin
ValuesFiles: []string{"values/telegraf_1.yaml"},
}

expectedLine1 := "key1 = value1"
expectedLine2 := "key2 = value2"
expectedLine1 := "key1 = \"value1\""
expectedLine2 := "key2 = \"value2\""
expectedSection := "[global_tags]"
config := "telegraf.conf"
secret := renderSecret(t, options, false, tplTelegrafSecret)
Expand Down
1 change: 1 addition & 0 deletions charts/fronius-exporter/test/values/telegraf_1.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
telegraf:
enabled: true
globalTags:
key1: value1
key2: value2

0 comments on commit f8a26f2

Please sign in to comment.