Rmove EOS vlan EAPI tests (#26818)

These are not working locally, removing for now will put it in place
when issues are fixed.
pull/26822/head
Ricardo Carrillo Cruz 7 years ago committed by GitHub
parent 1d14de1d8c
commit 028ce1da15

@ -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

@ -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"
Loading…
Cancel
Save