summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRicardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com>2017-08-09 15:24:27 +0200
committerGitHub <noreply@github.com>2017-08-09 15:24:27 +0200
commit9f26b853e825d9eb6c37b2472133c3479b0e5163 (patch)
tree9c799df4edcee8b1fc7059045f63c6cc11442d90 /test
parentCisco ACI New Module PR (#26836) (diff)
downloadansible-9f26b853e825d9eb6c37b2472133c3479b0e5163.tar.xz
ansible-9f26b853e825d9eb6c37b2472133c3479b0e5163.zip
Remove vyos_facts neighbors integration tests (#27957)
The tests rely on setting the lldp IP on the management interface. However, the IP discovered is the private IP of the node, and tests require accessing it via Nodepool node public IP. Removing that test for now to get CI green again, we'll reasses once we release 2.4.
Diffstat (limited to 'test')
-rw-r--r--test/integration/targets/vyos_facts/tests/cli/neighbors_facts.yaml51
1 files changed, 0 insertions, 51 deletions
diff --git a/test/integration/targets/vyos_facts/tests/cli/neighbors_facts.yaml b/test/integration/targets/vyos_facts/tests/cli/neighbors_facts.yaml
deleted file mode 100644
index a16b3a9d97..0000000000
--- a/test/integration/targets/vyos_facts/tests/cli/neighbors_facts.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-- name: get eth0 ip address
- vyos_command:
- commands:
- - show interfaces ethernet eth0
- register: eth0_ip
-
-# if there is no ip assigned to eth0, skip this
-- block:
- - set_fact:
- vyos_lldp_node: "{{ eth0_ip.stdout_lines[0][2] | regex_replace('.*inet ', '') | regex_replace('/.*', '') }}"
-
- - name: start LLDP
- vyos_config:
- lines:
- - set service lldp
- - set service lldp management-address {{ vyos_lldp_node }}
-
- - debug: var=vyos_lldp_node
-
- - name: wait for LLDP to start up. If this fails check that vyos_lldp_node is a valid ip address
- vyos_command:
- commands:
- - show lldp neighbors detail
- register: neighbors
- until: neighbors.stdout_lines[0]|length > 3
- retries: 5
- delay: 5
-
- - name: collect neighbor facts from the device
- vyos_facts:
- gather_subset: neighbors
- # provider: {{ cli }}
- register: result
-
- - debug: var=result.ansible_facts.ansible_net_neighbors
-
-
- - name: check ansible_net_neighbors
- assert:
- that:
- - result.ansible_facts.ansible_net_neighbors is defined
- # - result.ansible_facts.ansible_net_neighbors.eth0 is defined
- - result.ansible_facts.ansible_net_neighbors|length > 0
-
- always:
- - name: stop lldp
- vyos_config:
- lines:
- - delete service lldp
- - delete service lldp management-address {{ vyos_lldp_node }}
- when: "'inet' in eth0_ip.stdout[0]"