mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
e0cc7b3415
* Docs Networking tests * Copy networking tests from test-network-modules * Networking transport settings - group_vars * Network playbooks * Debug should be off by default * Update nxos.yaml * Remove items from top level * Use dependencies, not pre-tasks * Remove trailing blank lines * Remove backup files * newlines
32 lines
901 B
YAML
32 lines
901 B
YAML
---
|
|
- debug: msg="START cli/comment-too-long.yaml"
|
|
|
|
- name: setup
|
|
iosxr_config:
|
|
commands:
|
|
- no description
|
|
- no shutdown
|
|
parents:
|
|
- interface Loopback999
|
|
match: none
|
|
provider: "{{ cli }}"
|
|
|
|
# Defend against https://github.com/ansible/ansible-modules-core/issues/5146
|
|
- name: Commit message too long
|
|
iosxr_config:
|
|
src: basic/config.j2
|
|
provider: "{{ cli }}"
|
|
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
|
|
|
|
|
|
- debug: msg="END cli/comment-too-long.yaml"
|