-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #359 from netscaler/issue-352-lbvserver_servicegro…
…up_binding issue 352 lbvserver servicegroup binding
- Loading branch information
Showing
7 changed files
with
227 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
tests/integration/targets/lbvserver_servicegroup_binding/aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gather_facts/no | ||
netscaler/cpx/ | ||
netscaler/vpx/ |
135 changes: 135 additions & 0 deletions
135
tests/integration/targets/lbvserver_servicegroup_binding/tasks/main.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
--- | ||
- name: Include prerequisite tasks | ||
ansible.builtin.include_tasks: setup.yaml | ||
- name: LBVSERVER_SERVICEGROUP_BINDING | ADD | --check | ||
delegate_to: localhost | ||
register: result | ||
check_mode: true | ||
tags: test | ||
netscaler.adc.lbvserver_servicegroup_binding: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
save_config: "{{ save_config }}" | ||
state: present | ||
weight: 1 | ||
name: "{{ lb_name }}" | ||
servicename: "{{ servicegroup_name }}" | ||
- name: Assert | LBVSERVER_SERVICEGROUP_BINDING | ADD | --check | ||
tags: test | ||
ansible.builtin.assert: | ||
that: | ||
- "result.failed==false" | ||
- "result.changed==true" | ||
- name: LBVSERVER_SERVICEGROUP_BINDING | ADD | ||
delegate_to: localhost | ||
register: result | ||
check_mode: false | ||
tags: test | ||
netscaler.adc.lbvserver_servicegroup_binding: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
save_config: "{{ save_config }}" | ||
state: present | ||
weight: 1 | ||
name: "{{ lb_name }}" | ||
servicename: "{{ servicegroup_name }}" | ||
- name: Assert | LBVSERVER_SERVICEGROUP_BINDING | ADD | ||
ansible.builtin.assert: | ||
that: | ||
- "result.failed==false" | ||
- "result.changed==true" | ||
- name: LBVSERVER_SERVICEGROUP_BINDING | ADD | idempotent | ||
delegate_to: localhost | ||
register: result | ||
check_mode: false | ||
tags: test | ||
netscaler.adc.lbvserver_servicegroup_binding: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
save_config: "{{ save_config }}" | ||
state: present | ||
weight: 1 | ||
name: "{{ lb_name }}" | ||
servicename: "{{ servicegroup_name }}" | ||
- name: Assert | LBVSERVER_SERVICEGROUP_BINDING | ADD | idempotent | ||
tags: test | ||
ansible.builtin.assert: | ||
that: | ||
- "result.failed==false" | ||
- "result.changed==true" | ||
- name: LBVSERVER_SERVICEGROUP_BINDING | DELETE | --check | ||
delegate_to: localhost | ||
register: result | ||
check_mode: true | ||
tags: test | ||
netscaler.adc.lbvserver_servicegroup_binding: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
save_config: "{{ save_config }}" | ||
state: absent | ||
weight: 1 | ||
name: "{{ lb_name }}" | ||
servicename: "{{ servicegroup_name }}" | ||
- name: Assert | LBVSERVER_SERVICEGROUP_BINDING | DELETE | --check | ||
tags: test | ||
ansible.builtin.assert: | ||
that: | ||
- "result.failed==false" | ||
- "result.changed==true" | ||
- name: LBVSERVER_SERVICEGROUP_BINDING | DELETE | ||
delegate_to: localhost | ||
register: result | ||
check_mode: false | ||
tags: test | ||
netscaler.adc.lbvserver_servicegroup_binding: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
save_config: "{{ save_config }}" | ||
state: absent | ||
weight: 1 | ||
name: "{{ lb_name }}" | ||
servicename: "{{ servicegroup_name }}" | ||
- name: Assert | LBVSERVER_SERVICEGROUP_BINDING | DELETE | ||
ansible.builtin.assert: | ||
that: | ||
- "result.failed==false" | ||
- "result.changed==true" | ||
- name: LBVSERVER_SERVICEGROUP_BINDING | DELETE | idempotent | ||
delegate_to: localhost | ||
register: result | ||
check_mode: false | ||
tags: test | ||
netscaler.adc.lbvserver_servicegroup_binding: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
save_config: "{{ save_config }}" | ||
state: absent | ||
weight: 1 | ||
name: "{{ lb_name }}" | ||
servicename: "{{ servicegroup_name }}" | ||
- name: Assert | LBVSERVER_SERVICEGROUP_BINDING | DELETE | idempotent | ||
tags: test | ||
ansible.builtin.assert: | ||
that: | ||
- "result.failed==false" | ||
- "result.changed==false" | ||
- name: Include prerequisite tasks | ||
ansible.builtin.include_tasks: teardown.yaml |
25 changes: 25 additions & 0 deletions
25
tests/integration/targets/lbvserver_servicegroup_binding/tasks/setup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
- name: Create a lb | ||
delegate_to: localhost | ||
netscaler.adc.lbvserver: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
save_config: "{{ save_config }}" | ||
state: present | ||
name: "{{ lb_name }}" | ||
servicetype: SSL | ||
- name: Create a servicegroup | ||
delegate_to: localhost | ||
netscaler.adc.servicegroup: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
save_config: "{{ save_config }}" | ||
state: present | ||
servicegroupname: "{{ servicegroup_name }}" | ||
servicetype: SSL |
25 changes: 25 additions & 0 deletions
25
tests/integration/targets/lbvserver_servicegroup_binding/tasks/teardown.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
- name: Create a servicegroup | ||
delegate_to: localhost | ||
netscaler.adc.servicegroup: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
save_config: "{{ save_config }}" | ||
state: absent | ||
servicegroupname: "{{ servicegroup_name }}" | ||
servicetype: SSL | ||
- name: Create a lb | ||
delegate_to: localhost | ||
netscaler.adc.lbvserver: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
save_config: "{{ save_config }}" | ||
state: absent | ||
name: "{{ lb_name }}" | ||
servicetype: SSL |
3 changes: 3 additions & 0 deletions
3
tests/integration/targets/lbvserver_servicegroup_binding/vars/main.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
lb_name: test_lb | ||
servicegroup_name: test_sg |