Files
akvorado/cmd/inlet_test.go
Vincent Bernat 22eab774a4 cmd: change how default configuration values are built
For the orchestrator, we need to build default values for slice of
configurations. We introduce a Reset() method that will be called by
mapstructure.
2022-07-07 20:55:33 +02:00

20 lines
364 B
Go

// SPDX-FileCopyrightText: 2022 Free Mobile
// SPDX-License-Identifier: AGPL-3.0-only
package cmd
import (
"testing"
"akvorado/common/reporter"
)
func TestInletStart(t *testing.T) {
r := reporter.NewMock(t)
config := InletConfiguration{}
config.Reset()
if err := inletStart(r, config, true); err != nil {
t.Fatalf("inletStart() error:\n%+v", err)
}
}