-
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.
integration tests for sslprofile_sslcipher_binding added
- Loading branch information
1 parent
deee981
commit 437191b
Showing
4 changed files
with
199 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gather_facts/no |
144 changes: 144 additions & 0 deletions
144
tests/integration/targets/sslprofile_sslcipher_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,144 @@ | ||
--- | ||
- name: Include prerequisite tasks | ||
ansible.builtin.include_tasks: setup.yaml | ||
|
||
- name: SSLPROFILE_SSLCIPHER_BINDING | ADD | --check | ||
delegate_to: localhost | ||
register: result | ||
check_mode: true | ||
tags: test | ||
netscaler.adc.sslprofile_sslcipher_binding: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
state: present | ||
name: "test-sslprofile" | ||
ciphername: "TLSv1.3" | ||
cipherpriority: 1 | ||
|
||
- name: Assert | SSLPROFILE_SSLCIPHER_BINDING | ADD | --check | ||
tags: test | ||
ansible.builtin.assert: | ||
that: | ||
- "result.failed==false" | ||
- "result.changed==true" | ||
|
||
- name: SSLPROFILE_SSLCIPHER_BINDING | ADD | ||
delegate_to: localhost | ||
register: result | ||
check_mode: false | ||
tags: test | ||
netscaler.adc.sslprofile_sslcipher_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 | ||
name: "test-sslprofile" | ||
ciphername: "TLSv1.3" | ||
cipherpriority: 1 | ||
|
||
- name: Assert | SSLPROFILE_SSLCIPHER_BINDING | ADD | ||
ansible.builtin.assert: | ||
that: | ||
- "result.failed==false" | ||
- "result.changed==true" | ||
|
||
- name: SSLPROFILE_SSLCIPHER_BINDING | ADD | idempotent | ||
delegate_to: localhost | ||
register: result | ||
check_mode: false | ||
tags: test | ||
netscaler.adc.sslprofile_sslcipher_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 | ||
name: "test-sslprofile" | ||
ciphername: "TLSv1.3" | ||
cipherpriority: 1 | ||
|
||
- name: Assert | SSLPROFILE_SSLCIPHER_BINDING | ADD | idempotent | ||
tags: test | ||
ansible.builtin.assert: | ||
that: | ||
- "result.failed==false" | ||
- "result.changed==false" | ||
|
||
- name: SSLPROFILE_SSLCIPHER_BINDING | DELETE | --check | ||
delegate_to: localhost | ||
register: result | ||
check_mode: true | ||
tags: test | ||
netscaler.adc.sslprofile_sslcipher_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 | ||
name: "test-sslprofile" | ||
ciphername: "TLSv1.3" | ||
cipherpriority: 1 | ||
|
||
- name: Assert | SSLPROFILE_SSLCIPHER_BINDING | DELETE | --check | ||
tags: test | ||
ansible.builtin.assert: | ||
that: | ||
- "result.failed==false" | ||
- "result.changed==true" | ||
|
||
- name: SSLPROFILE_SSLCIPHER_BINDING | DELETE | ||
delegate_to: localhost | ||
register: result | ||
check_mode: false | ||
tags: test | ||
netscaler.adc.sslprofile_sslcipher_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 | ||
name: "test-sslprofile" | ||
ciphername: "TLSv1.3" | ||
cipherpriority: 1 | ||
- name: Assert | SSLPROFILE_SSLCIPHER_BINDING | DELETE | ||
ansible.builtin.assert: | ||
that: | ||
- "result.failed==false" | ||
- "result.changed==true" | ||
- name: SSLPROFILE_SSLCIPHER_BINDING | DELETE | idempotent | ||
delegate_to: localhost | ||
register: result | ||
check_mode: false | ||
tags: test | ||
netscaler.adc.sslprofile_sslcipher_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 | ||
name: "test-sslprofile" | ||
ciphername: "TLSv1.3" | ||
cipherpriority: 1 | ||
- name: Assert | SSLPROFILE_SSLCIPHER_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 |
27 changes: 27 additions & 0 deletions
27
tests/integration/targets/sslprofile_sslcipher_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,27 @@ | ||
--- | ||
- name: Enable default profile in SSLPARAMETER | ADD | ||
delegate_to: localhost | ||
register: result | ||
check_mode: false | ||
tags: test | ||
netscaler.adc.sslparameter: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
defaultprofile: ENABLED | ||
|
||
- name: SSLPROFILE | ADD | ||
delegate_to: localhost | ||
register: result | ||
check_mode: false | ||
tags: test | ||
netscaler.adc.sslprofile: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
state: present | ||
name: "test-sslprofile" |
27 changes: 27 additions & 0 deletions
27
tests/integration/targets/sslprofile_sslcipher_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,27 @@ | ||
--- | ||
# - name: DISABLE default profile in SSLPARAMETER | DELETE | ||
# delegate_to: localhost | ||
# register: result | ||
# check_mode: false | ||
# tags: test | ||
# netscaler.adc.sslparameter: | ||
# nsip: "{{ nsip }}" | ||
# nitro_user: "{{ nitro_user }}" | ||
# nitro_pass: "{{ nitro_pass }}" | ||
# nitro_protocol: "{{ nitro_protocol }}" | ||
# validate_certs: "{{ validate_certs }}" | ||
# defaultprofile: DISABLED | ||
|
||
- name: SSLPROFILE | DELETE | ||
delegate_to: localhost | ||
register: result | ||
check_mode: false | ||
tags: test | ||
netscaler.adc.sslprofile: | ||
nsip: "{{ nsip }}" | ||
nitro_user: "{{ nitro_user }}" | ||
nitro_pass: "{{ nitro_pass }}" | ||
nitro_protocol: "{{ nitro_protocol }}" | ||
validate_certs: "{{ validate_certs }}" | ||
state: absent | ||
name: "test-sslprofile" |