Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Quality Matters in Ansible Automation - AnsibleFest 2019

Red Hat Ansible Automation via YouTube

Overview

Explore the importance of quality assurance in Ansible automation through this breakout session from AnsibleFest 2019. Dive into the world of ansible-test, learning its purpose, creation, and new features in Ansible 2.9. Discover how to get started with collections and version control, and master the art of running ansible-test. Gain insights into sanity tests, their implementation, and workflow. Understand the significance of integration tests, learn how to write and run them, and explore their configuration options. Delve into unit testing with ansible-test, including writing, layout, and execution tips. Examine the concept of code coverage, its benefits, and workflow. Acquire valuable knowledge on continuous integration recommendations and useful options for implementing ansible-test in CI pipelines. Conclude with a Q&A session to address any remaining questions about quality assurance in Ansible automation.

Syllabus

Intro
Background
What is ansible-test?
Why Create ansible-test?
What's New With Ansible 2.9?
Getting Started
Collection Path
Collections and Version Control
Running ansible-test
What are Sanity Tests?
Running Sanity Tests
Sanity Test Ignore Entries
Sanity Test Layout
Example Sanity Test Ignores
Basic Sanity Test Workflow
Why Integration Tests?
Writing Integration Tests
Role Based Integration Test Layout
Script Based Integration Test Layout
Running Integration Tests
Integration Test Configuration "aliases"
Disabling Integration Tests
Why Unit Test?
Why Unit Test With ansible-test?
Writing Unit Tests
Unit Test Layout
Running Unit Tests
Unit Testing Tips
What is Code Coverage?
Why Use Code Coverage?
Code Coverage Workflow
Continuous Integration Recommendations
Continuous Integration With ansible-test
Useful Options for Continuous Integration
Conclusion
Questions?

Taught by

Red Hat Ansible Automation

Reviews

Start your review of Quality Matters in Ansible Automation - AnsibleFest 2019

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.