microsoft / terraform-provider-power-platform

Power Platform Terraform Provider
https://registry.terraform.io/providers/microsoft/power-platform/latest/docs
MIT License
31 stars 9 forks source link

Add helpers for getting configuration values #446

Closed mattdot closed 2 weeks ago

mattdot commented 2 weeks ago

This pull request includes several changes focused on improving the helper functions and context management within the codebase. The most important changes include the removal of the ObjectType field from the RequestContextValue struct, the addition of new configuration helper functions, and the introduction of unit tests for these new functions.

Context Management Improvements:

Configuration Helper Functions:

Unit Tests:

Minor Changes:

These changes enhance the maintainability and functionality of the codebase by improving context management, adding useful configuration utilities, and ensuring these utilities are thoroughly tested.This pull request introduces new utility functions for configuration management and updates the corresponding tests to ensure their correctness. The most important changes include the addition of GetConfigString and GetConfigBool functions in the helpers package and a comprehensive unit test for GetConfigString.

Configuration Management Enhancements:

Testing Enhancements:

Co-authored-by: [Author Name]