From 0e1994b4724b6f6b352f4266224f4bf70326573e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Imie=C5=82owski?= Date: Fri, 27 Oct 2023 10:25:48 +0200 Subject: [PATCH] Fix tests --- commit/pano.go | 2 +- commit/pano_test.go | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/commit/pano.go b/commit/pano.go index a54c2fdb..96f340cd 100644 --- a/commit/pano.go +++ b/commit/pano.go @@ -225,8 +225,8 @@ type pcaDgInfoEntry struct { } type pcaTemplate struct { - Devices *util.MemberType `xml:"device"` Admins *util.MemberType `xml:"admin,omitempty"` + Devices *util.MemberType `xml:"device"` Name string `xml:"name"` Description string `xml:"description,omitempty"` ForceTemplateValues string `xml:"force-template-values"` diff --git a/commit/pano_test.go b/commit/pano_test.go index 523e40ca..c463cdd9 100644 --- a/commit/pano_test.go +++ b/commit/pano_test.go @@ -119,6 +119,7 @@ func TestPanoCommitAllDeviceGroup(t *testing.T) { "device group", "yes", "no", + "no", "", "", } @@ -142,10 +143,11 @@ func TestPanoCommitAllTemplate(t *testing.T) { s := []string{ "", "", "", } @@ -169,10 +171,11 @@ func TestPanoCommitAllTemplateStack(t *testing.T) { s := []string{ "", "", + "12321", "ts1", "template stack", - "12321", "yes", + "no", "", "", }