Enable javascript in your browser for better experience. Need to know to enable it? Go here.
Published : Oct 27, 2021
NOT ON THE CURRENT EDITION
This blip is not on the current edition of the Radar. If it was on one of the last few editions, it is likely that it is still relevant. If the blip is older, it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the Radar. Understand more
Oct 2021
Assess ?

Uno de los principios clave de la infraestructura como código (IaC) es la prueba automatizada. Si tenemos una pirámide de pruebas sólidas con una buena cobertura a nivel de código en la parte inferior, podemos producir una mejor y más segura infraestructura. Desafortunadamente, las herramientas utilizadas en este espacio han sido escasas. Conftest es utilizado frecuentemente para probar código Terraforn JSON and HCL, pero es una herramienta de uso general. Regula es una alternativa atractiva. Similar a Conftest, Regula comprueba el cumplimiento del código de infraestructura mediante la aplicación de reglas escritas en lenguaje Open Policy Agent's Rego, pero también provee un conjunto de reglas específicas para validar configuraciones de infraestructura. Debido a que ambas herramientas están basadas en el lenguaje Rego, las reglas de Regula pueden ser ejecutadas en Conftest. Sin embargo, Regula viene con su propia herramienta de línea de comando para ejecutar pruebas como parte de un pipeline sin dependencia de Conftest u OPA. Nuestros desarrolladores han encontrado que Regula ahorra tiempo y produce un código de prueba mucho más legible, mantenible y sucinto, ambas herramientas solamente validan el código de infraestructura. Una suite completa también debería probar la infraestructura para asegurar que el código ha sido interpretado con precisión.

Download the PDF

 

 

 

English |  Português 

Sign up for the Technology Radar newsletter

 

 

Subscribe now

Visit our archive to read the previous volumes