From 7c243678708a29b70500b5721b5e953c786a20b3 Mon Sep 17 00:00:00 2001 From: colmsnowplow Date: Tue, 17 Sep 2024 18:02:52 +0100 Subject: [PATCH] Fix config test --- config/component_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/component_test.go b/config/component_test.go index 964a3771..d95bdb03 100644 --- a/config/component_test.go +++ b/config/component_test.go @@ -83,6 +83,7 @@ func TestCreateTargetComponentHCL(t *testing.T) { Headers: "", BasicAuthUsername: "", BasicAuthPassword: "", + EnableTLS: false, CertFile: "", KeyFile: "", CaFile: "", @@ -110,6 +111,7 @@ func TestCreateTargetComponentHCL(t *testing.T) { OAuth2ClientSecret: "myClientSecret", OAuth2RefreshToken: "myRefreshToken", OAuth2TokenURL: "https://my.auth.server/token", + EnableTLS: true, CertFile: "myLocalhost.crt", KeyFile: "myLocalhost.key", CaFile: "myRootCA.crt", @@ -151,6 +153,7 @@ func TestCreateTargetComponentHCL(t *testing.T) { SASLUsername: "", SASLPassword: "", SASLAlgorithm: "sha512", + EnableTLS: false, CertFile: "", KeyFile: "", CaFile: "", @@ -177,6 +180,7 @@ func TestCreateTargetComponentHCL(t *testing.T) { SASLUsername: "mySaslUsername", SASLPassword: "mySASLPassword", SASLAlgorithm: "sha256", + EnableTLS: true, CertFile: "myLocalhost.crt", KeyFile: "myLocalhost.key", CaFile: "myRootCA.crt",