@@ -20,12 +20,12 @@ import (
20
20
"github.com/hashicorp/terraform-provider-aws/names"
21
21
)
22
22
23
- func testAccDataSource_basic (t * testing.T ) {
23
+ func TestAccAppSyncDataSource_basic (t * testing.T ) {
24
24
ctx := acctest .Context (t )
25
25
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
26
26
resourceName := "aws_appsync_datasource.test"
27
27
28
- resource . Test ( t , resource.TestCase {
28
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
29
29
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
30
30
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
31
31
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -57,12 +57,12 @@ func testAccDataSource_basic(t *testing.T) {
57
57
})
58
58
}
59
59
60
- func testAccDataSource_description (t * testing.T ) {
60
+ func TestAccAppSyncDataSource_description (t * testing.T ) {
61
61
ctx := acctest .Context (t )
62
62
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
63
63
resourceName := "aws_appsync_datasource.test"
64
64
65
- resource . Test ( t , resource.TestCase {
65
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
66
66
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
67
67
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
68
68
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -91,12 +91,12 @@ func testAccDataSource_description(t *testing.T) {
91
91
})
92
92
}
93
93
94
- func testAccDataSource_DynamoDB_region (t * testing.T ) {
94
+ func TestAccAppSyncDataSource_DynamoDB_region (t * testing.T ) {
95
95
ctx := acctest .Context (t )
96
96
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
97
97
resourceName := "aws_appsync_datasource.test"
98
98
99
- resource . Test ( t , resource.TestCase {
99
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
100
100
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
101
101
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
102
102
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -127,12 +127,12 @@ func testAccDataSource_DynamoDB_region(t *testing.T) {
127
127
})
128
128
}
129
129
130
- func testAccDataSource_DynamoDB_useCallerCredentials (t * testing.T ) {
130
+ func TestAccAppSyncDataSource_DynamoDB_useCallerCredentials (t * testing.T ) {
131
131
ctx := acctest .Context (t )
132
132
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
133
133
resourceName := "aws_appsync_datasource.test"
134
134
135
- resource . Test ( t , resource.TestCase {
135
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
136
136
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
137
137
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
138
138
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -237,12 +237,12 @@ func TestAccAppSyncDataSource_OpenSearchService_region(t *testing.T) {
237
237
})
238
238
}
239
239
240
- func testAccDataSource_HTTP_endpoint (t * testing.T ) {
240
+ func TestAccAppSyncDataSource_HTTP_endpoint (t * testing.T ) {
241
241
ctx := acctest .Context (t )
242
242
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
243
243
resourceName := "aws_appsync_datasource.test"
244
244
245
- resource . Test ( t , resource.TestCase {
245
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
246
246
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
247
247
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
248
248
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -275,12 +275,12 @@ func testAccDataSource_HTTP_endpoint(t *testing.T) {
275
275
})
276
276
}
277
277
278
- func testAccDataSource_type (t * testing.T ) {
278
+ func TestAccAppSyncDataSource_type (t * testing.T ) {
279
279
ctx := acctest .Context (t )
280
280
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
281
281
resourceName := "aws_appsync_datasource.test"
282
282
283
- resource . Test ( t , resource.TestCase {
283
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
284
284
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
285
285
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
286
286
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -304,14 +304,14 @@ func testAccDataSource_type(t *testing.T) {
304
304
})
305
305
}
306
306
307
- func testAccDataSource_Type_dynamoDB (t * testing.T ) {
307
+ func TestAccAppSyncDataSource_Type_dynamoDB (t * testing.T ) {
308
308
ctx := acctest .Context (t )
309
309
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
310
310
dynamodbTableResourceName := "aws_dynamodb_table.test"
311
311
iamRoleResourceName := "aws_iam_role.test"
312
312
resourceName := "aws_appsync_datasource.test"
313
313
314
- resource . Test ( t , resource.TestCase {
314
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
315
315
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
316
316
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
317
317
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -403,12 +403,12 @@ func TestAccAppSyncDataSource_Type_openSearchService(t *testing.T) {
403
403
})
404
404
}
405
405
406
- func testAccDataSource_Type_http (t * testing.T ) {
406
+ func TestAccAppSyncDataSource_Type_http (t * testing.T ) {
407
407
ctx := acctest .Context (t )
408
408
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
409
409
resourceName := "aws_appsync_datasource.test"
410
410
411
- resource . Test ( t , resource.TestCase {
411
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
412
412
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
413
413
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
414
414
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -432,12 +432,12 @@ func testAccDataSource_Type_http(t *testing.T) {
432
432
})
433
433
}
434
434
435
- func testAccDataSource_Type_httpAuth (t * testing.T ) {
435
+ func TestAccAppSyncDataSource_Type_httpAuth (t * testing.T ) {
436
436
ctx := acctest .Context (t )
437
437
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
438
438
resourceName := "aws_appsync_datasource.test"
439
439
440
- resource . Test ( t , resource.TestCase {
440
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
441
441
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
442
442
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
443
443
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -466,12 +466,12 @@ func testAccDataSource_Type_httpAuth(t *testing.T) {
466
466
})
467
467
}
468
468
469
- func testAccDataSource_Type_relationalDatabase (t * testing.T ) {
469
+ func TestAccAppSyncDataSource_Type_relationalDatabase (t * testing.T ) {
470
470
ctx := acctest .Context (t )
471
471
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
472
472
resourceName := "aws_appsync_datasource.test"
473
473
474
- resource . Test ( t , resource.TestCase {
474
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
475
475
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
476
476
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
477
477
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -495,12 +495,12 @@ func testAccDataSource_Type_relationalDatabase(t *testing.T) {
495
495
})
496
496
}
497
497
498
- func testAccDataSource_Type_relationalDatabaseWithOptions (t * testing.T ) {
498
+ func TestAccAppSyncDataSource_Type_relationalDatabaseWithOptions (t * testing.T ) {
499
499
ctx := acctest .Context (t )
500
500
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
501
501
resourceName := "aws_appsync_datasource.test"
502
502
503
- resource . Test ( t , resource.TestCase {
503
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
504
504
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
505
505
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
506
506
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -526,14 +526,14 @@ func testAccDataSource_Type_relationalDatabaseWithOptions(t *testing.T) {
526
526
})
527
527
}
528
528
529
- func testAccDataSource_Type_lambda (t * testing.T ) {
529
+ func TestAccAppSyncDataSource_Type_lambda (t * testing.T ) {
530
530
ctx := acctest .Context (t )
531
531
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
532
532
iamRoleResourceName := "aws_iam_role.test"
533
533
lambdaFunctionResourceName := "aws_lambda_function.test"
534
534
resourceName := "aws_appsync_datasource.test"
535
535
536
- resource . Test ( t , resource.TestCase {
536
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
537
537
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
538
538
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
539
539
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -558,14 +558,14 @@ func testAccDataSource_Type_lambda(t *testing.T) {
558
558
})
559
559
}
560
560
561
- func testAccDataSource_Type_eventBridge (t * testing.T ) {
561
+ func TestAccAppSyncDataSource_Type_eventBridge (t * testing.T ) {
562
562
ctx := acctest .Context (t )
563
563
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
564
564
iamRoleResourceName := "aws_iam_role.test"
565
565
eventBusResourceName := "aws_cloudwatch_event_bus.test"
566
566
resourceName := "aws_appsync_datasource.test"
567
567
568
- resource . Test ( t , resource.TestCase {
568
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
569
569
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
570
570
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
571
571
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -590,12 +590,12 @@ func testAccDataSource_Type_eventBridge(t *testing.T) {
590
590
})
591
591
}
592
592
593
- func testAccDataSource_Type_none (t * testing.T ) {
593
+ func TestAccAppSyncDataSource_Type_none (t * testing.T ) {
594
594
ctx := acctest .Context (t )
595
595
rName := fmt .Sprintf ("tfacctest%d" , sdkacctest .RandInt ())
596
596
resourceName := "aws_appsync_datasource.test"
597
597
598
- resource . Test ( t , resource.TestCase {
598
+ acctest . ParallelTest ( ctx , t , resource.TestCase {
599
599
PreCheck : func () { acctest .PreCheck (ctx , t ); acctest .PreCheckPartitionHasService (t , names .AppSyncEndpointID ) },
600
600
ErrorCheck : acctest .ErrorCheck (t , names .AppSyncServiceID ),
601
601
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
@@ -1223,16 +1223,10 @@ resource "aws_secretsmanager_secret_version" "test" {
1223
1223
resource "aws_rds_cluster" "test" {
1224
1224
cluster_identifier = %[1]q
1225
1225
engine = %[2]q
1226
- engine_mode = "serverless"
1227
1226
database_name = "mydb"
1228
1227
master_username = "foo"
1229
1228
master_password = "mustbeeightcharaters"
1230
1229
skip_final_snapshot = true
1231
-
1232
- scaling_configuration {
1233
- min_capacity = 1
1234
- max_capacity = 2
1235
- }
1236
1230
}
1237
1231
1238
1232
resource "aws_iam_role" "test" {
0 commit comments