Load Management and Peak Shaving (#13207)
This commit is contained in:
parent
652cab3192
commit
26973a0d2c
24 changed files with 1339 additions and 49 deletions
|
|
@ -10,15 +10,12 @@ import (
|
|||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
const sample = `
|
||||
loadpoints:
|
||||
- mode: off
|
||||
`
|
||||
|
||||
func TestYamlOff(t *testing.T) {
|
||||
var conf globalConfig
|
||||
viper.SetConfigType("yaml")
|
||||
if err := viper.ReadConfig(strings.NewReader(sample)); err != nil {
|
||||
if err := viper.ReadConfig(strings.NewReader(`loadpoints:
|
||||
- mode: off
|
||||
`)); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue