Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/ruler/config_test.go

19 lines
359 B

package ruler
import (
"flag"
"testing"
"github.com/stretchr/testify/assert"
)
func TestRemoteWriteConfig(t *testing.T) {
fs := flag.NewFlagSet("test", flag.ExitOnError)
r := RemoteWriteConfig{}
r.RegisterFlags(fs)
// assert new multi clients config is backward compatible if with single tenant.
// if not provided
assert.NotNil(t, r.Clients)
}