1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix various EOS integration tests due to missing become (#34504)

This commit is contained in:
Ricardo Carrillo Cruz 2018-01-05 16:16:04 +01:00 committed by GitHub
parent 9b74b9bc8b
commit f77ab30316
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 46 additions and 0 deletions

View file

@ -14,6 +14,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- name: Configure interface - name: Configure interface
@ -23,6 +24,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -38,6 +40,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -52,6 +55,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -69,6 +73,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -84,6 +89,7 @@
enabled: False enabled: False
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -98,6 +104,7 @@
enabled: True enabled: True
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -114,6 +121,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- name: Add interface aggregate - name: Add interface aggregate
@ -124,6 +132,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -143,6 +152,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -158,6 +168,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -177,6 +188,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -195,6 +207,7 @@
state: absent state: absent
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
- name: Create loopback interface aggregate - name: Create loopback interface aggregate
eos_interface: eos_interface:
@ -204,6 +217,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -220,6 +234,7 @@
state: absent state: absent
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -236,6 +251,7 @@
state: absent state: absent
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:

View file

@ -14,6 +14,7 @@
rx_rate: ge(0) rx_rate: ge(0)
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -29,6 +30,7 @@
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
ignore_errors: yes ignore_errors: yes
become: yes
register: result register: result
- assert: - assert:
@ -45,6 +47,7 @@
state: down state: down
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -59,6 +62,7 @@
state: up state: up
provider: "{{ cli }}" provider: "{{ cli }}"
ignore_errors: yes ignore_errors: yes
become: yes
register: result register: result
- assert: - assert:
@ -72,6 +76,7 @@
- show lldp neighbors management1 - show lldp neighbors management1
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: show_lldp_neighbors_result register: show_lldp_neighbors_result
- block: - block:
@ -83,6 +88,7 @@
host: an-vyos-02 host: an-vyos-02
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -98,6 +104,7 @@
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
ignore_errors: yes ignore_errors: yes
become: yes
register: result register: result
- assert: - assert:
@ -116,6 +123,7 @@
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
ignore_errors: yes ignore_errors: yes
become: yes
register: result register: result
- assert: - assert:
@ -133,6 +141,7 @@
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
ignore_errors: yes ignore_errors: yes
become: yes
register: result register: result
- assert: - assert:
@ -151,6 +160,7 @@
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
ignore_errors: yes ignore_errors: yes
become: yes
register: result register: result
- assert: - assert:

View file

@ -12,6 +12,7 @@
state: absent state: absent
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- name: Configure interface ipv4 address - name: Configure interface ipv4 address
@ -21,6 +22,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -36,6 +38,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -49,6 +52,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -64,6 +68,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -79,6 +84,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -92,6 +98,7 @@
state: present state: present
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -106,6 +113,7 @@
state: absent state: absent
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -121,6 +129,7 @@
state: absent state: absent
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- name: Delete second interface ipv4 and ipv6 address (setup) - name: Delete second interface ipv4 and ipv6 address (setup)
@ -129,6 +138,7 @@
state: absent state: absent
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- name: Configure ipv4 and ipv6 address using aggregate - name: Configure ipv4 and ipv6 address using aggregate
@ -138,6 +148,7 @@
- { name: "{{ test_interface_2 }}", ipv4: 192.162.0.2/16, ipv6: "fd5e:12c9:2201:3::3/32" } - { name: "{{ test_interface_2 }}", ipv4: 192.162.0.2/16, ipv6: "fd5e:12c9:2201:3::3/32" }
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -157,6 +168,7 @@
- { name: "{{ test_interface_2 }}", ipv4: 192.162.0.2/16, ipv6: "fd5e:12c9:2201:3::3/32" } - { name: "{{ test_interface_2 }}", ipv4: 192.162.0.2/16, ipv6: "fd5e:12c9:2201:3::3/32" }
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -170,6 +182,7 @@
- { name: "{{ test_interface_2 }}", ipv4: 192.169.2.2/24, ipv6: "fd5b:12c9:2201:5::5/90" } - { name: "{{ test_interface_2 }}", ipv4: 192.169.2.2/24, ipv6: "fd5b:12c9:2201:5::5/90" }
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -191,6 +204,7 @@
state: absent state: absent
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:
@ -211,6 +225,7 @@
state: absent state: absent
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
register: result register: result
- assert: - assert:

View file

@ -6,6 +6,7 @@
lines: no lldp run lines: no lldp run
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
become: yes
- name: Enable LLDP service - name: Enable LLDP service
eos_lldp: eos_lldp:
@ -13,6 +14,7 @@
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
register: result register: result
become: yes
- assert: - assert:
that: that:
@ -25,6 +27,7 @@
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
register: result register: result
become: yes
- assert: - assert:
that: that:
@ -36,6 +39,7 @@
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
register: result register: result
become: yes
- assert: - assert:
that: that:
@ -48,6 +52,7 @@
authorize: yes authorize: yes
provider: "{{ cli }}" provider: "{{ cli }}"
register: result register: result
become: yes
- assert: - assert:
that: that: