From 49e59848727c274901fd81b493de9ade89350c86 Mon Sep 17 00:00:00 2001 From: Sergio Jimenez Date: Thu, 11 Feb 2016 18:55:00 +0100 Subject: [PATCH] test(unit): Removed useless tests --- plugins/inputs/mesos/mesos_test.go | 40 ------------------------------ 1 file changed, 40 deletions(-) diff --git a/plugins/inputs/mesos/mesos_test.go b/plugins/inputs/mesos/mesos_test.go index 3c9d0ca6d..c56580649 100644 --- a/plugins/inputs/mesos/mesos_test.go +++ b/plugins/inputs/mesos/mesos_test.go @@ -6,7 +6,6 @@ import ( "net/http" "net/http/httptest" "os" - "reflect" "testing" "github.com/influxdata/telegraf/testutil" @@ -117,42 +116,3 @@ func TestRemoveGroup(t *testing.T) { } } } - -func TestMasterBlocks(t *testing.T) { - a := "wrong_key" - expect := []string{} - got := masterBlocks(a) - - if !reflect.DeepEqual(got, expect) { - t.Errorf("Expected empty string slice, got: %v", got) - } -} - -func TestSampleConfig(t *testing.T) { - expect := ` - # Timeout, in ms. - timeout = 100 - # A list of Mesos masters. e.g. master1:5050, master2:5080, etc. - # The port can be skipped if using the default (5050) - # Default value is localhost:5050. - masters = ["localhost:5050"] - # Metrics groups to be collected. - # Default, all enabled. - master_collections = ["resources","master","system","slaves","frameworks","messages","evqueue","registrar"] -` - - got := new(Mesos).SampleConfig() - - if expect != got { - t.Errorf("Got %s", got) - } -} - -func TestDescription(t *testing.T) { - expect := "Telegraf plugin for gathering metrics from N Mesos masters" - got := new(Mesos).Description() - - if expect != got { - t.Errorf("Got %s", got) - } -}