Ejemplo n.º 1
0
func createConfigForAgentWriterTest(t *testing.T) resourced_config.Config {
	config := resourced_config.Config{}
	config.Path = "/insights/du"
	config.Interval = "3s"
	config.Kind = "writer"
	config.ReaderPaths = []string{"/du"}
	config.GoStruct = "StdOut"
	config.GoStructFields = make(map[string]interface{})
	return config
}
Ejemplo n.º 2
0
func newConfigExecutorForTest(t *testing.T) resourced_config.Config {
	config := resourced_config.Config{}
	config.GoStruct = "Shell"
	config.Kind = "executor"
	config.Path = "/x/uptime"
	config.GoStructFields = make(map[string]interface{})
	config.GoStructFields["Command"] = "uptime"

	return config
}