From 84a9b59774e3337f53066ec849994de724c89d2b Mon Sep 17 00:00:00 2001 From: omnom62 Date: Mon, 29 Jun 2026 05:57:04 +1000 Subject: T8989: SIT updated --- .../tests/httpapi/overridden.yaml | 38 ------------- .../vyos_prefix_lists/tests/httpapi/rtt.yaml | 63 ---------------------- 2 files changed, 101 deletions(-) delete mode 100644 tests/integration/targets/vyos_prefix_lists/tests/httpapi/overridden.yaml delete mode 100644 tests/integration/targets/vyos_prefix_lists/tests/httpapi/rtt.yaml (limited to 'tests/integration') diff --git a/tests/integration/targets/vyos_prefix_lists/tests/httpapi/overridden.yaml b/tests/integration/targets/vyos_prefix_lists/tests/httpapi/overridden.yaml deleted file mode 100644 index f895488..0000000 --- a/tests/integration/targets/vyos_prefix_lists/tests/httpapi/overridden.yaml +++ /dev/null @@ -1,38 +0,0 @@ ---- -- debug: - msg: START vyos_prefix_lists overridden integration tests on connection={{ ansible_connection }} - -- include_tasks: _remove_config.yaml -- include_tasks: _populate_config.yaml - -- block: - - name: Override prefix_lists configuration - register: result - vyos.rest.vyos_prefix_lists: &id001 - config: - - afi: ipv4 - prefix_lists: - - name: AnsibleIPv4PrefixList - description: Overridden by ansible - entries: - - sequence: 2 - action: permit - prefix: 92.168.10.0/26 - le: 32 - state: overridden - - - assert: - that: - - result.changed == true - - - name: Override prefix_lists configuration (IDEMPOTENT) - register: result - vyos.rest.vyos_prefix_lists: *id001 - - - assert: - that: - - result.changed == false - - result.commands == [] - - always: - - include_tasks: _remove_config.yaml diff --git a/tests/integration/targets/vyos_prefix_lists/tests/httpapi/rtt.yaml b/tests/integration/targets/vyos_prefix_lists/tests/httpapi/rtt.yaml deleted file mode 100644 index 6ddeb27..0000000 --- a/tests/integration/targets/vyos_prefix_lists/tests/httpapi/rtt.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -- debug: - msg: START vyos_prefix_lists round trip integration tests on connection={{ ansible_connection }} - -- include_tasks: _remove_config.yaml - -- block: - - name: RTT - Apply base configuration - vyos.rest.vyos_prefix_lists: - config: - - afi: ipv4 - prefix_lists: - - name: AnsibleIPv4PrefixList - description: PL configured by ansible - entries: - - sequence: 2 - action: permit - prefix: 92.168.10.0/26 - le: 32 - - sequence: 3 - action: deny - prefix: 72.168.2.0/24 - ge: 26 - state: merged - - - name: RTT - Gather configuration - register: gathered - vyos.rest.vyos_prefix_lists: - state: gathered - - - name: RTT - Assert gathered matches applied - assert: - that: - - gathered.gathered | selectattr('afi', 'eq', 'ipv4') | list | length == 1 - - gathered.gathered | selectattr('afi', 'eq', 'ipv4') | map(attribute='prefix_lists') | first | selectattr('name', 'eq', 'AnsibleIPv4PrefixList') | list | length == 1 - - - name: RTT - Modify configuration - vyos.rest.vyos_prefix_lists: - config: - - afi: ipv4 - prefix_lists: - - name: AnsibleIPv4PrefixList - description: Modified by ansible - entries: - - sequence: 2 - action: permit - prefix: 92.168.10.0/26 - le: 32 - state: replaced - - - name: RTT - Gather modified configuration - register: gathered2 - vyos.rest.vyos_prefix_lists: - state: gathered - - - name: RTT - Assert modification applied correctly - assert: - that: - - gathered2.gathered | selectattr('afi', 'eq', 'ipv4') | list | length == 1 - - gathered2.gathered | selectattr('afi', 'eq', 'ipv4') | map(attribute='prefix_lists') | first | selectattr('name', 'eq', 'AnsibleIPv4PrefixList') | map(attribute='entries') | first | length == 1 - - always: - - include_tasks: _remove_config.yaml -- cgit v1.2.3