File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,37 @@ Describe "Netscaler Get-*" {
52
52
$Cert | Should Not BeNullOrEmpty
53
53
$Cert.certkey | Should Be " ns-server-certificate"
54
54
}
55
+
56
+ It " should list builtin responder policies" {
57
+ $Result = Get-NSResponderPolicy - ShowBuiltin
58
+
59
+ $Result | Should Not BeNullOrEmpty
60
+ # TODO: this is fragile, it probably depends on the NS version
61
+ $Result.Count | Should Be 6
62
+ }
63
+
64
+ It " should list builtin rewrite actions" {
65
+ $Result = Get-NSRewriteAction - ShowBuiltin
66
+
67
+ $Result | Should Not BeNullOrEmpty
68
+ # TODO: this is fragile, it probably depends on the NS version
69
+ $Result.Count | Should Be 45
70
+ }
71
+
72
+ It " should list builtin rewrite policies" {
73
+ $Result = Get-NSRewritePolicy - ShowBuiltin
74
+
75
+ $Result | Should Not BeNullOrEmpty
76
+ # TODO: this is fragile, it probably depends on the NS version
77
+ $Result.Count | Should Be 49
78
+ }
55
79
}
56
80
57
81
Describe " Netscaler" {
58
82
$Session = Connect-Netscaler - Hostname $Nsip - Credential $Credential - PassThru
59
83
60
84
61
- It " should add a server" {
85
+ It " should add a LB server" {
62
86
New-NSLBServer - Name ' srv-test' - IPAddress 1.2 .3.4
63
87
64
88
Compare-NSConfig $OldConf | Should Match " => add server srv-test 1.2.3.4"
You can’t perform that action at this time.
0 commit comments