prowler-test-sdk

Generate standardized Prowler SDK test patterns for AWS, Azure, GCP, and Kubernetes.

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/adbertram/Devolutions-CIEM --skill prowler-test-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prowler-test-sdk
Source: https://github.com/adbertram/Devolutions-CIEM/tree/main/prowler/skills/prowler-test-sdk
Command: npx skills add https://github.com/adbertram/Devolutions-CIEM --skill prowler-test-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides standardized testing patterns for Prowler SDK checks and services written in Python, enabling reliable, repeatable unit tests across providers and services.

Core Features & Use Cases

  • SDK test patterns: Fixtures, mocks, parametrization, and markers tailored to Prowler's Python SDK tests.
  • Provider-specific guidance: AWS moto-based tests and Azure/GCP/Kubernetes MagicMock-based tests, including best practices for when to apply each mocking approach.
  • Use Case: When adding a new SDK check, quickly scaffold tests that cover no resources, compliant resources, and non-compliant resources.

Quick Start

Use the templates and run pytest to validate Prowler SDK tests against the target provider.

Frequently Asked Questions about prowler-test-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write unit tests for Prowler SDK checks in Python?

To test Prowler SDK checks in Python, use AWS moto-based tests for AWS and MagicMock-based tests for Azure, GCP, and Kubernetes to mock provider resources and validate check compliance states reliably.

What is the best way to mock AWS resources for Prowler SDK testing?

The best way to mock AWS resources for Prowler SDK testing is using moto-based tests to simulate provider responses, allowing you to validate checks against compliant and non-compliant resources deterministically.

Do I need pytest and moto to run Prowler SDK test patterns?

Yes, you need pytest, unittest.mock, and moto as standard Python testing dependencies, along with the project's provider fixtures, to run Prowler SDK test patterns deterministically across different cloud environments.

How do I test Prowler checks for Azure, GCP, and Kubernetes providers?

To test Prowler checks for Azure, GCP, and Kubernetes providers, use MagicMock-based tests to simulate provider services and fixtures, ensuring reliable unit tests without requiring actual cloud connections.

Can I scaffold tests for Prowler SDK checks covering no resources and compliant resources?

Yes, you can scaffold tests covering no resources, compliant resources, and non-compliant resources by applying the provided test patterns, fixtures, and parametrization tailored to Prowler's Python SDK.

When should I use moto versus MagicMock for Prowler provider testing?

Use moto for AWS provider testing to simulate API responses, and use MagicMock for Azure, GCP, and Kubernetes testing when you need to mock specific provider services and responses without real API calls.