summaryrefslogtreecommitdiff
path: root/test/integration/targets/eos_config/tests/cli/src_invalid.yaml
blob: 53f7be8bcaf1b52438f20688a14c6bebd95bcf44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
- debug: msg="START cli/src_invalid.yaml"


# Defend https://github.com/ansible/ansible-modules-core/issues/4797
- name: configure with invalid src
  eos_config:
    src: basic/foobar.j2
    provider: "{{ cli }}"
  register: result
  ignore_errors: yes

- assert:
    that:
      - "result.changed == false"
      - "result.failed == true"
      - "result.msg == 'path specified in src not found'"

- debug: msg="END cli/src_invalid.yaml"