Skip to content

Commit

Permalink
Add back gather tcp cert test
Browse files Browse the repository at this point in the history
  • Loading branch information
akrantz01 committed Apr 20, 2022
1 parent a180e8e commit 32c7785
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions plugins/inputs/x509_cert/x509_cert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,29 +341,6 @@ func TestGatherTCPCert(t *testing.T) {
require.True(t, acc.HasMeasurement("x509_cert"))
}

func TestStrings(t *testing.T) {
sc := X509Cert{}
require.NoError(t, sc.Init())

tests := []struct {
name string
method string
returned string
expected string
}{
{name: "description", method: "Description", returned: sc.Description(), expected: description},
{name: "sample config", method: "SampleConfig", returned: sc.SampleConfig(), expected: sampleConfig},
}

for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
if test.returned != test.expected {
t.Errorf("Expected method %s to return '%s', found '%s'.", test.method, test.expected, test.returned)
}
})
}
}

func TestGatherCertIntegration(t *testing.T) {
if testing.Short() {
t.Skip("Skipping integration test in short mode")
Expand Down

0 comments on commit 32c7785

Please sign in to comment.