2016-10-28 18:50:29 +00:00
|
|
|
---
|
2017-12-20 16:26:09 +00:00
|
|
|
- debug: msg="START cli/comment-too-long.yaml on connection={{ ansible_connection }}"
|
2016-10-28 18:50:29 +00:00
|
|
|
|
|
|
|
- name: setup
|
|
|
|
iosxr_config:
|
|
|
|
commands:
|
|
|
|
- no description
|
|
|
|
- no shutdown
|
|
|
|
parents:
|
|
|
|
- interface Loopback999
|
|
|
|
match: none
|
|
|
|
|
|
|
|
# Defend against https://github.com/ansible/ansible-modules-core/issues/5146
|
|
|
|
- name: Commit message too long
|
|
|
|
iosxr_config:
|
|
|
|
src: basic/config.j2
|
|
|
|
comment: "this is a really long message aaaaabbbbbbcdde end-of-message"
|
|
|
|
register: result
|
|
|
|
ignore_errors: true
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.changed == false"
|
|
|
|
- "result.updates is not defined"
|
|
|
|
# Defend https://github.com/ansible/ansible-modules-core/issues/5146
|
|
|
|
- "'comment argument cannot be more than 60 characters' in result.msg"
|
|
|
|
# Check for the correct error message (and not a generic "Invalid input detected") once fixed
|
|
|
|
|
|
|
|
|
2017-12-20 16:26:09 +00:00
|
|
|
- debug: msg="END cli/comment-too-long.yaml on connection={{ ansible_connection }}"
|