mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 20:13:59 -07:00
Reorganize integration tests:
- Move legacy tests into a separate directory. - Reduce common dependencies between targets.
This commit is contained in:
parent
896c4b42ba
commit
781fd7099a
513 changed files with 111 additions and 6 deletions
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
testcase: "*"
|
||||
test_cases: []
|
||||
|
||||
nitro_user: nsroot
|
||||
nitro_pass: nsroot
|
5
test/legacy/roles/netscaler_lb_vserver/sample_inventory
Normal file
5
test/legacy/roles/netscaler_lb_vserver/sample_inventory
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
|
||||
[netscaler]
|
||||
|
||||
netscaler01 nsip=172.18.0.2 nitro_user=nsroot nitro_pass=nsroot
|
7
test/legacy/roles/netscaler_lb_vserver/tasks/main.yaml
Normal file
7
test/legacy/roles/netscaler_lb_vserver/tasks/main.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
|
||||
- include: testbed_setup.yaml state=present
|
||||
|
||||
- { include: nitro.yaml, tags: ['nitro'] }
|
||||
|
||||
- include: testbed_setup.yaml state=absent
|
14
test/legacy/roles/netscaler_lb_vserver/tasks/nitro.yaml
Normal file
14
test/legacy/roles/netscaler_lb_vserver/tasks/nitro.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
- name: collect all nitro test cases
|
||||
find:
|
||||
paths: "{{ role_path }}/tests/nitro"
|
||||
patterns: "{{ testcase }}.yaml"
|
||||
register: test_cases
|
||||
|
||||
- name: set test_items
|
||||
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
|
||||
|
||||
- name: run test case
|
||||
include: "{{ test_case_to_run }}"
|
||||
with_items: "{{ test_items }}"
|
||||
loop_control:
|
||||
loop_var: test_case_to_run
|
|
@ -0,0 +1,78 @@
|
|||
---
|
||||
|
||||
- name: Setup server
|
||||
delegate_to: localhost
|
||||
netscaler_server:
|
||||
nsip: "{{ nsip }}"
|
||||
nitro_user: "{{ nitro_user }}"
|
||||
nitro_pass: "{{ nitro_pass }}"
|
||||
|
||||
state: "{{ state }}"
|
||||
name: "server-{{ item }}"
|
||||
ipaddress: "192.168.1.{{ item }}"
|
||||
with_sequence: count=6
|
||||
|
||||
|
||||
- name: Setup http service
|
||||
delegate_to: localhost
|
||||
netscaler_service:
|
||||
nsip: "{{ nsip }}"
|
||||
nitro_user: "{{ nitro_user }}"
|
||||
nitro_pass: "{{ nitro_pass }}"
|
||||
|
||||
state: "{{ state }}"
|
||||
name: "service-http-{{ item }}"
|
||||
servername: "server-{{ item }}"
|
||||
servicetype: HTTP
|
||||
port: 80
|
||||
with_sequence: count=2
|
||||
|
||||
- name: Setup service group
|
||||
delegate_to: localhost
|
||||
netscaler_servicegroup:
|
||||
nsip: "{{ nsip }}"
|
||||
nitro_user: "{{ nitro_user }}"
|
||||
nitro_pass: "{{ nitro_pass }}"
|
||||
|
||||
state: "{{ state }}"
|
||||
servicegroupname: service-group-1
|
||||
servicetype: HTTP
|
||||
servicemembers:
|
||||
- servername: server-3
|
||||
port: 80
|
||||
weight: 50
|
||||
- servername: server-4
|
||||
port: 80
|
||||
weight: 50
|
||||
|
||||
- name: Setup service group
|
||||
delegate_to: localhost
|
||||
netscaler_servicegroup:
|
||||
nsip: "{{ nsip }}"
|
||||
nitro_user: "{{ nitro_user }}"
|
||||
nitro_pass: "{{ nitro_pass }}"
|
||||
|
||||
state: "{{ state }}"
|
||||
servicegroupname: service-group-2
|
||||
servicetype: HTTP
|
||||
servicemembers:
|
||||
- servername: server-5
|
||||
port: 80
|
||||
weight: 50
|
||||
- servername: server-6
|
||||
port: 80
|
||||
weight: 50
|
||||
|
||||
- name: Setup push vserver
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nsip: "{{ nsip }}"
|
||||
nitro_user: "{{ nitro_user }}"
|
||||
nitro_pass: "{{ nitro_pass }}"
|
||||
|
||||
state: "{{ state }}"
|
||||
|
||||
name: lb-vserver-push
|
||||
port: 80
|
||||
servicetype: PUSH
|
||||
ipv46: 193.1.1.1
|
|
@ -0,0 +1,57 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_any/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_any/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_any/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_any/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_any/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_any/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_any/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_any/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-4
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-4
|
||||
ipv46: 10.79.1.4
|
||||
port: 80
|
||||
servicetype: ANY
|
||||
connfailover: STATELESS
|
||||
skippersistency: None
|
|
@ -0,0 +1,57 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_dns/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_dns/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_dns/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_dns/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_dns/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_dns/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_dns/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_dns/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-8
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-8
|
||||
ipv46: 10.79.1.8
|
||||
port: 80
|
||||
servicetype: DNS
|
||||
|
||||
recursionavailable: no
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_flap_disabled/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_flap_disabled/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-flap
|
|
@ -0,0 +1,47 @@
|
|||
---
|
||||
|
||||
- name: flap http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-flap
|
||||
ipv46: 10.79.1.2
|
||||
port: 80
|
||||
servicetype: HTTP
|
||||
servicebindings:
|
||||
- servicename: service-http-1
|
||||
weight: 50
|
||||
- servicename: service-http-2
|
||||
weight: 50
|
||||
|
||||
disabled: "{{ item|int % 2 }}"
|
||||
with_sequence: count=20
|
||||
delay: 1
|
||||
|
||||
- name: flap http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-flap
|
||||
ipv46: 10.79.1.2
|
||||
port: 80
|
||||
servicetype: HTTP
|
||||
servicebindings:
|
||||
- servicename: service-http-1
|
||||
weight: 50
|
||||
- servicename: service-http-2
|
||||
weight: 50
|
||||
|
||||
disabled: "{{ item|int % 2 }}"
|
||||
with_sequence: count=20
|
||||
delay: 5
|
|
@ -0,0 +1,85 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_http/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_http/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_http/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_http/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_http/update.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_http/update.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_http/update.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_http/update.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_http/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_http/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_http/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_http/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-1
|
|
@ -0,0 +1,71 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
|
||||
name: lb-vserver-1
|
||||
ipv46: 10.79.1.1
|
||||
port: 80
|
||||
range: 2
|
||||
servicetype: HTTP
|
||||
persistencetype: COOKIEINSERT
|
||||
timeout: 100
|
||||
persistencebackup: SOURCEIP
|
||||
backuppersistencetimeout: 110
|
||||
lbmethod: URLHASH
|
||||
cookiename: COOKIE
|
||||
listenpolicy: "CLIENT.IP.DST.IN_SUBNET(192.0.2.0/24)"
|
||||
listenpriority: 66
|
||||
persistmask: 255.255.0.0
|
||||
v6persistmasklen: 64
|
||||
m: IP
|
||||
tosid: 6
|
||||
sessionless: disabled
|
||||
redirurl: http://somewhere.com
|
||||
cacheable: no
|
||||
clttimeout: 111
|
||||
somethod: CONNECTION
|
||||
sopersistence: disabled
|
||||
sopersistencetimeout: 222
|
||||
sothreshold: 4096
|
||||
healththreshold: 55
|
||||
sobackupaction: DROP
|
||||
redirectportrewrite: disabled
|
||||
downstateflush: disabled
|
||||
disableprimaryondown: disabled
|
||||
insertvserveripport: VIPADDR
|
||||
vipheader: vip
|
||||
authenticationhost: authenticate.me
|
||||
authentication: off
|
||||
authn401: off
|
||||
authnvsname: somename
|
||||
push: disabled
|
||||
pushmulticlients: no
|
||||
comment: Vserver comment
|
||||
l2conn: "OFF"
|
||||
appflowlog: disabled
|
||||
icmpvsrresponse: PASSIVE
|
||||
rhistate: PASSIVE
|
||||
newservicerequest: 11
|
||||
newservicerequestunit: PER_SECOND
|
||||
newservicerequestincrementinterval: 5
|
||||
minautoscalemembers: 8
|
||||
maxautoscalemembers: 10
|
||||
macmoderetainvlan: disabled
|
||||
dns64: disabled
|
||||
bypassaaaa: no
|
||||
processlocal: disabled
|
||||
backuplbmethod: LEASTCONNECTION
|
||||
hashlength: 100
|
||||
servicebindings:
|
||||
- servicename: service-http-1
|
||||
weight: 50
|
||||
- servicename: service-http-2
|
||||
weight: 50
|
|
@ -0,0 +1,71 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
|
||||
name: lb-vserver-1
|
||||
ipv46: 10.79.1.1
|
||||
port: 80
|
||||
range: 2
|
||||
servicetype: HTTP
|
||||
persistencetype: COOKIEINSERT
|
||||
timeout: 100
|
||||
persistencebackup: SOURCEIP
|
||||
backuppersistencetimeout: 110
|
||||
lbmethod: URLHASH
|
||||
cookiename: COOKIE
|
||||
listenpolicy: "CLIENT.IP.DST.IN_SUBNET(192.0.2.0/24)"
|
||||
listenpriority: 66
|
||||
persistmask: 255.255.0.0
|
||||
v6persistmasklen: 64
|
||||
m: IP
|
||||
tosid: 6
|
||||
sessionless: disabled
|
||||
redirurl: http://somewhere.com
|
||||
cacheable: no
|
||||
clttimeout: 222
|
||||
somethod: CONNECTION
|
||||
sopersistence: disabled
|
||||
sopersistencetimeout: 222
|
||||
sothreshold: 4096
|
||||
healththreshold: 55
|
||||
sobackupaction: DROP
|
||||
redirectportrewrite: disabled
|
||||
downstateflush: disabled
|
||||
disableprimaryondown: disabled
|
||||
insertvserveripport: VIPADDR
|
||||
vipheader: vip
|
||||
authenticationhost: authenticate.me
|
||||
authentication: off
|
||||
authn401: off
|
||||
authnvsname: somename
|
||||
push: disabled
|
||||
pushmulticlients: no
|
||||
comment: Vserver comment
|
||||
l2conn: "OFF"
|
||||
appflowlog: disabled
|
||||
icmpvsrresponse: PASSIVE
|
||||
rhistate: PASSIVE
|
||||
newservicerequest: 11
|
||||
newservicerequestunit: PER_SECOND
|
||||
newservicerequestincrementinterval: 5
|
||||
minautoscalemembers: 8
|
||||
maxautoscalemembers: 10
|
||||
macmoderetainvlan: disabled
|
||||
dns64: disabled
|
||||
bypassaaaa: no
|
||||
processlocal: disabled
|
||||
backuplbmethod: LEASTCONNECTION
|
||||
hashlength: 100
|
||||
servicebindings:
|
||||
- servicename: service-http-1
|
||||
weight: 60
|
||||
- servicename: service-http-2
|
||||
weight: 40
|
|
@ -0,0 +1,57 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_iphash/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_iphash/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_iphash/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_iphash/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_iphash/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_iphash/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_iphash/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_iphash/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-10
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-10
|
||||
port: 80
|
||||
servicetype: HTTP
|
||||
lbmethod: DESTINATIONIPHASH
|
||||
netmask: 255.255.255.0
|
||||
ippattern: 10.68.0.0
|
||||
ipmask: 255.255.0.0
|
||||
v6netmasklen: 24
|
|
@ -0,0 +1,57 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_ippattern/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_ippattern/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_ippattern/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_ippattern/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_ippattern/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_ippattern/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_ippattern/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_ippattern/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-9
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-9
|
||||
port: 80
|
||||
servicetype: HTTP
|
||||
ippattern: 10.67.0.0
|
||||
ipmask: 255.255.0.0
|
|
@ -0,0 +1,57 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mssql/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mssql/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mssql/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mssql/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mssql/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mssql/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mssql/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mssql/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-6
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-6
|
||||
ipv46: 10.79.1.6
|
||||
port: 80
|
||||
servicetype: MSSQL
|
||||
mssqlserverversion: 2000
|
|
@ -0,0 +1,57 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mysql/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mysql/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mysql/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mysql/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mysql/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mysql/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mysql/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_mysql/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-7
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-7
|
||||
ipv46: 10.79.1.7
|
||||
port: 80
|
||||
servicetype: MYSQL
|
||||
|
||||
mysqlprotocolversion: 2
|
||||
mysqlserverversion: 10
|
||||
mysqlcharacterset: 8
|
||||
mysqlservercapabilities: 244
|
||||
|
||||
dbslb: disabled
|
|
@ -0,0 +1,57 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_oracle/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_oracle/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_oracle/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_oracle/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_oracle/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_oracle/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_oracle/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_oracle/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-5
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-5
|
||||
ipv46: 10.79.1.5
|
||||
port: 80
|
||||
servicetype: ORACLE
|
||||
oracleserverversion: 10G
|
|
@ -0,0 +1,57 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_push/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_push/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_push/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_push/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_push/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_push/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_push/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_push/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-11
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-11
|
||||
port: 80
|
||||
servicetype: HTTP
|
||||
lbmethod: DESTINATIONIPHASH
|
||||
netmask: 255.255.255.0
|
||||
ippattern: 10.69.0.0
|
||||
ipmask: 255.255.0.0
|
||||
v6netmasklen: 24
|
||||
pushvserver: lb-vserver-push
|
||||
pushlabel: none
|
|
@ -0,0 +1,57 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_rtspnat/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_rtspnat/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_rtspnat/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_rtspnat/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_rtspnat/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_rtspnat/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_rtspnat/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_rtspnat/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-3
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
|
||||
name: lb-vserver-3
|
||||
ipv46: 10.79.1.3
|
||||
port: 80
|
||||
servicetype: TCP
|
||||
|
||||
lbmethod: TOKEN
|
||||
datalength: 20
|
||||
dataoffset: 5
|
|
@ -0,0 +1,132 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/update.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/update.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/update.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/update.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/update_service.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/update_service.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/update_service.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/update_service.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/update.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/update.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/update.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/update.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_servicegroup/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-20
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-20
|
||||
ipv46: 10.79.1.8
|
||||
port: 80
|
||||
servicetype: HTTP
|
||||
servicegroupbindings:
|
||||
- servicegroupname: service-group-1
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-20
|
||||
ipv46: 10.79.1.8
|
||||
port: 80
|
||||
servicetype: HTTP
|
||||
servicegroupbindings:
|
||||
- servicegroupname: service-group-2
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-20
|
||||
ipv46: 10.79.1.8
|
||||
port: 80
|
||||
servicetype: HTTP
|
||||
servicebindings:
|
||||
- servicename: service-http-1
|
||||
weight: 50
|
||||
- servicename: service-http-2
|
||||
weight: 50
|
|
@ -0,0 +1,57 @@
|
|||
---
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_tcp/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_tcp/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_tcp/setup.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_tcp/setup.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_tcp/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_tcp/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_tcp/remove.yaml"
|
||||
vars:
|
||||
check_mode: yes
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
||||
|
||||
- include: "{{ role_path }}/tests/nitro/lb_vserver_tcp/remove.yaml"
|
||||
vars:
|
||||
check_mode: no
|
||||
|
||||
- assert:
|
||||
that: not result|changed
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- name: remove http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: absent
|
||||
name: lb-vserver-2
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
|
||||
- name: setup http lb vserver
|
||||
register: result
|
||||
check_mode: "{{ check_mode }}"
|
||||
delegate_to: localhost
|
||||
netscaler_lb_vserver:
|
||||
nitro_user: "{{nitro_user}}"
|
||||
nitro_pass: "{{nitro_pass}}"
|
||||
nsip: "{{nsip}}"
|
||||
state: present
|
||||
name: lb-vserver-2
|
||||
ipv46: 10.79.1.2
|
||||
port: 80
|
||||
servicetype: RTSP
|
||||
rtspnat: on
|
Loading…
Add table
Add a link
Reference in a new issue