Skip to content

Commit 23f0113

Browse files
committed
polly: enable go-vcr support
```console % make testacc PKG=polly VCR_MODE=REPLAY_ONLY VCR_PATH=/tmp/polly-vcr-testdata/ make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... make: Running acceptance tests on branch: 🌿 f-go-vcr-polly 🌿... TF_ACC=1 go1.24.6 test ./internal/service/polly/... -v -count 1 -parallel 20 -timeout 360m -vet=off 2025/09/18 12:02:01 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 Initializing Terraform AWS Provider (SDKv2-style)... === RUN TestEndpointConfiguration === RUN TestEndpointConfiguration/no_config 2025/09/18 12:02:01 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 Initializing Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 [DEBUG] missing_context: A profile defined with name `org` is ignored. For use within a shared configuration file, a non-default profile must have `profile ` prefixed to the profile name. tf_aws.sdk=aws-sdk-go-v2 === RUN TestEndpointConfiguration/package_name_endpoint_config_overrides_aws_service_envvar 2025/09/18 12:02:01 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 Initializing Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 [DEBUG] missing_context: A profile defined with name `org` is ignored. For use within a shared configuration file, a non-default profile must have `profile ` prefixed to the profile name. tf_aws.sdk=aws-sdk-go-v2 === RUN TestEndpointConfiguration/package_name_endpoint_config_overrides_base_envvar 2025/09/18 12:02:01 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 Initializing Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 [DEBUG] missing_context: A profile defined with name `org` is ignored. For use within a shared configuration file, a non-default profile must have `profile ` prefixed to the profile name. tf_aws.sdk=aws-sdk-go-v2 === RUN TestEndpointConfiguration/service_aws_envvar_overrides_service_config_file 2025/09/18 12:02:01 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 Initializing Terraform AWS Provider (SDKv2-style)... === RUN TestEndpointConfiguration/base_endpoint_envvar 2025/09/18 12:02:01 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 Initializing Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 [DEBUG] missing_context: A profile defined with name `org` is ignored. For use within a shared configuration file, a non-default profile must have `profile ` prefixed to the profile name. tf_aws.sdk=aws-sdk-go-v2 === RUN TestEndpointConfiguration/service_config_file_overrides_base_config_file 2025/09/18 12:02:01 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 Initializing Terraform AWS Provider (SDKv2-style)... === RUN TestEndpointConfiguration/service_aws_envvar 2025/09/18 12:02:01 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 Initializing Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 [DEBUG] missing_context: A profile defined with name `org` is ignored. For use within a shared configuration file, a non-default profile must have `profile ` prefixed to the profile name. tf_aws.sdk=aws-sdk-go-v2 === RUN TestEndpointConfiguration/base_endpoint_envvar_overrides_service_config_file 2025/09/18 12:02:01 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 Initializing Terraform AWS Provider (SDKv2-style)... === RUN TestEndpointConfiguration/base_endpoint_envvar_overrides_base_config_file 2025/09/18 12:02:01 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 Initializing Terraform AWS Provider (SDKv2-style)... === RUN TestEndpointConfiguration/base_endpoint_config_file 2025/09/18 12:02:01 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 Initializing Terraform AWS Provider (SDKv2-style)... === RUN TestEndpointConfiguration/service_config_file 2025/09/18 12:02:01 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:01 Initializing Terraform AWS Provider (SDKv2-style)... === RUN TestEndpointConfiguration/use_fips_config_with_package_name_endpoint_config 2025/09/18 12:02:02 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:02 Initializing Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:02 [DEBUG] missing_context: A profile defined with name `org` is ignored. For use within a shared configuration file, a non-default profile must have `profile ` prefixed to the profile name. tf_aws.sdk=aws-sdk-go-v2 === RUN TestEndpointConfiguration/package_name_endpoint_config 2025/09/18 12:02:02 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:02 Initializing Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:02 [DEBUG] missing_context: A profile defined with name `org` is ignored. For use within a shared configuration file, a non-default profile must have `profile ` prefixed to the profile name. tf_aws.sdk=aws-sdk-go-v2 === RUN TestEndpointConfiguration/package_name_endpoint_config_overrides_service_config_file 2025/09/18 12:02:02 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:02 Initializing Terraform AWS Provider (SDKv2-style)... === RUN TestEndpointConfiguration/package_name_endpoint_config_overrides_base_config_file 2025/09/18 12:02:02 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:02 Initializing Terraform AWS Provider (SDKv2-style)... === RUN TestEndpointConfiguration/service_aws_envvar_overrides_base_envvar 2025/09/18 12:02:02 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:02 Initializing Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:02 [DEBUG] missing_context: A profile defined with name `org` is ignored. For use within a shared configuration file, a non-default profile must have `profile ` prefixed to the profile name. tf_aws.sdk=aws-sdk-go-v2 === RUN TestEndpointConfiguration/service_aws_envvar_overrides_base_config_file 2025/09/18 12:02:02 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:02 Initializing Terraform AWS Provider (SDKv2-style)... === RUN TestEndpointConfiguration/use_fips_config 2025/09/18 12:02:02 Creating Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:02 Initializing Terraform AWS Provider (SDKv2-style)... 2025/09/18 12:02:02 [DEBUG] missing_context: A profile defined with name `org` is ignored. For use within a shared configuration file, a non-default profile must have `profile ` prefixed to the profile name. tf_aws.sdk=aws-sdk-go-v2 --- PASS: TestEndpointConfiguration (0.37s) --- PASS: TestEndpointConfiguration/no_config (0.02s) --- PASS: TestEndpointConfiguration/package_name_endpoint_config_overrides_aws_service_envvar (0.03s) --- PASS: TestEndpointConfiguration/package_name_endpoint_config_overrides_base_envvar (0.03s) --- PASS: TestEndpointConfiguration/service_aws_envvar_overrides_service_config_file (0.02s) --- PASS: TestEndpointConfiguration/base_endpoint_envvar (0.02s) --- PASS: TestEndpointConfiguration/service_config_file_overrides_base_config_file (0.01s) --- PASS: TestEndpointConfiguration/service_aws_envvar (0.01s) --- PASS: TestEndpointConfiguration/base_endpoint_envvar_overrides_service_config_file (0.01s) --- PASS: TestEndpointConfiguration/base_endpoint_envvar_overrides_base_config_file (0.02s) --- PASS: TestEndpointConfiguration/base_endpoint_config_file (0.01s) --- PASS: TestEndpointConfiguration/service_config_file (0.01s) --- PASS: TestEndpointConfiguration/use_fips_config_with_package_name_endpoint_config (0.03s) --- PASS: TestEndpointConfiguration/package_name_endpoint_config (0.03s) --- PASS: TestEndpointConfiguration/package_name_endpoint_config_overrides_service_config_file (0.03s) --- PASS: TestEndpointConfiguration/package_name_endpoint_config_overrides_base_config_file (0.03s) --- PASS: TestEndpointConfiguration/service_aws_envvar_overrides_base_envvar (0.01s) --- PASS: TestEndpointConfiguration/service_aws_envvar_overrides_base_config_file (0.01s) --- PASS: TestEndpointConfiguration/use_fips_config (0.02s) === RUN TestAccPollyVoicesDataSource_basic === PAUSE TestAccPollyVoicesDataSource_basic === RUN TestAccPollyVoicesDataSource_languageCode === PAUSE TestAccPollyVoicesDataSource_languageCode === CONT TestAccPollyVoicesDataSource_basic === CONT TestAccPollyVoicesDataSource_languageCode voices_data_source_test.go:48: stopping VCR recorder voices_data_source_test.go:48: randomness source not found for test TestAccPollyVoicesDataSource_languageCode --- PASS: TestAccPollyVoicesDataSource_languageCode (7.20s) === NAME TestAccPollyVoicesDataSource_basic voices_data_source_test.go:20: stopping VCR recorder voices_data_source_test.go:20: randomness source not found for test TestAccPollyVoicesDataSource_basic --- PASS: TestAccPollyVoicesDataSource_basic (7.24s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/polly 14.139s ```
1 parent 208391a commit 23f0113

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/service/polly/voices_data_source_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func TestAccPollyVoicesDataSource_basic(t *testing.T) {
1717
ctx := acctest.Context(t)
1818
dataSourceName := "data.aws_polly_voices.test"
1919

20-
resource.ParallelTest(t, resource.TestCase{
20+
acctest.ParallelTest(ctx, t, resource.TestCase{
2121
PreCheck: func() {
2222
acctest.PreCheck(ctx, t)
2323
acctest.PreCheckPartitionHasService(t, names.PollyEndpointID)
@@ -45,7 +45,7 @@ func TestAccPollyVoicesDataSource_languageCode(t *testing.T) {
4545
ctx := acctest.Context(t)
4646
dataSourceName := "data.aws_polly_voices.test"
4747

48-
resource.ParallelTest(t, resource.TestCase{
48+
acctest.ParallelTest(ctx, t, resource.TestCase{
4949
PreCheck: func() {
5050
acctest.PreCheck(ctx, t)
5151
acctest.PreCheckPartitionHasService(t, names.PollyEndpointID)

0 commit comments

Comments
 (0)