mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
cmd: test command checks
This commit is contained in:
@@ -97,3 +97,14 @@ func TestOrchestratorConfig(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestOrchestrator(t *testing.T) {
|
||||
root := RootCmd
|
||||
buf := new(bytes.Buffer)
|
||||
root.SetOut(buf)
|
||||
root.SetArgs([]string{"orchestrator", "--check", "/dev/null"})
|
||||
err := root.Execute()
|
||||
if err != nil {
|
||||
t.Errorf("`orchestrator` error:\n%+v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user