summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/eos_vlan/tests
diff options
context:
space:
mode:
authorNathaniel Case <this.is@nathanielca.se>2017-12-19 21:49:49 +0100
committerGitHub <noreply@github.com>2017-12-19 21:49:49 +0100
commit513c75079edbe3d51702f87697efface2ce91236 (patch)
treeb096264e86ea4ec10ee037a1e747070b72eec967 /test/integration/targets/eos_vlan/tests
parentAdd option allowing the user to specify a custom cowpath (diff)
downloadansible-513c75079edbe3d51702f87697efface2ce91236.tar.xz
ansible-513c75079edbe3d51702f87697efface2ce91236.zip
Port eos tests to network_cli (#33586)
* Add eos and fix tests to run multiple connections * Update tests to report connection * Add missing START messages * Fix unspecified connection * Python 3 updates Exceptions don't have `.message` in Python 3 * Override `become` when using `connection=local` * Slight restructuring to make eapi easier later on * Move eapi toggle to prepare_eos * Pull out connection on eapi tasks
Diffstat (limited to 'test/integration/targets/eos_vlan/tests')
-rw-r--r--test/integration/targets/eos_vlan/tests/cli/basic.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/targets/eos_vlan/tests/cli/basic.yaml b/test/integration/targets/eos_vlan/tests/cli/basic.yaml
index f22d57715e..d6d9c66cd9 100644
--- a/test/integration/targets/eos_vlan/tests/cli/basic.yaml
+++ b/test/integration/targets/eos_vlan/tests/cli/basic.yaml
@@ -8,6 +8,7 @@
- no vlan 4002
authorize: yes
provider: "{{ cli }}"
+ become: yes
- name: setup - remove switchport settings on interface Ethernet1 used in test
eos_config:
@@ -17,6 +18,7 @@
parents: interface Ethernet1
authorize: yes
provider: "{{ cli }}"
+ become: yes
- name: setup - remove switchport settings on interface Ethernet2 used in test
eos_config:
@@ -26,6 +28,7 @@
parents: interface Ethernet2
authorize: yes
provider: "{{ cli }}"
+ become: yes
- name: Create vlan
eos_vlan:
@@ -34,6 +37,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert:
@@ -51,6 +55,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert:
@@ -67,6 +72,7 @@
state: suspend
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert:
@@ -85,6 +91,7 @@
state: suspend
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert:
@@ -100,6 +107,7 @@
state: active
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert:
@@ -119,6 +127,7 @@
- Ethernet2
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert:
@@ -141,6 +150,7 @@
- Ethernet2
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert:
@@ -158,6 +168,7 @@
- Ethernet1
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert:
@@ -177,6 +188,7 @@
- Ethernet1
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert:
@@ -194,6 +206,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert:
@@ -213,6 +226,7 @@
state: present
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert:
@@ -231,6 +245,7 @@
purge: yes
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert:
@@ -251,6 +266,7 @@
purge: yes
authorize: yes
provider: "{{ cli }}"
+ become: yes
register: result
- assert: