func Configure(t *testing.T, trapConfig Config) {
	datadogYaml := map[string]interface{}{
		"snmp_traps_enabled": true,
		"snmp_traps_config":  trapConfig,
	}

	config.Datadog.SetConfigType("yaml")
	out, err := yaml.Marshal(datadogYaml)
	require.NoError(t, err)

	err = config.Datadog.ReadConfig(strings.NewReader(string(out)))
	require.NoError(t, err)
}
// Configure sets Datadog Agent configuration from a config object.
Configure sets Datadog Agent configuration from a config object.
// Configure sets Datadog Agent configuration from a config object .
func Configure(t *testing.T, trapConfig Config) {
	datadogYaml := map[string]interface{}{
		"snmp_traps_enabled": true,
		"snmp_traps_config":  trapConfig,
	}
	config.Datadog.SetConfigType("yaml")
	out, err := yaml.Marshal(datadogYaml)
	require.NoError(t, err)
	err = config.Datadog.ReadConfig(strings.NewReader(string(out)))
	require.NoError(t, err)
}
func Configure ( t * testing . T , trapConfig Config ) { datadogYaml := map [ string ] interface { } { " " : true , " " : trapConfig , } config . Datadog . SetConfigType ( " " ) out , err := yaml . Marshal ( datadogYaml ) require . NoError ( t , err ) err = config . Datadog . ReadConfig ( strings . NewReader ( string ( out ) ) ) require . NoError ( t , err ) }
Configure sets Datadog Agent configuration from a config object.
Configure sets Datadog Agent configuration from a config object .