From 7d44ba30feb504f33c5c2aaba4997a487e1fd5a6 Mon Sep 17 00:00:00 2001 From: Jiri Tyr Date: Sun, 22 Jul 2018 21:24:13 +0100 Subject: [PATCH] Improving test coverage --- plugins/inputs/x509_cert/x509_cert_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/inputs/x509_cert/x509_cert_test.go b/plugins/inputs/x509_cert/x509_cert_test.go index 113886b3d621a..8eb8ccdbe3165 100644 --- a/plugins/inputs/x509_cert/x509_cert_test.go +++ b/plugins/inputs/x509_cert/x509_cert_test.go @@ -34,6 +34,8 @@ func TestGatherRemote(t *testing.T) { }{ {server: ":99999", timeout: 0, close: false, unset: false, error: true}, {server: "", timeout: 5, close: false, unset: false, error: false}, + {server: "https://example.org", timeout: 5, close: false, unset: false, error: false}, + {server: "file://", timeout: 5, close: false, unset: false, error: false}, {server: "", timeout: 5, close: false, unset: true, error: true}, {server: "", timeout: 0, close: true, unset: false, error: true}, {server: "", timeout: 5, close: false, unset: false, noshake: true, error: true},