2. Confidential and Business Information
The information contained herein is confidential information regarding the business of iWelcome BV and
may include confidential information regarding its associated entities and other 3rd
Parties. By accepting
this document and the information provided therein, the recipient agrees that it will, cause its directors,
officers, employees and representatives to, use such information discrete and exclusively for the purpose
it is intended to be used for. None of the information may be divulged to any other party or
reproduced, in whole or in part, without the express prior written permission of iWelcome. iWelcome is a
registered trademark of iWelcome BV.
2
5. 5
Identity & Access Management (‘IAM’):
The ICT infrastructure required to provide &
manage the right access for the right people, at
the right place, on the right device to the right IT-
services, and to do that in a safe, simple, cost-
efficient and controllable manner.
IDaaS: 100% delivered as a cloud service
6. 6
Selection of blue chip customers using iWelcome IDaaS for Workforce and / or CIAM use cases
7. 7
Introduction
o Why do we test Ansible roles?
Does the role do what it needs to do:
• Is it installing the application(s)?
• Is it configuring the correct templates?
• Is the service(s) running?
• etc
8. 8
Introduction
What do we get for testing roles:
Improving reliability:
• We get more confidence and see that it works
• Run the tests when Pull Requests are created
Better quality:
• Add functionality and/or tests
9. 9
Molecule v1
“Molecule is designed to aid in the development and testing of
Ansible roles including support for multiple instances, operating
system distributions, virtualization providers and test frameworks.”
pip install molecule
https://github.com/metacloud/molecule
https://molecule.readthedocs.io/
10. 10
Molecule v1
Drivers:
• Vagrant (Default)
• OpenStack
• Docker
New Ansible role:
molecule init --driver docker --role <role_name>
When you already have a role:
molecule init --driver docker
https://molecule.readthedocs.io/en/stable-1.24/driver/index.html
12. 12
Molecule v1
o Verifiers
Used for the validation/testing of the role.
• TestInfra (Default)
• ServerSpec
• Goss
https://molecule.readthedocs.io/en/stable-1.24/verifier.html
13. 13
Molecule v1
o Molecule subcommands
• molecule login ( --host <instance_name> )
• molecule syntax
• molecule create
• molecule converge
• molecule idempotence
• molecule verify
• ansible-lint
• flake
• Testinfra / Serverspec / Goss
• molecule destroy
All can be done with the subcommand: molecule test