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