Skip to content

Add Policy Integration test feature#7

Merged
taoyangcloud merged 22 commits intomainfrom
feature/integration-tests
Apr 4, 2026
Merged

Add Policy Integration test feature#7
taoyangcloud merged 22 commits intomainfrom
feature/integration-tests

Conversation

@taoyangcloud
Copy link
Copy Markdown
Contributor

Pull Request


ℹ️ Ensure your PR title follows the format [<Work Item>] [<Type>] <Description>


Summary of changes

  • Add Policy Integration test feature
  • Various update to policy definitions and initiatives
  • Bump various GitHub action tasks to latest versions

Pipeline Reference URL

Pipeline Status
Policy Definitions policy-definitions
Policy Initiatives policy-initiatives
Policy Assignments policy-assignments
Policy Exemptions policy-exemptions

Checklist

  • My corresponding pipelines / checks run clean and green without any errors or warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (readme)
  • I have made corresponding changes to the test cases
  • I did format my code

…compliance checks

- Introduced configuration file for policy assignments in `config.json`.
- Created Bicep templates for both compliant (`main.good.bicep`) and non-compliant (`main.bad.bicep`) App Services and Function Apps.
- Developed a comprehensive test template (`main.test.bicep`) to validate policy adherence across multiple scenarios, including cross-subscription private endpoints.
- Implemented PowerShell test scripts (`tests.ps1`) to automate the testing of policy compliance and resource configurations.
- Ensured that all resources are set up to either comply with or violate specific policies for thorough testing.
- Created `pipeline-initiate-policy-integration-tests.ps1` to initiate policy integration tests based on configuration.
- Developed `pipeline-map-policy-integration-test-cases.ps1` to map required test cases based on modified files in pull requests.
- Introduced `pipeline-policy-int-test-compliance-scan.ps1` for triggering policy compliance scans using Azure CLI.
- Added `newAesKey.ps1` script to generate AES encryption keys and initialization vectors.
@taoyangcloud
Copy link
Copy Markdown
Contributor Author

LGTM🚀

@taoyangcloud taoyangcloud merged commit 46dcb1a into main Apr 4, 2026
62 checks passed
@taoyangcloud taoyangcloud deleted the feature/integration-tests branch April 4, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant