mirror of
https://github.com/prometheus/prometheus.git
synced 2025-07-04 19:39:38 +00:00
Format Go source files using 'gofumpt -w -s -extra'
Part of #9557 Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
This commit is contained in:
parent
b1e8e8a0ca
commit
1a6c2283a3
130 changed files with 1697 additions and 1350 deletions
|
@ -46,21 +46,24 @@ func TestSDCheckResult(t *testing.T) {
|
|||
}
|
||||
|
||||
expectedSDCheckResult := []sdCheckResult{
|
||||
sdCheckResult{
|
||||
{
|
||||
DiscoveredLabels: labels.Labels{
|
||||
labels.Label{Name: "__address__", Value: "localhost:8080"},
|
||||
labels.Label{Name: "__scrape_interval__", Value: "0s"},
|
||||
labels.Label{Name: "__scrape_timeout__", Value: "0s"},
|
||||
labels.Label{Name: "foo", Value: "bar"}},
|
||||
labels.Label{Name: "foo", Value: "bar"},
|
||||
},
|
||||
Labels: labels.Labels{
|
||||
labels.Label{Name: "__address__", Value: "localhost:8080"},
|
||||
labels.Label{Name: "__scrape_interval__", Value: "0s"},
|
||||
labels.Label{Name: "__scrape_timeout__", Value: "0s"},
|
||||
labels.Label{Name: "foo", Value: "bar"},
|
||||
labels.Label{Name: "instance", Value: "localhost:8080"},
|
||||
labels.Label{Name: "newfoo", Value: "bar"}},
|
||||
labels.Label{Name: "newfoo", Value: "bar"},
|
||||
},
|
||||
Error: nil,
|
||||
}}
|
||||
},
|
||||
}
|
||||
|
||||
require.Equal(t, expectedSDCheckResult, getSDCheckResult(targetGroups, scrapeConfig))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue