Automated testing and debugging of automation scripts (e.g., Chef)