Giter Site home page Giter Site logo

ansible-molecule's Introduction

Ansible Molecule test example

This repo contains example of how Molecule can be used and incorporated into Ansible Development Lifecycle

The why

Test techniques play an important role in development, and this is no different when we are talking about Infrastructure as Code (IaC).

Developers are always testing, and constant feedback is crucial to drive development. If it takes too long to get feedback on a change, steps might be too large, identifying te breaking changes becomes hard to spot.

Baby steps and fast feedback are the important parts in TDD (test-driven development).

Molecule

This is an example for how Molecule can be used to test the state of the automation.

In this example we are using Testinfra to test the automation.

Ansible as verifier can also be used to test. Here is an example blog post on how to use Ansible to verify within molecule.

Requirements

  • ansible >= 2.9
  • pytest
  • ansible-builder
  • pytest-testinfra

Roles

There are two example roles with example tasks. The roles have the test cases defined in their respective README.

ansible-molecule's People

Contributors

mannyci avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.