summaryrefslogtreecommitdiff
path: root/test/integration/targets/junos_lag_interfaces/tests/netconf
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/junos_lag_interfaces/tests/netconf')
-rw-r--r--test/integration/targets/junos_lag_interfaces/tests/netconf/_base_config.yaml12
-rw-r--r--test/integration/targets/junos_lag_interfaces/tests/netconf/_remove_config.yaml16
-rw-r--r--test/integration/targets/junos_lag_interfaces/tests/netconf/deleted.yaml86
-rw-r--r--test/integration/targets/junos_lag_interfaces/tests/netconf/merged.yaml62
-rw-r--r--test/integration/targets/junos_lag_interfaces/tests/netconf/overridden.yaml62
-rw-r--r--test/integration/targets/junos_lag_interfaces/tests/netconf/replaced.yaml70
6 files changed, 0 insertions, 308 deletions
diff --git a/test/integration/targets/junos_lag_interfaces/tests/netconf/_base_config.yaml b/test/integration/targets/junos_lag_interfaces/tests/netconf/_base_config.yaml
deleted file mode 100644
index b9c70d8494..0000000000
--- a/test/integration/targets/junos_lag_interfaces/tests/netconf/_base_config.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
----
-- debug:
- msg: "Start junos_lag_interfaces base config ansible_connection={{ ansible_connection }}"
-
-- name: Configure base lag interface
- junos_config:
- lines:
- - set interfaces ae1 description "Configured by Ansible"
- - set interfaces ae2 description "Configured by Ansible"
-
-- debug:
- msg: "End junos_lag_interfaces base config ansible_connection={{ ansible_connection }}"
diff --git a/test/integration/targets/junos_lag_interfaces/tests/netconf/_remove_config.yaml b/test/integration/targets/junos_lag_interfaces/tests/netconf/_remove_config.yaml
deleted file mode 100644
index 151b274834..0000000000
--- a/test/integration/targets/junos_lag_interfaces/tests/netconf/_remove_config.yaml
+++ /dev/null
@@ -1,16 +0,0 @@
----
-- debug:
- msg: "Start junos_lag_interfaces teardown ansible_connection={{ ansible_connection }}"
-
-- name: Remove interface config
- junos_config:
- lines:
- - delete interfaces ge-0/0/1
- - delete interfaces ge-0/0/2
- - delete interfaces ge-0/0/3
- - delete interfaces ge-0/0/4
- - delete interfaces ae1
- - delete interfaces ae2
-
-- debug:
- msg: "End junos_lag_interfaces teardown ansible_connection={{ ansible_connection }}"
diff --git a/test/integration/targets/junos_lag_interfaces/tests/netconf/deleted.yaml b/test/integration/targets/junos_lag_interfaces/tests/netconf/deleted.yaml
deleted file mode 100644
index 157ed3621f..0000000000
--- a/test/integration/targets/junos_lag_interfaces/tests/netconf/deleted.yaml
+++ /dev/null
@@ -1,86 +0,0 @@
----
-- debug:
- msg: "START junos_lag_interfaces deleted integration tests on connection={{ ansible_connection }}"
-
-- include_tasks: _remove_config.yaml
-- include_tasks: _base_config.yaml
-
-- set_fact:
- expected_deleted_1_output:
- - name: ae1
- members:
- - member: ge-0/0/1
- - member: ge-0/0/2
- mode: active
-
- expected_deleted_2_output: []
-
-- block:
- - name: Base LAG configuration
- junos_lag_interfaces: &initial
- config:
- - name: ae1
- members:
- - member: ge-0/0/1
- - member: ge-0/0/2
- mode: active
- - name: ae2
- link_protection: True
- members:
- - member: ge-0/0/3
- link_type: primary
- - member: ge-0/0/4
- link_type: backup
- mode: passive
- state: merged
-
- - name: Delete the provided configuration with the exisiting running configuration
- junos_lag_interfaces: &deleted
- config:
- - name: ae2
- state: deleted
- register: result
-
- - name: Assert the configuration is reflected on host
- assert:
- that:
- - "{{ expected_deleted_1_output | symmetric_difference(result['after']) |length == 0 }}"
-
- - name: Delete the provided configuration with the existing running configuration (IDEMPOTENT)
- junos_lag_interfaces: *deleted
- register: result
-
- - name: Assert that the previous task was idempotent
- assert:
- that:
- - "result['changed'] == false"
-
- - name: Configure initial state for lag interface
- junos_lag_interfaces: *initial
- register: result
-
- - name: Delete the provided configuration with the exisiting running configuration
- junos_lag_interfaces:
- state: deleted
- register: result
-
- - name: Assert the configuration is reflected on host
- assert:
- that:
- - "{{ expected_deleted_2_output | symmetric_difference(result['after']) |length == 0 }}"
-
- - name: Delete the provided configuration with the exisiting running configuration (IDEMPOTENT)
- junos_lag_interfaces:
- state: deleted
- register: result
-
- - name: Assert that the previous task was idempotent
- assert:
- that:
- - "result['changed'] == false"
-
- always:
- - include_tasks: _remove_config.yaml
-
-- debug:
- msg: "END junos_lag_interfaces deleted integration tests on connection={{ ansible_connection }}"
diff --git a/test/integration/targets/junos_lag_interfaces/tests/netconf/merged.yaml b/test/integration/targets/junos_lag_interfaces/tests/netconf/merged.yaml
deleted file mode 100644
index 557e54141b..0000000000
--- a/test/integration/targets/junos_lag_interfaces/tests/netconf/merged.yaml
+++ /dev/null
@@ -1,62 +0,0 @@
----
-- debug:
- msg: "START junos_lag_interfaces merged integration tests on connection={{ ansible_connection }}"
-
-- include_tasks: _remove_config.yaml
-- include_tasks: _base_config.yaml
-
-- set_fact:
- expected_merged_output:
- - name: ae1
- members:
- - member: ge-0/0/1
- - member: ge-0/0/2
- mode: active
- - name: ae2
- link_protection: True
- members:
- - member: ge-0/0/3
- link_type: primary
- - member: ge-0/0/4
- link_type: backup
- mode: passive
-
-- block:
- - name: Merge the provided configuration with the exisiting running configuration
- junos_lag_interfaces: &merged
- config:
- - name: ae1
- members:
- - member: ge-0/0/1
- - member: ge-0/0/2
- mode: active
- - name: ae2
- link_protection: True
- members:
- - member: ge-0/0/3
- link_type: primary
- - member: ge-0/0/4
- link_type: backup
- mode: passive
- state: merged
- register: result
-
- - name: Assert the configuration is reflected on host
- assert:
- that:
- - "{{ expected_merged_output | symmetric_difference(result['after']) |length == 0 }}"
-
- - name: Merge the provided configuration with the existing running configuration (IDEMPOTENT)
- junos_lag_interfaces: *merged
- register: result
-
- - name: Assert that the previous task was idempotent
- assert:
- that:
- - "result['changed'] == false"
-
- always:
- - include_tasks: _remove_config.yaml
-
-- debug:
- msg: "END junos_lag_interfaces merged integration tests on connection={{ ansible_connection }}"
diff --git a/test/integration/targets/junos_lag_interfaces/tests/netconf/overridden.yaml b/test/integration/targets/junos_lag_interfaces/tests/netconf/overridden.yaml
deleted file mode 100644
index 00c6530821..0000000000
--- a/test/integration/targets/junos_lag_interfaces/tests/netconf/overridden.yaml
+++ /dev/null
@@ -1,62 +0,0 @@
----
-- debug:
- msg: "START junos_lag_interfaces overridden integration tests on connection={{ ansible_connection }}"
-
-- include_tasks: _remove_config.yaml
-- include_tasks: _base_config.yaml
-
-- set_fact:
- expected_overridden_output:
- - name: ae1
- members:
- - member: ge-0/0/2
- mode: active
-
-- block:
- - name: Base LAG configuration
- junos_lag_interfaces:
- config:
- - name: ae1
- members:
- - member: ge-0/0/1
- - member: ge-0/0/2
- mode: active
- - name: ae2
- link_protection: True
- members:
- - member: ge-0/0/3
- link_type: primary
- - member: ge-0/0/4
- link_type: backup
- mode: passive
- state: merged
-
- - name: Override the provided configuration with the exisiting running configuration
- junos_lag_interfaces: &overridden
- config:
- - name: ae1
- members:
- - member: ge-0/0/2
- mode: active
- state: overridden
- register: result
-
- - name: Assert the configuration is reflected on host
- assert:
- that:
- - "{{ expected_overridden_output | symmetric_difference(result['after']) |length == 0 }}"
-
- - name: Override the provided configuration with the existing running configuration (IDEMPOTENT)
- junos_lag_interfaces: *overridden
- register: result
-
- - name: Assert that the previous task was idempotent
- assert:
- that:
- - "result['changed'] == false"
-
- always:
- - include_tasks: _remove_config.yaml
-
-- debug:
- msg: "END junos_lag_interfaces overridden integration tests on connection={{ ansible_connection }}"
diff --git a/test/integration/targets/junos_lag_interfaces/tests/netconf/replaced.yaml b/test/integration/targets/junos_lag_interfaces/tests/netconf/replaced.yaml
deleted file mode 100644
index 839b0fd6b5..0000000000
--- a/test/integration/targets/junos_lag_interfaces/tests/netconf/replaced.yaml
+++ /dev/null
@@ -1,70 +0,0 @@
----
-- debug:
- msg: "START junos_lag_interfaces replaced integration tests on connection={{ ansible_connection }}"
-
-- include_tasks: _remove_config.yaml
-- include_tasks: _base_config.yaml
-
-- set_fact:
- expected_replaced_output:
- - name: ae1
- members:
- - member: ge-0/0/1
- mode: passive
- - name: ae2
- link_protection: True
- members:
- - member: ge-0/0/3
- link_type: primary
- - member: ge-0/0/4
- link_type: backup
- mode: passive
-
-- block:
- - name: Base LAG configuration
- junos_lag_interfaces:
- config:
- - name: ae1
- members:
- - member: ge-0/0/1
- - member: ge-0/0/2
- mode: active
- - name: ae2
- link_protection: True
- members:
- - member: ge-0/0/3
- link_type: primary
- - member: ge-0/0/4
- link_type: backup
- mode: passive
- state: merged
-
- - name: Replace the provided configuration with the exisiting running configuration
- junos_lag_interfaces: &replaced
- config:
- - name: ae1
- members:
- - member: ge-0/0/1
- mode: passive
- state: replaced
- register: result
-
- - name: Assert the configuration is reflected on host
- assert:
- that:
- - "{{ expected_replaced_output | symmetric_difference(result['after']) |length == 0 }}"
-
- - name: Replace the provided configuration with the existing running configuration (IDEMPOTENT)
- junos_lag_interfaces: *replaced
- register: result
-
- - name: Assert that the previous task was idempotent
- assert:
- that:
- - "result['changed'] == false"
-
- always:
- - include_tasks: _remove_config.yaml
-
-- debug:
- msg: "END junos_lag_interfaces replaced integration tests on connection={{ ansible_connection }}"