Repository logo
Research Outputs
Projects
People
Statistics
  1. Home
  2. HSG CRIS
  3. HSG Publications
  4. Automated Infrastructure as Code Program Testing
Details

Automated Infrastructure as Code Program Testing

Journal
IEEE Transactions on Software Engineering
ISSN
0098-5589
1939-3520
2326-3881
Type
journal article
Date Issued
2024
Author(s)
Sokolowski, Daniel  
;
Spielmann, David  
;
Automated, "
DOI
10.1109/TSE.2024.3393070
Abstract
Infrastructure as Code (IaC) enables efficient deployment and operation, which are crucial to releasing software quickly. As setups can be complex, developers implement IaC programs in general-purpose programming languages like TypeScript and Python, using PL-IaC solutions like Pulumi and AWS CDK. The reliability of such IaC programs is even more relevant than in traditional software because a bug in IaC impacts the whole system. Yet, even though testing is a standard development practice, it is rarely used for IaC programs. For instance, in August 2022, less than 1 % of the public Pulumi IaC programs on GitHub implemented tests. Available IaC program testing techniques severely limit the development velocity or require much development effort.

To solve these issues, we propose Automated Configuration Testing (ACT), a methodology to test IaC programs in many configurations quickly and with low effort. ACT automatically mocks all resource definitions in the IaC program and uses generator and oracle plugins for test generation and validation. We implement ACT in ProTI, a testing tool for Pulumi TypeScript with a type-based generator and oracle, and support for application specifications. Our evaluation with 6 081 programs from GitHub and artificial benchmarks shows that ProTI can directly be applied to existing IaC programs, quickly finds bugs where current techniques are infeasible, and enables reusing existing generators and oracles thanks to its pluggable architecture.
Keywords
Property-based Testing
Fuzzing
Infrastructure as Code
DevOps
URL
https://www.alexandria.unisg.ch/handle/20.500.14171/120132
File(s)
Thumbnail Image
Name

2024_Automated-Infrastructure-as-Code-Program-Testing.pdf

Size

473.78 KB

Format

Adobe PDF

Checksum (MD5)

121262122f18aa0e114830ddeafec52c

Support
HSG researchers can find instructions here for adding or importing publications (DOI, ORCID). Please send questions to alexandria@unisg.ch

Built with DSpace-CRIS software - Extension maintained and optimized by 4Science

  • Accessibility settings
  • Privacy policy
  • End User Agreement
  • Send Feedback
Repository logo COAR Notify