diff options
author | Caesarovich <38408878+Caesarovich@users.noreply.github.com> | 2023-08-21 19:02:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 19:02:47 +0200 |
commit | c69c83c962f987c78af98da0746527df0e5c194d (patch) | |
tree | fc362cd18f935437927231e7e288e08a86c8b190 /test/integration/targets | |
parent | ansible-test - Always use managed entry points (#81537) (diff) | |
download | ansible-c69c83c962f987c78af98da0746527df0e5c194d.tar.xz ansible-c69c83c962f987c78af98da0746527df0e5c194d.zip |
Fix macos defaults (#79999)
Diffstat (limited to 'test/integration/targets')
-rw-r--r-- | test/integration/targets/user/tasks/test_create_user.yml | 12 | ||||
-rw-r--r-- | test/integration/targets/user/vars/main.yml | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/test/integration/targets/user/tasks/test_create_user.yml b/test/integration/targets/user/tasks/test_create_user.yml index bced79056e..644dbebbc5 100644 --- a/test/integration/targets/user/tasks/test_create_user.yml +++ b/test/integration/targets/user/tasks/test_create_user.yml @@ -65,3 +65,15 @@ - "user_test1.results[2]['state'] == 'present'" - "user_test1.results[3]['state'] == 'present'" - "user_test1.results[4]['state'] == 'present'" + +- name: register user informations + when: ansible_facts.system == 'Darwin' + command: dscl . -read /Users/ansibulluser + register: user_test2 + +- name: validate user defaults for MacOS + when: ansible_facts.system == 'Darwin' + assert: + that: + - "'RealName: ansibulluser' in user_test2.stdout_lines " + - "'PrimaryGroupID: 20' in user_test2.stdout_lines " diff --git a/test/integration/targets/user/vars/main.yml b/test/integration/targets/user/vars/main.yml index 4b328f7184..2acd1e12bc 100644 --- a/test/integration/targets/user/vars/main.yml +++ b/test/integration/targets/user/vars/main.yml @@ -10,4 +10,4 @@ status_command: default_user_group: openSUSE Leap: users - MacOSX: admin + MacOSX: staff |