This pull request introduces a new feature to modify the environment type and includes various updates to support this functionality. The changes span multiple files, adding new methods, DTOs, and tests, as well as modifying existing logic to accommodate the new feature.
This pull request introduces a new feature to modify the environment type and includes various updates to support this functionality. The changes span multiple files, adding new methods, DTOs, and tests, as well as modifying existing logic to accommodate the new feature.
New Feature: Modify Environment Type
internal/services/environment/api_environment.go
: AddedModifyEnvironmentType
method to allow environment type modification.internal/services/environment/dto.go
: IntroducedmodifySkuDto
for the new environment type modification functionality.internal/services/environment/resource_environment.go
: UpdatedUpdate
method to callModifyEnvironmentType
when the environment type changes. RemovedRequiresReplace
plan modifier forenvironment_type
. [1] [2] [3]Configuration and Constants
internal/constants/constants.go
: Reordered constants for better readability.internal/api/lifecycle.go
: Added fallback toHEADER_OPERATION_LOCATION
ifHEADER_LOCATION
is not present.Testing Enhancements
internal/services/environment/resource_environment_test.go
: Added unit and acceptance tests for validating the new environment type modification feature. [1] [2]internal/services/environment/tests/resource/Validate_Update_Environment_Type/get_environment_0.json
: Added test data for environment type validation tests.