result.commands (not .updates) (#22139)

pull/20539/merge
John R Barker 8 years ago committed by GitHub
parent c9c8be6459
commit 2f6213a219

@ -16,8 +16,8 @@
- assert:
that:
- "result.changed == true"
- "'ipv4 access-list test' in result.updates"
- "'10 permit ipv4 any any log' in result.updates"
- "'ipv4 access-list test' in result.commands"
- "'10 permit ipv4 any any log' in result.commands"
- name: configure sub level command idempotent check
iosxr_config:

@ -27,11 +27,11 @@
- assert:
that:
- "result.changed == true"
- "'ipv4 access-list test' in result.updates"
- "'10 permit ipv4 host 1.1.1.1 any log' in result.updates"
- "'20 permit ipv4 host 2.2.2.2 any log' in result.updates"
- "'30 permit ipv4 host 3.3.3.3 any log' in result.updates"
- "'40 permit ipv4 host 4.4.4.4 any log' in result.updates"
- "'ipv4 access-list test' in result.commands"
- "'10 permit ipv4 host 1.1.1.1 any log' in result.commands"
- "'20 permit ipv4 host 2.2.2.2 any log' in result.commands"
- "'30 permit ipv4 host 3.3.3.3 any log' in result.commands"
- "'40 permit ipv4 host 4.4.4.4 any log' in result.commands"
- name: check sub level command using block replace
iosxr_config:

@ -29,12 +29,12 @@
- assert:
that:
- "result.changed == true"
- "'ipv4 access-list test' in result.updates"
- "'10 permit ipv4 host 1.1.1.1 any log' in result.updates"
- "'20 permit ipv4 host 2.2.2.2 any log' in result.updates"
- "'30 permit ipv4 host 3.3.3.3 any log' in result.updates"
- "'40 permit ipv4 host 4.4.4.4 any log' in result.updates"
- "'50 permit ipv4 host 5.5.5.5 any log' not in result.updates"
- "'ipv4 access-list test' in result.commands"
- "'10 permit ipv4 host 1.1.1.1 any log' in result.commands"
- "'20 permit ipv4 host 2.2.2.2 any log' in result.commands"
- "'30 permit ipv4 host 3.3.3.3 any log' in result.commands"
- "'40 permit ipv4 host 4.4.4.4 any log' in result.commands"
- "'50 permit ipv4 host 5.5.5.5 any log' not in result.commands"
- name: check sub level command using exact match
iosxr_config:

@ -31,12 +31,12 @@
- assert:
that:
- "result.changed == true"
- "'ipv4 access-list test' in result.updates"
- "'10 permit ipv4 host 1.1.1.1 any log' in result.updates"
- "'20 permit ipv4 host 2.2.2.2 any log' in result.updates"
- "'30 permit ipv4 host 3.3.3.3 any log' in result.updates"
- "'40 permit ipv4 host 4.4.4.4 any log' in result.updates"
- "'50 permit ipv4 host 5.5.5.5 any log' not in result.updates"
- "'ipv4 access-list test' in result.commands"
- "'10 permit ipv4 host 1.1.1.1 any log' in result.commands"
- "'20 permit ipv4 host 2.2.2.2 any log' in result.commands"
- "'30 permit ipv4 host 3.3.3.3 any log' in result.commands"
- "'40 permit ipv4 host 4.4.4.4 any log' in result.commands"
- "'50 permit ipv4 host 5.5.5.5 any log' not in result.commands"
- name: check sub level command using strict match
iosxr_config:

@ -14,7 +14,7 @@
- assert:
that:
- "result.changed == true"
- "'hostname foo' in result.updates"
- "'hostname foo' in result.commands"
- name: configure top level command idempotent check
iosxr_config:

@ -17,8 +17,8 @@
- assert:
that:
- "result.changed == true"
- "'hostname foo' in result.updates"
- "'cdp' in result.updates"
- "'hostname foo' in result.commands"
- "'cdp' in result.commands"
- name: configure top level command with before idempotent check
iosxr_config:

@ -17,8 +17,8 @@
- assert:
that:
- "result.changed == true"
- "'hostname foo' in result.updates"
- "'cdp' in result.updates"
- "'hostname foo' in result.commands"
- "'cdp' in result.commands"
- name: configure top level command with before idempotent check
iosxr_config:

Loading…
Cancel
Save