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

This commit is contained in:
John R Barker 2017-03-01 13:10:40 +00:00 committed by GitHub
parent c9c8be6459
commit 2f6213a219
7 changed files with 24 additions and 24 deletions

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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: