mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
For the orchestrator, we need to build default values for slice of configurations. We introduce a Reset() method that will be called by mapstructure.
20 lines
392 B
Go
20 lines
392 B
Go
// SPDX-FileCopyrightText: 2022 Free Mobile
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"akvorado/common/reporter"
|
|
)
|
|
|
|
func TestOrchestratorStart(t *testing.T) {
|
|
r := reporter.NewMock(t)
|
|
config := OrchestratorConfiguration{}
|
|
config.Reset()
|
|
if err := orchestratorStart(r, config, true); err != nil {
|
|
t.Fatalf("orchestratorStart() error:\n%+v", err)
|
|
}
|
|
}
|