Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 1015 Bytes

README.md

File metadata and controls

31 lines (27 loc) · 1015 Bytes

Ansible Syncope Collection

Test module logic

  1. From the base directory execute the unit test:

       python -m pytest tests/
  2. Make sure to edit in a proper way the following conf files: ./plugins/modules/args.json ./tests/integration/targets/syncope_user_handler/tasks/main.yml

  3. Test the module logic by running one of the following 2 options:

    1. Providing a json file: from the ./plugins/modules/ directory run

      python -m syncope_user_handler args.json

      -m [MODULE_NAME]:

      the name of the module must be equals to the name of the plugins/modules/syncope_user_handler class

    2. With Playbook: from the base directory:

      ansible-test integration

      executing ansible test requires the collection be in a specific path:

      /ansible_collections/{namespace}/SyncopeAnsible/