Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/grafana-agent
Path: blob/main/pkg/integrations/mysqld_exporter/mysqld_test.go
5393 views
1
package mysqld_exporter //nolint:golint
2
3
import (
4
"testing"
5
6
"github.com/grafana/agent/pkg/config"
7
)
8
9
func TestConfig_SecretMysqlD(t *testing.T) {
10
stringCfg := `
11
prometheus:
12
wal_directory: /tmp/agent
13
integrations:
14
mysqld_exporter:
15
enabled: true
16
data_source_name: root:secret_password@myserver:3306`
17
config.CheckSecret(t, stringCfg, "secret_password")
18
}
19
20