This pull request includes several updates to the Power Platform provider, focusing on adding new attributes, modifying test cases, and updating workflow configurations. The most important changes include adding new fields to resources and data sources, updating test cases to reflect these changes, and modifying the GitHub Actions workflow for better coverage.
Enhancements to Resources and Data Sources:
Added description and cadence attributes to powerplatform_environment resource in docs/resources/environment.md and examples/resources/powerplatform_environment/resource.tf. [1][2][3]
Added administration_mode_enabled and background_operation_enabled attributes to dataverse in docs/resources/environment.md and docs/data-sources/environments.md. [1][2]
Updated internal/powerplatform/services/environment/models_environment.go to include new fields in the DTOs and conversion functions. [1][2][3][4][5][6][7][8][9]
Test Case Updates:
Updated acceptance and unit tests in internal/powerplatform/services/environment/datasource_environments_test.go to include checks for description and cadence attributes. [1][2][3][4]
Workflow Configuration:
Modified .github/workflows/run_tests.yml to run tests on all Go files and updated the test command to run only acceptance tests. [1][2]
Code Improvements:
Removed unnecessary check for unknown plan values in internal/powerplatform/modifiers/require_replace_object_to_empty_modifier.go.
Added new imports for validators in internal/powerplatform/services/environment/datasource_environments.go. [1][2][3]
These changes enhance the functionality and maintainability of the Power Platform provider by adding new features and improving test coverage.
This pull request includes several updates to the Power Platform provider, focusing on adding new attributes, modifying test cases, and updating workflow configurations. The most important changes include adding new fields to resources and data sources, updating test cases to reflect these changes, and modifying the GitHub Actions workflow for better coverage.
Enhancements to Resources and Data Sources:
description
andcadence
attributes topowerplatform_environment
resource indocs/resources/environment.md
andexamples/resources/powerplatform_environment/resource.tf
. [1] [2] [3]administration_mode_enabled
andbackground_operation_enabled
attributes todataverse
indocs/resources/environment.md
anddocs/data-sources/environments.md
. [1] [2]internal/powerplatform/services/environment/models_environment.go
to include new fields in the DTOs and conversion functions. [1] [2] [3] [4] [5] [6] [7] [8] [9]Test Case Updates:
internal/powerplatform/services/environment/datasource_environments_test.go
to include checks fordescription
andcadence
attributes. [1] [2] [3] [4]Workflow Configuration:
.github/workflows/run_tests.yml
to run tests on all Go files and updated the test command to run only acceptance tests. [1] [2]Code Improvements:
internal/powerplatform/modifiers/require_replace_object_to_empty_modifier.go
.internal/powerplatform/services/environment/datasource_environments.go
. [1] [2] [3]These changes enhance the functionality and maintainability of the Power Platform provider by adding new features and improving test coverage.