Skip to content

Commit 20c4d80

Browse files
committed
First shot a semi-automated Netscaler setup of integration testing
1 parent c9239a4 commit 20c4d80

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

ITTests/Simple.ITTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$Nsip = "172.16.124.10"
1+
$Nsip = "172.16.124.11"
22
$Username = "nsroot"
33
$Password = "nsroot"
44

TESTING.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Integration testing
2+
3+
## Setup a test netscaler
4+
5+
$Nsip = "172.16.124.11"
6+
$Snip = "172.16.124.111"
7+
$DnsIp = "172.16.124.1"
8+
$SubnetMask = "255.255.255.0"
9+
10+
11+
$SecurePassword = ConvertTo-SecureString "nsroot" -AsPlainText -Force
12+
$Credential = New-Object System.Management.Automation.PSCredential ("nsroot", $SecurePassword)
13+
Connect-Netscaler -Hostname $Nsip -Credential $Credential
14+
Add-NSIPResource -Type SNIP -IPAddress $Snip -SubnetMask $SubnetMask
15+
Set-NSHostname -Hostname ns-test -Force
16+
Add-NSDnsNameServer -IPAddress $DnsIp
17+
Set-NSTimeZone -TimeZone "GMT+01:00-CET-Europe/Paris" -Force
18+
Save-NSConfig
19+
(Invoke-Nitro -Action get -Type nshardware -Method get).nshardware.Hostname
20+
21+
# Get a license with the _Host ID_
22+
23+
Install-NSLicense -Path /Users/dom/Downloads/FID__26d05285_157049a9857_1935.lic -Session $Session
24+
Restart-NetScaler -Force

0 commit comments

Comments
 (0)