config: adapt unit tests
This commit is contained in:
parent
b24602f713
commit
2e18c81a00
|
@ -235,14 +235,12 @@ var expectedConf = &Config{
|
|||
|
||||
KubernetesSDConfigs: []*KubernetesSDConfig{
|
||||
{
|
||||
APIServers: []URL{kubernetesSDHostURL()},
|
||||
Role: KubernetesRoleEndpoint,
|
||||
APIServer: kubernetesSDHostURL(),
|
||||
Role: KubernetesRoleEndpoint,
|
||||
BasicAuth: &BasicAuth{
|
||||
Username: "myusername",
|
||||
Password: "mypassword",
|
||||
},
|
||||
RequestTimeout: model.Duration(10 * time.Second),
|
||||
RetryInterval: model.Duration(1 * time.Second),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -116,8 +116,7 @@ scrape_configs:
|
|||
|
||||
kubernetes_sd_configs:
|
||||
- role: endpoint
|
||||
api_servers:
|
||||
- 'https://localhost:1234'
|
||||
api_server: 'https://localhost:1234'
|
||||
|
||||
basic_auth:
|
||||
username: 'myusername'
|
||||
|
|
|
@ -3,8 +3,7 @@ scrape_configs:
|
|||
|
||||
kubernetes_sd_configs:
|
||||
- role: node
|
||||
api_servers:
|
||||
- 'https://localhost:1234'
|
||||
api_server: 'https://localhost:1234'
|
||||
|
||||
bearer_token: 1234
|
||||
bearer_token_file: somefile
|
||||
|
|
|
@ -3,8 +3,7 @@ scrape_configs:
|
|||
|
||||
kubernetes_sd_configs:
|
||||
- role: pod
|
||||
api_servers:
|
||||
- 'https://localhost:1234'
|
||||
api_server: 'https://localhost:1234'
|
||||
|
||||
bearer_token: 1234
|
||||
basic_auth:
|
||||
|
|
Loading…
Reference in New Issue