1--- 2- debug: 3 msg: START vyos_interfaces empty_config integration tests on connection={{ 4 ansible_connection }} 5 6- name: Merged with empty config should give appropriate error message 7 register: result 8 ignore_errors: true 9 vyos.vyos.vyos_interfaces: 10 config: 11 state: merged 12 13- assert: 14 that: 15 - result.msg == 'value of config parameter must not be empty for state merged' 16 17- name: Replaced with empty config should give appropriate error message 18 register: result 19 ignore_errors: true 20 vyos.vyos.vyos_interfaces: 21 config: 22 state: replaced 23 24- assert: 25 that: 26 - result.msg == 'value of config parameter must not be empty for state replaced' 27 28- name: Overridden with empty config should give appropriate error message 29 register: result 30 ignore_errors: true 31 vyos.vyos.vyos_interfaces: 32 config: 33 state: overridden 34 35- assert: 36 that: 37 - result.msg == 'value of config parameter must not be empty for state overridden' 38 39- name: Parsed with empty running_config should give appropriate error message 40 register: result 41 ignore_errors: true 42 vyos.vyos.vyos_interfaces: 43 running_config: 44 state: parsed 45 46- assert: 47 that: 48 - result.msg == 'value of running_config parameter must not be empty for state 49 parsed' 50 51- name: Rendered with empty config should give appropriate error message 52 register: result 53 ignore_errors: true 54 vyos.vyos.vyos_interfaces: 55 config: 56 state: rendered 57 58- assert: 59 that: 60 - result.msg == 'value of config parameter must not be empty for state rendered' 61