summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_pim_interface
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/nxos_pim_interface')
-rw-r--r--test/integration/targets/nxos_pim_interface/defaults/main.yaml2
-rw-r--r--test/integration/targets/nxos_pim_interface/meta/main.yml2
-rw-r--r--test/integration/targets/nxos_pim_interface/tasks/cli.yaml27
-rw-r--r--test/integration/targets/nxos_pim_interface/tasks/main.yaml7
-rw-r--r--test/integration/targets/nxos_pim_interface/tasks/nxapi.yaml27
-rw-r--r--test/integration/targets/nxos_pim_interface/tests/common/sanity.yaml188
6 files changed, 0 insertions, 253 deletions
diff --git a/test/integration/targets/nxos_pim_interface/defaults/main.yaml b/test/integration/targets/nxos_pim_interface/defaults/main.yaml
deleted file mode 100644
index 5f709c5aac..0000000000
--- a/test/integration/targets/nxos_pim_interface/defaults/main.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-testcase: "*"
diff --git a/test/integration/targets/nxos_pim_interface/meta/main.yml b/test/integration/targets/nxos_pim_interface/meta/main.yml
deleted file mode 100644
index ae741cbdc7..0000000000
--- a/test/integration/targets/nxos_pim_interface/meta/main.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-dependencies:
- - prepare_nxos_tests
diff --git a/test/integration/targets/nxos_pim_interface/tasks/cli.yaml b/test/integration/targets/nxos_pim_interface/tasks/cli.yaml
deleted file mode 100644
index 9b62eaba65..0000000000
--- a/test/integration/targets/nxos_pim_interface/tasks/cli.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
----
-- name: collect common test cases
- find:
- paths: "{{ role_path }}/tests/common"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: test_cases
-
-- name: collect cli test cases
- find:
- paths: "{{ role_path }}/tests/cli"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: cli_cases
-
-- set_fact:
- test_cases:
- files: "{{ test_cases.files }} + {{ cli_cases.files }}"
-
-- name: set test_items
- set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
-
-- name: run test cases (connection=network_cli)
- include: "{{ test_case_to_run }} ansible_connection=network_cli connection={{ cli }}"
- with_items: "{{ test_items }}"
- loop_control:
- loop_var: test_case_to_run
diff --git a/test/integration/targets/nxos_pim_interface/tasks/main.yaml b/test/integration/targets/nxos_pim_interface/tasks/main.yaml
deleted file mode 100644
index fea9337c14..0000000000
--- a/test/integration/targets/nxos_pim_interface/tasks/main.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
----
-# Use block to ensure that both cli and nxapi tests
-# will run even if there are failures or errors.
-- block:
- - { include: cli.yaml, tags: ['cli'] }
- always:
- - { include: nxapi.yaml, tags: ['nxapi'] }
diff --git a/test/integration/targets/nxos_pim_interface/tasks/nxapi.yaml b/test/integration/targets/nxos_pim_interface/tasks/nxapi.yaml
deleted file mode 100644
index cbf41b9294..0000000000
--- a/test/integration/targets/nxos_pim_interface/tasks/nxapi.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
----
-- name: collect common test cases
- find:
- paths: "{{ role_path }}/tests/common"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: test_cases
-
-- name: collect nxapi test cases
- find:
- paths: "{{ role_path }}/tests/nxapi"
- patterns: "{{ testcase }}.yaml"
- connection: local
- register: nxapi_cases
-
-- set_fact:
- test_cases:
- files: "{{ test_cases.files }} + {{ nxapi_cases.files }}"
-
-- name: set test_items
- set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
-
-- name: run test cases (connection=httpapi)
- include: "{{ test_case_to_run }} ansible_connection=httpapi connection={{ nxapi }}"
- with_items: "{{ test_items }}"
- loop_control:
- loop_var: test_case_to_run
diff --git a/test/integration/targets/nxos_pim_interface/tests/common/sanity.yaml b/test/integration/targets/nxos_pim_interface/tests/common/sanity.yaml
deleted file mode 100644
index 90d8a6d2fb..0000000000
--- a/test/integration/targets/nxos_pim_interface/tests/common/sanity.yaml
+++ /dev/null
@@ -1,188 +0,0 @@
----
-- debug: msg="START connection={{ ansible_connection }} nxos_pim_interface sanity test"
-
-- name: "Setup: Disable features"
- nxos_feature: &disable_feature
- feature: "{{ item }}"
- state: disabled
- loop: ['pim', 'bfd']
- ignore_errors: yes
-
-- name: "Setup: Enable features"
- nxos_feature:
- feature: "{{ item }}"
- state: enabled
- loop: ['pim', 'bfd']
-
-- set_fact: testint="{{ nxos_int1 }}"
-
-- name: "Setup: Put interface {{ testint }} into a default state"
- nxos_config:
- lines:
- - "default interface {{ testint }}"
- ignore_errors: yes
-
-- name: "Ensure {{testint}} is layer3"
- nxos_interface:
- interface: "{{ testint }}"
- mode: layer3
- description: 'Configured by Ansible - Layer3'
- admin_state: 'up'
- state: present
-
-- block:
- - name: Configure nxos_pim_interface state absent
- nxos_pim_interface: &pimabsent
- interface: "{{ testint }}"
- state: absent
-
- - name: configure jp policy and type
- nxos_pim_interface: &configjp
- interface: "{{ testint }}"
- jp_policy_in: JPIN
- jp_policy_out: JPOUT
- jp_type_in: routemap
- jp_type_out: routemap
- sparse: True
- border: True
- register: result
-
- - assert: &true
- that:
- - "result.changed == true"
-
- - name: Check idempotence
- nxos_pim_interface: *configjp
- register: result
-
- - assert: &false
- that:
- - "result.changed == false"
-
- - name: configure neighbor policy and rm
- nxos_pim_interface: &confignpr
- interface: "{{ testint }}"
- neighbor_policy: NPR
- neighbor_type: routemap
- register: result
-
- - assert: *true
-
- - name: Check idempotence
- nxos_pim_interface: *confignpr
- register: result
-
- - assert: *false
-
- - pause:
- seconds: 5
-
- - name: configure neighbor policy and prefix
- nxos_pim_interface: &confignpp
- interface: "{{ testint }}"
- neighbor_policy: NPPF
- neighbor_type: prefix
- register: result
-
- - assert: *true
-
- - name: Check idempotence
- nxos_pim_interface: *confignpp
- register: result
-
- - assert: *false
-
- - name: configure hello_auth_key
- nxos_pim_interface: &confighak1
- interface: "{{ testint }}"
- hello_auth_key: password1
- register: result
-
- - assert: *true
-
- - name: configure pim other params
- nxos_pim_interface: &configo
- interface: "{{ testint }}"
- dr_prio: 10
- hello_interval: 40
- sparse: True
- border: True
- bfd: enable
- state: present
- register: result
-
- - assert: *true
-
- - name: Check idempotence
- nxos_pim_interface: *configo
- register: result
-
- - assert: *false
-
- - name: configure negative
- nxos_pim_interface: &configno
- interface: "{{ testint }}"
- sparse: False
- border: False
- bfd: disable
- state: present
- register: result
-
- - assert: *true
-
- - name: Check idempotence
- nxos_pim_interface: *configno
- register: result
-
- - assert: *false
-
- - pause:
- seconds: 5
-
- - name: configure state default
- nxos_pim_interface: &configdefault
- interface: "{{ testint }}"
- state: default
- register: result
-
- - assert: *true
-
- - name: Check idempotence
- nxos_pim_interface: *configdefault
- register: result
-
- - assert: *false
-
- - name: configure border
- nxos_pim_interface: &configb
- interface: "{{ testint }}"
- border: True
- state: present
- register: result
-
- - assert: *true
-
- - name: Check idempotence
- nxos_pim_interface: *configb
- register: result
-
- - assert: *false
-
- - name: configure state absent
- nxos_pim_interface: *pimabsent
- register: result
-
- - assert: *true
-
- - name: Check idempotence
- nxos_pim_interface: *pimabsent
- register: result
-
- - assert: *false
-
- always:
- - name: "Disable feature PIM"
- nxos_feature: *disable_feature
- loop: ['pim', 'bfd']
-
-- debug: msg="END connection={{ ansible_connection }} nxos_pim_interface sanity test"