diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/targets/nxos_config/tests/common/src_basic.yaml | 18 | ||||
-rw-r--r-- | test/integration/targets/nxos_config/tests/common/src_invalid.yaml | 1 |
2 files changed, 4 insertions, 15 deletions
diff --git a/test/integration/targets/nxos_config/tests/common/src_basic.yaml b/test/integration/targets/nxos_config/tests/common/src_basic.yaml index 07d84b676f..f12dcb31c5 100644 --- a/test/integration/targets/nxos_config/tests/common/src_basic.yaml +++ b/test/integration/targets/nxos_config/tests/common/src_basic.yaml @@ -1,8 +1,7 @@ --- - debug: msg="START common/src_basic.yaml on connection={{ ansible_connection }}" -# Select interface for test -- set_fact: intname="{{ nxos_int1 }}" +- set_fact: intname="loopback1" - name: setup nxos_config: @@ -16,13 +15,9 @@ - name: configure device with config nxos_config: - commands: - - description this is a test - - shutdown - parents: - - "interface {{ intname }}" - defaults: yes + src: basic/config.j2 provider: "{{ connection }}" + defaults: yes register: result - assert: @@ -33,12 +28,7 @@ - name: check device with config nxos_config: - commands: - - description this is a test - - shutdown - parents: - - "interface {{ intname }}" - defaults: yes + src: basic/config.j2 provider: "{{ connection }}" register: result diff --git a/test/integration/targets/nxos_config/tests/common/src_invalid.yaml b/test/integration/targets/nxos_config/tests/common/src_invalid.yaml index ef2166a05f..f3405c3ebf 100644 --- a/test/integration/targets/nxos_config/tests/common/src_invalid.yaml +++ b/test/integration/targets/nxos_config/tests/common/src_invalid.yaml @@ -12,7 +12,6 @@ - assert: that: - - "result.changed == false" - "result.failed == true" - "result.msg == 'path specified in src not found'" |