Skip to content

Commit

Permalink
test: updating ldap profile unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
shinmog committed Sep 23, 2022
1 parent bdca8e4 commit 31ef6b0
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 36 deletions.
15 changes: 15 additions & 0 deletions SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Community Supported

The software and templates in the repo are released under an as-is, best effort,
support policy. This software should be seen as community supported and Palo
Alto Networks will contribute our expertise as and when possible. We do not
provide technical support or help in using or troubleshooting the components of
the project through our normal support options such as Palo Alto Networks
support teams, or ASC (Authorized Support Centers) partners and backline support
options. The underlying product used (the VM-Series firewall) by the scripts or
templates are still supported, but the support is only for the product
functionality and not for help in deploying or using the template or script
itself. Unless explicitly tagged, all projects or work posted in our GitHub
repository (at https://github.com/PaloAltoNetworks) or sites other than our
official Downloads page on https://support.paloaltonetworks.com are provided
under the best effort policy.
72 changes: 36 additions & 36 deletions dev/profile/ldap/testdata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,44 @@ type tc struct {
func getTests() []tc {
return []tc{
{"v1 no servers", version.Number{7, 0, 0, ""}, Entry{
Name: "v1 no servers",
AdminUseOnly: true,
LdapType: LdapTypeOther,
Ssl: false,
VerifyServerCertificate: true,
Disabled: false,
BaseDn: "baseDn",
BindDn: "bindDn",
Password: "secret",
BindTimeout: 1,
SearchTimeout: 2,
RetryInterval: 3,
Name: "v1 no servers",
AdminUseOnly: true,
LdapType: LdapTypeOther,
Ssl: false,
VerifyServerCertificate: true,
Disabled: false,
BaseDn: "baseDn",
BindDn: "bindDn",
Password: "secret",
BindTimeout: 1,
SearchTimeout: 2,
RetryInterval: 3,
}},
{"v1 with servers", version.Number{7, 0, 0, ""}, Entry{
Name: "v1 with servers",
AdminUseOnly: false,
LdapType: LdapTypeEdirectory,
Ssl: true,
VerifyServerCertificate: false,
Disabled: true,
BaseDn: "baseDn",
BindDn: "bindDn",
Password: "secret",
BindTimeout: 10,
SearchTimeout: 20,
RetryInterval: 30,
Servers: []Server{
{
Name: "first",
Server: "first.example.com",
Port: 123,
},
{
Name: "second",
Server: "second.example.com",
Port: 389,
},
},
Name: "v1 with servers",
AdminUseOnly: false,
LdapType: LdapTypeEdirectory,
Ssl: true,
VerifyServerCertificate: false,
Disabled: true,
BaseDn: "baseDn",
BindDn: "bindDn",
Password: "secret",
BindTimeout: 10,
SearchTimeout: 20,
RetryInterval: 30,
Servers: []Server{
{
Name: "first",
Server: "first.example.com",
Port: 123,
},
{
Name: "second",
Server: "second.example.com",
Port: 389,
},
},
}},
}
}

0 comments on commit 31ef6b0

Please sign in to comment.