Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pimielowski committed Oct 27, 2023
1 parent 4258f9a commit 0e1994b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commit/pano.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
7 changes: 5 additions & 2 deletions commit/pano_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func TestPanoCommitAllDeviceGroup(t *testing.T) {
"<description>device group</description>",
"<include-template>yes</include-template>",
"<force-template-values>no</force-template-values>",
"<validate-only>no</validate-only>",
"</shared-policy>",
"</commit-all>",
}
Expand All @@ -142,10 +143,11 @@ func TestPanoCommitAllTemplate(t *testing.T) {
s := []string{
"<commit-all>",
"<template>",
"<device><member>12321</member></device>",
"<name>tmpl1</name>",
"<description>template</description>",
"<device><member>12321</member></device>",
"<force-template-values>yes</force-template-values>",
"<validate-only>no</validate-only>",
"</template>",
"</commit-all>",
}
Expand All @@ -169,10 +171,11 @@ func TestPanoCommitAllTemplateStack(t *testing.T) {
s := []string{
"<commit-all>",
"<template-stack>",
"<device><member>12321</member></device>",
"<name>ts1</name>",
"<description>template stack</description>",
"<device><member>12321</member></device>",
"<force-template-values>yes</force-template-values>",
"<validate-only>no</validate-only>",
"</template-stack>",
"</commit-all>",
}
Expand Down

0 comments on commit 0e1994b

Please sign in to comment.