diff --git a/test/integration/targets/iosxr_user/tests/cli/basic.yaml b/test/integration/targets/iosxr_user/tests/cli/basic.yaml index c18b38e3c2..e2c614a536 100644 --- a/test/integration/targets/iosxr_user/tests/cli/basic.yaml +++ b/test/integration/targets/iosxr_user/tests/cli/basic.yaml @@ -21,6 +21,19 @@ - '"username" in result.commands[0]' - '"secret" in result.commands[0]' +- name: Add user again (Idempotent) + iosxr_user: + name: ansibletest1 + password: test + state: present + provider: "{{ cli }}" + register: result + +- assert: + that: + - 'result.changed == false' + - 'result.commands | length == 0' + - name: Collection of users (SetUp) iosxr_user: users: @@ -36,19 +49,6 @@ - 'result.changed == true' - 'result.commands == ["username ansibletest2 group sysadmin", "username ansibletest3 group sysadmin"]' -- name: Add user again (Idempotent) - iosxr_user: - name: ansibletest1 - password: test - state: present - provider: "{{ cli }}" - register: result - -- assert: - that: - - 'result.changed == false' - - 'result.commands | length == 0' - - name: Add collection of users again (Idempotent) iosxr_user: users: