diff options
author | Nathaniel Case <this.is@nathanielca.se> | 2017-12-19 15:49:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-19 15:49:49 -0500 |
commit | 513c75079edbe3d51702f87697efface2ce91236 (patch) | |
tree | b096264e86ea4ec10ee037a1e747070b72eec967 /test/integration/targets/prepare_eos_tests | |
parent | f64b276f6ab2cc5bc85f7ad929aaca59a9e6e53e (diff) | |
download | ansible-513c75079edbe3d51702f87697efface2ce91236.tar.gz |
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/prepare_eos_tests')
-rw-r--r-- | test/integration/targets/prepare_eos_tests/tasks/main.yml | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/test/integration/targets/prepare_eos_tests/tasks/main.yml b/test/integration/targets/prepare_eos_tests/tasks/main.yml index e3b66ff462..1f2e2fc5b9 100644 --- a/test/integration/targets/prepare_eos_tests/tasks/main.yml +++ b/test/integration/targets/prepare_eos_tests/tasks/main.yml @@ -4,9 +4,8 @@ - no shutdown - no switchport parents: int Ethernet1 - authorize: yes - provider: "{{ cli }}" - connection: local + become: yes + connection: network_cli - name: Enable Ethernet2 interface and disable switchport eos_config: @@ -14,6 +13,15 @@ - no shutdown - no switchport parents: int Ethernet2 - authorize: yes - provider: "{{ cli }}" - connection: local + become: yes + connection: network_cli + +- name: enable eapi + eos_eapi: + http: yes + https: yes + local_http: no + enable_socket: yes + become: yes + connection: network_cli + tags: eapi |