Skip to content
Snippets Groups Projects
Commit 7d10986f authored by Sergio Jimenez's avatar Sergio Jimenez
Browse files

test(unit): Test for whitelisted metrics

parent 8c6a6604
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,7 @@ func TestMesosMaster(t *testing.T) {
m := Mesos{
Servers: []string{ts.Listener.Addr().String()},
Timeout: 10,
}
err := m.Gather(&acc)
......@@ -108,6 +109,13 @@ func TestRemoveGroup(t *testing.T) {
}
}
}
for _, v := range m.MetricsCol {
for _, x := range masterBlocks(v) {
if _, ok := mesosMetrics[x]; !ok {
t.Errorf("Didn't find key %s, it should present.", x)
}
}
}
}
func TestMasterBlocks(t *testing.T) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment