From 028ce1da158ed6f1f69c294684aae7c3dc4567dc Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Fri, 14 Jul 2017 19:16:00 +0200 Subject: [PATCH] Rmove EOS vlan EAPI tests (#26818) These are not working locally, removing for now will put it in place when issues are fixed. --- .../targets/eos_vlan/tasks/eapi.yaml | 33 --------- .../targets/eos_vlan/tests/eapi/basic.yaml | 68 ------------------- 2 files changed, 101 deletions(-) delete mode 100644 test/integration/targets/eos_vlan/tasks/eapi.yaml delete mode 100644 test/integration/targets/eos_vlan/tests/eapi/basic.yaml diff --git a/test/integration/targets/eos_vlan/tasks/eapi.yaml b/test/integration/targets/eos_vlan/tasks/eapi.yaml deleted file mode 100644 index 994d1a7c7d..0000000000 --- a/test/integration/targets/eos_vlan/tasks/eapi.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -- name: collect all eapi test cases - find: - paths: "{{ role_path }}/tests/eapi" - patterns: "{{ testcase }}.yaml" - register: test_cases - -- name: set test_items - set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}" #" - -- name: enable eapi - eos_eapi: - enable_http: yes - enable_https: yes - enable_local_http: yes - enable_socket: yes - provider: "{{ cli }}" -# authorize: yes - -- name: run test case - include: "{{ test_case_to_run }}" - with_items: "{{ test_items }}" - loop_control: - loop_var: test_case_to_run - -- name: disable eapi - eos_eapi: - enable_http: no - enable_https: no - enable_local_http: no - enable_socket: no - provider: "{{ cli }}" -# authorize: yes diff --git a/test/integration/targets/eos_vlan/tests/eapi/basic.yaml b/test/integration/targets/eos_vlan/tests/eapi/basic.yaml deleted file mode 100644 index 17193e173e..0000000000 --- a/test/integration/targets/eos_vlan/tests/eapi/basic.yaml +++ /dev/null @@ -1,68 +0,0 @@ ---- - -- name: setup - remove vlan - eos_vlan: - vlan_id: 4000 - name: test-vlan - state: absent - authorize: yes - provider: "{{ eapi }}" - -- name: Create vlan - eos_vlan: - vlan_id: 4000 - name: test-vlan - state: present - authorize: yes - provider: "{{ eapi }}" - register: result - -- debug: - msg: "{{ result }}" - -- assert: - that: - - "result.changed == true" - - "'vlan 4000' in result.commands" - - "'name test-vlan' in result.commands" - # Ensure sessions contains epoc. Will fail after 18th May 2033 - - "'ansible_1' in result.session_name" - -- name: Create vlan again (idempotent) - eos_vlan: - vlan_id: 4000 - name: test-vlan - state: present - authorize: yes - provider: "{{ eapi }}" - register: result - -- assert: - that: - - "result.changed == false" - - "result.commands | length == 0" - # Ensure sessions contains epoc. Will fail after 18th May 2033 - - "result.session_name is not defined" - -- name: Change vlan name and state - eos_vlan: - vlan_id: 4000 - name: test-vlan2 - state: suspend - authorize: yes - provider: "{{ eapi }}" - register: result - -- assert: - that: - - "result.changed == true" - - "'vlan 4000' in result.commands" - - "'name test-vlan2' in result.commands" - - "'state suspend' in result.commands" - # Ensure sessions contains epoc. Will fail after 18th May 2033 - - "'ansible_1' in result.session_name" - - -# FIXME add in tests for everything defined in docs -# FIXME Test state:absent + test: -# FIXME Without powers ensure "privileged mode required"