Skip to content
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

Merged
merged 14 commits into from
Feb 19, 2019
Merged

Conversation

CedricMoreau
Copy link
Contributor

No description provided.


Describe "Set-ArubaSWDns" {
It "Set ArubaSWDns ip server 1" {
Set-ArubaSWDns -mode Manual -server1 10.44.1.1
Copy link
Collaborator

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

}

It "Set ArubaSWDns dns domain names" {
Set-ArubaSWDns -mode Manual -server1 10.44.1.1 -server2 8.8.8.8 -domain test,tttt
Copy link
Collaborator

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...)

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"
Copy link
Collaborator

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 ?

Copy link
Collaborator

@alagoutte alagoutte left a 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 ?

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"
Copy link
Collaborator

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
}
}

Copy link
Collaborator

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 ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

always valid request

# SPDX-License-Identifier: Apache-2.0
#

../common.ps1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing a . before


../common.ps1

$mysecpassword = ConvertTo-SecureString $password -AsPlainText -Force
Copy link
Collaborator

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)

Copy link
Collaborator

@alagoutte alagoutte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need some fix...

@alagoutte alagoutte force-pushed the test-dns branch 2 times, most recently from 4844ef9 to f7978b4 Compare February 18, 2019 15:49
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
@alagoutte alagoutte added this to the v0.7 milestone Feb 18, 2019
@alagoutte alagoutte merged commit eae5c5c into PowerAruba:master Feb 19, 2019
alagoutte added a commit to alagoutte/PowerArubaSW that referenced this pull request Feb 20, 2019
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)
alagoutte added a commit to alagoutte/PowerArubaSW that referenced this pull request Feb 21, 2019
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)
@alagoutte alagoutte mentioned this pull request Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants