-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test for DNS function #72
Conversation
Tests/integration/DNS.Tests.ps1
Outdated
|
||
Describe "Set-ArubaSWDns" { | ||
It "Set ArubaSWDns ip server 1" { | ||
Set-ArubaSWDns -mode Manual -server1 10.44.1.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use public DNS (Google, Cloudflare, Quad9) or private example network
Tests/integration/DNS.Tests.ps1
Outdated
} | ||
|
||
It "Set ArubaSWDns dns domain names" { | ||
Set-ArubaSWDns -mode Manual -server1 10.44.1.1 -server2 8.8.8.8 -domain test,tttt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set example domain name (example.org, example.com...)
Tests/integration/DNS.Tests.ps1
Outdated
It "Set ArubaSWDns dns domain names" { | ||
Set-ArubaSWDns -mode Manual -server1 10.44.1.1 -server2 8.8.8.8 -domain test,tttt | ||
$dns = Get-ArubaSWDns | ||
$dns.dns_domain_names | Should be "test,tttt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check also server1/server2 dns ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you merge with #73 ?
Tests/integration/DNS.Tests.ps1
Outdated
It "Set ArubaSWDns ip server 1" { | ||
Set-ArubaSWDns -mode Manual -server1 10.44.1.1 | ||
$dns = Get-ArubaSWDns | ||
$dns.server_1.octets | Should be "10.44.1.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check also the mode ?
Remove-ArubaSWDns -mode Manual -server1 none -server2 none | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a example with DHCP mode ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
always valid request
Tests/integration/DNS.Tests.ps1
Outdated
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
../common.ps1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing a . before
Tests/integration/DNS.Tests.ps1
Outdated
|
||
../common.ps1 | ||
|
||
$mysecpassword = ConvertTo-SecureString $password -AsPlainText -Force |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no needed.. (look other file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need some fix...
4844ef9
to
f7978b4
Compare
Cloudflare DNS (1.1.1.1) and Google DNS (8.8.8.8)
Check the .version for DNS server and change also it is NullOrEmpty when not configured
4 new cmdlets * Support of PowerShell (Core) 6 (tested on Linux/Ubuntu and MacOS) (PowerAruba#74) * new parameter (-SkipCertificateCheck) when want to connect using HTTPS to unsecure switch (with no valid certificate) (PowerAruba#74) * Adding DNS support (Get/Set/Remove DNS server and domain names)( PowerAruba#72 PowerAruba#73) * Fix using Get-ArubaSWSystemStatus with VSF/Stacked Switch (PowerAruba#75)
4 new cmdlets * Support of PowerShell (Core) 6 (tested on Linux/Ubuntu and MacOS) (PowerAruba#74) * new parameter (-SkipCertificateCheck) when want to connect using HTTPS to unsecure switch (with no valid certificate) (PowerAruba#74) * Adding DNS support (Get/Set/Remove DNS server and domain names)( PowerAruba#72 PowerAruba#73) * Fix using Get-ArubaSWSystemStatus with VSF/Stacked Switch (PowerAruba#75)
No description provided.