From b5e7ea8d9eb08a0b1496aee51695717da735823e Mon Sep 17 00:00:00 2001 From: LZiHaN Date: Thu, 2 Jan 2025 11:41:24 +0800 Subject: [PATCH] fix ci --- receiver/sqlserverreceiver/config_test.go | 6 ++++++ receiver/sqlserverreceiver/testdata/config.yaml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/receiver/sqlserverreceiver/config_test.go b/receiver/sqlserverreceiver/config_test.go index 28cff062fe89..220f41b60ea2 100644 --- a/receiver/sqlserverreceiver/config_test.go +++ b/receiver/sqlserverreceiver/config_test.go @@ -112,6 +112,12 @@ func TestLoadConfig(t *testing.T) { SqlserverComputerName: metadata.ResourceAttributeConfig{ Enabled: true, }, + ServerAddress: metadata.ResourceAttributeConfig{ + Enabled: true, + }, + ServerPort: metadata.ResourceAttributeConfig{ + Enabled: true, + }, }, } expected.ComputerName = "CustomServer" diff --git a/receiver/sqlserverreceiver/testdata/config.yaml b/receiver/sqlserverreceiver/testdata/config.yaml index 783bfbb17ae7..3a9f6b2961ec 100644 --- a/receiver/sqlserverreceiver/testdata/config.yaml +++ b/receiver/sqlserverreceiver/testdata/config.yaml @@ -10,3 +10,5 @@ sqlserver/named: enabled: true sqlserver.instance.name: enabled: true + server.port: + enabled: true