You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/nxos_lacp/tests/cli/merged.yaml

50 lines
989 B
YAML

---
- debug:
msg: "Start nxos_lacp merged integration tests connection={{ ansible_connection }}"
- name: Enable lacp
nxos_feature:
feature: lacp
- block:
- name: Merged
nxos_lacp: &merged
config:
system:
priority: 11
state: merged
register: result
- assert:
that:
- "result.before|length == 0"
- "result.changed == true"
- "'lacp system-priority 11' in result.commands"
- "result.commands|length == 1"
- name: Gather lacp facts
nxos_facts:
gather_subset:
- '!all'
- '!min'
gather_network_resources: lacp
- assert:
that:
- "ansible_facts.network_resources.lacp == result.after"
- name: Idempotence - Merged
nxos_lacp: *merged
register: result
- assert:
that:
- "result.changed == false"
- "result.commands|length == 0"
always:
- name: teardown
nxos_feature:
feature: lacp
state: disabled