tests/user/test_users*.yml: Use extended dynamic users.json

test_users_absent.yml was using users_absent.json. It has been adapted to
use users.json instead with an additional json_query to get only the names
from users_present.json.

create_users_json.yml has been added to create users.json if it is missing
containing 500 users. It is included by test_users_present.yml and
test_users_absent.yml.

users_present.sh has been renamed to users.sh and modified to create by
default users.json with 1000 users and additional with password and
passwordexpiration in two years.

jmespath has been added to pip install list in
tests/azure/templates/playbook_tests.yml to emable the use of json_query.

The requirement for jmespath has been added to tests/README.md.
This commit is contained in:
Thomas Woerner
2020-08-21 15:43:22 +02:00
parent 675125ed0b
commit b7e1a99b6e
9 changed files with 36 additions and 8021 deletions

View File

@@ -7,9 +7,9 @@
vars:
slice_size: 500
tasks:
- name: Include users_present.json
- name: Include users.json
include_vars:
file: users_present.json
file: users.json
- debug:
msg: "{{ users | length }}"
- name: Users present