October 6, 2022
Programmability and Automation Meetup: Infrastructure Test Automation Series #2 - More Pytest
As crucial as automating your network deployment is, the ability to ensure correctness and validate proper behavior and state of your network is the key to a successful automation strategy.
As crucial as automating your network deployment is, the ability to ensure correctness and validate proper behavior and state of your network is the key to a successful automation strategy. Test automation for your network deployments helps build the early detection system that the development team needs to avoid unintended outcomes. More importantly, it helps develop the trust of the customers who rely on the automation or the infrastructure it builds.
This session, presented by WWT's Tafsir Thiam , is the second of the Test Automation series. We built on the first discussion around pytest
to include more advanced concepts around fixtures and hooks. We walked through more realistic network tests and learned how to leverage existing data sources like Ansible inventories and intent data to arrange and assert our tests. Finally, we looked at how to leverage the testinfra
plugin for better integrations with Ansible and to improve our tests by removing boilerplate code.