Skip to content

Commit

Permalink
Fix various EOS integration tests due to missing become (ansible#34504)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarrillocruz authored Jan 5, 2018
1 parent 9b74b9b commit f77ab30
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/integration/targets/eos_interface/tests/cli/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- name: Configure interface
Expand All @@ -23,6 +24,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -38,6 +40,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -52,6 +55,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -69,6 +73,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -84,6 +89,7 @@
enabled: False
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -98,6 +104,7 @@
enabled: True
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -114,6 +121,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- name: Add interface aggregate
Expand All @@ -124,6 +132,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -143,6 +152,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -158,6 +168,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -177,6 +188,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -195,6 +207,7 @@
state: absent
authorize: yes
provider: "{{ cli }}"
become: yes

- name: Create loopback interface aggregate
eos_interface:
Expand All @@ -204,6 +217,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -220,6 +234,7 @@
state: absent
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -236,6 +251,7 @@
state: absent
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand Down
10 changes: 10 additions & 0 deletions test/integration/targets/eos_interface/tests/cli/intent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
rx_rate: ge(0)
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -29,6 +30,7 @@
authorize: yes
provider: "{{ cli }}"
ignore_errors: yes
become: yes
register: result

- assert:
Expand All @@ -45,6 +47,7 @@
state: down
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -59,6 +62,7 @@
state: up
provider: "{{ cli }}"
ignore_errors: yes
become: yes
register: result

- assert:
Expand All @@ -72,6 +76,7 @@
- show lldp neighbors management1
authorize: yes
provider: "{{ cli }}"
become: yes
register: show_lldp_neighbors_result

- block:
Expand All @@ -83,6 +88,7 @@
host: an-vyos-02
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -98,6 +104,7 @@
authorize: yes
provider: "{{ cli }}"
ignore_errors: yes
become: yes
register: result

- assert:
Expand All @@ -116,6 +123,7 @@
authorize: yes
provider: "{{ cli }}"
ignore_errors: yes
become: yes
register: result

- assert:
Expand All @@ -133,6 +141,7 @@
authorize: yes
provider: "{{ cli }}"
ignore_errors: yes
become: yes
register: result

- assert:
Expand All @@ -151,6 +160,7 @@
authorize: yes
provider: "{{ cli }}"
ignore_errors: yes
become: yes
register: result

- assert:
Expand Down
15 changes: 15 additions & 0 deletions test/integration/targets/eos_l3_interface/tests/cli/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
state: absent
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- name: Configure interface ipv4 address
Expand All @@ -21,6 +22,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -36,6 +38,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -49,6 +52,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -64,6 +68,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -79,6 +84,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -92,6 +98,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -106,6 +113,7 @@
state: absent
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -121,6 +129,7 @@
state: absent
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- name: Delete second interface ipv4 and ipv6 address (setup)
Expand All @@ -129,6 +138,7 @@
state: absent
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- name: Configure ipv4 and ipv6 address using aggregate
Expand All @@ -138,6 +148,7 @@
- { name: "{{ test_interface_2 }}", ipv4: 192.162.0.2/16, ipv6: "fd5e:12c9:2201:3::3/32" }
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -157,6 +168,7 @@
- { name: "{{ test_interface_2 }}", ipv4: 192.162.0.2/16, ipv6: "fd5e:12c9:2201:3::3/32" }
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -170,6 +182,7 @@
- { name: "{{ test_interface_2 }}", ipv4: 192.169.2.2/24, ipv6: "fd5b:12c9:2201:5::5/90" }
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -191,6 +204,7 @@
state: absent
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand All @@ -211,6 +225,7 @@
state: absent
authorize: yes
provider: "{{ cli }}"
become: yes
register: result

- assert:
Expand Down
5 changes: 5 additions & 0 deletions test/integration/targets/eos_lldp/tests/cli/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
lines: no lldp run
authorize: yes
provider: "{{ cli }}"
become: yes

- name: Enable LLDP service
eos_lldp:
state: present
authorize: yes
provider: "{{ cli }}"
register: result
become: yes

- assert:
that:
Expand All @@ -25,6 +27,7 @@
authorize: yes
provider: "{{ cli }}"
register: result
become: yes

- assert:
that:
Expand All @@ -36,6 +39,7 @@
authorize: yes
provider: "{{ cli }}"
register: result
become: yes

- assert:
that:
Expand All @@ -48,6 +52,7 @@
authorize: yes
provider: "{{ cli }}"
register: result
become: yes

- assert:
that:
Expand Down

0 comments on commit f77ab30

Please sign in to comment.