From 33b5b5ce949c76c17786e71e9dc933443b294e15 Mon Sep 17 00:00:00 2001 From: Boris Glimcher Date: Thu, 20 Jun 2024 04:11:23 +0300 Subject: [PATCH] test: getserialnumber via smbios Signed-off-by: Boris Glimcher --- sztp-agent/pkg/secureagent/agent_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sztp-agent/pkg/secureagent/agent_test.go b/sztp-agent/pkg/secureagent/agent_test.go index 32a17180..41ba21a3 100644 --- a/sztp-agent/pkg/secureagent/agent_test.go +++ b/sztp-agent/pkg/secureagent/agent_test.go @@ -393,6 +393,20 @@ func TestAgent_GetSerialNumber(t *testing.T) { }, want: "testSerialNumber", }, + { + name: "Test SMBIOS GetSerialNumber ", + fields: fields{ + BootstrapURL: "test", + SerialNumber: "", + DevicePassword: "test", + DevicePrivateKey: "test", + DeviceEndEntityCert: "test", + BootstrapTrustAnchorCert: "test", + ContentTypeReq: "test", + InputJSONContent: "test", + }, + want: "", + }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {