This pull request includes updates to the GitHub Actions workflow and improvements to the test suite for the datasource_environments in the Terraform provider. The changes focus on conditional execution of jobs based on labels and enhancing test checks with more detailed state validations.
Workflow Enhancements:
.github/workflows/run_tests.yml: Added a new job should_run to determine if acceptance tests should run based on the presence of a specific label on pull requests. This job sets an output used to conditionally run subsequent jobs. [1][2][3]
Test Suite Improvements:
internal/services/environment/datasource_environments_test.go: Enhanced the test suite by adding new imports for state checking and known values. Refactored the TestAccEnvironmentsDataSource_Basic function to use more detailed state checks and output validations, ensuring comprehensive test coverage. [1][2]
This pull request includes updates to the GitHub Actions workflow and improvements to the test suite for the
datasource_environments
in the Terraform provider. The changes focus on conditional execution of jobs based on labels and enhancing test checks with more detailed state validations.Workflow Enhancements:
.github/workflows/run_tests.yml
: Added a new jobshould_run
to determine if acceptance tests should run based on the presence of a specific label on pull requests. This job sets an output used to conditionally run subsequent jobs. [1] [2] [3]Test Suite Improvements:
internal/services/environment/datasource_environments_test.go
: Enhanced the test suite by adding new imports for state checking and known values. Refactored theTestAccEnvironmentsDataSource_Basic
function to use more detailed state checks and output validations, ensuring comprehensive test coverage. [1] [2]