@@ -34,7 +34,7 @@ func TestAccSFNActivity_basic(t *testing.T) {
34
34
Steps : []resource.TestStep {
35
35
{
36
36
Config : testAccActivityConfig_basic (rName ),
37
- Check : resource .ComposeTestCheckFunc (
37
+ Check : resource .ComposeAggregateTestCheckFunc (
38
38
testAccCheckActivityExists (ctx , resourceName ),
39
39
resource .TestCheckResourceAttrSet (resourceName , names .AttrCreationDate ),
40
40
resource .TestCheckResourceAttr (resourceName , names .AttrName , rName ),
@@ -63,7 +63,7 @@ func TestAccSFNActivity_disappears(t *testing.T) {
63
63
Steps : []resource.TestStep {
64
64
{
65
65
Config : testAccActivityConfig_basic (rName ),
66
- Check : resource .ComposeTestCheckFunc (
66
+ Check : resource .ComposeAggregateTestCheckFunc (
67
67
testAccCheckActivityExists (ctx , resourceName ),
68
68
acctest .CheckResourceDisappears (ctx , acctest .Provider , tfsfn .ResourceActivity (), resourceName ),
69
69
),
@@ -86,7 +86,7 @@ func TestAccSFNActivity_tags(t *testing.T) {
86
86
Steps : []resource.TestStep {
87
87
{
88
88
Config : testAccActivityConfig_basicTags1 (rName , acctest .CtKey1 , acctest .CtValue1 ),
89
- Check : resource .ComposeTestCheckFunc (
89
+ Check : resource .ComposeAggregateTestCheckFunc (
90
90
testAccCheckActivityExists (ctx , resourceName ),
91
91
resource .TestCheckResourceAttr (resourceName , acctest .CtTagsPercent , "1" ),
92
92
resource .TestCheckResourceAttr (resourceName , acctest .CtTagsKey1 , acctest .CtValue1 ),
@@ -99,7 +99,7 @@ func TestAccSFNActivity_tags(t *testing.T) {
99
99
},
100
100
{
101
101
Config : testAccActivityConfig_basicTags2 (rName , acctest .CtKey1 , acctest .CtValue1Updated , acctest .CtKey2 , acctest .CtValue2 ),
102
- Check : resource .ComposeTestCheckFunc (
102
+ Check : resource .ComposeAggregateTestCheckFunc (
103
103
testAccCheckActivityExists (ctx , resourceName ),
104
104
resource .TestCheckResourceAttr (resourceName , acctest .CtTagsPercent , "2" ),
105
105
resource .TestCheckResourceAttr (resourceName , acctest .CtTagsKey1 , acctest .CtValue1Updated ),
@@ -108,7 +108,7 @@ func TestAccSFNActivity_tags(t *testing.T) {
108
108
},
109
109
{
110
110
Config : testAccActivityConfig_basicTags1 (rName , acctest .CtKey2 , acctest .CtValue2 ),
111
- Check : resource .ComposeTestCheckFunc (
111
+ Check : resource .ComposeAggregateTestCheckFunc (
112
112
testAccCheckActivityExists (ctx , resourceName ),
113
113
resource .TestCheckResourceAttr (resourceName , acctest .CtTagsPercent , "1" ),
114
114
resource .TestCheckResourceAttr (resourceName , acctest .CtTagsKey2 , acctest .CtValue2 ),
@@ -125,15 +125,15 @@ func TestAccSFNActivity_encryptionConfigurationCustomerManagedKMSKey(t *testing.
125
125
reusePeriodSeconds := 900
126
126
kmsKeyResource := "aws_kms_key.kms_key_for_sfn"
127
127
128
- resource .Test (t , resource.TestCase {
128
+ resource .ParallelTest (t , resource.TestCase {
129
129
PreCheck : func () { acctest .PreCheck (ctx , t ) },
130
130
ErrorCheck : acctest .ErrorCheck (t , names .SFNServiceID ),
131
131
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
132
132
CheckDestroy : testAccCheckActivityDestroy (ctx ),
133
133
Steps : []resource.TestStep {
134
134
{
135
135
Config : testAccActivityConfig_encryptionConfigurationCustomerManagedKMSKey (rName , string (awstypes .EncryptionTypeCustomerManagedKmsKey ), reusePeriodSeconds ),
136
- Check : resource .ComposeTestCheckFunc (
136
+ Check : resource .ComposeAggregateTestCheckFunc (
137
137
testAccCheckActivityExists (ctx , resourceName ),
138
138
resource .TestCheckResourceAttr (resourceName , "encryption_configuration.#" , "1" ),
139
139
resource .TestCheckResourceAttr (resourceName , "encryption_configuration.0.type" , string (awstypes .EncryptionTypeCustomerManagedKmsKey )),
@@ -156,15 +156,15 @@ func TestAccSFNActivity_encryptionConfigurationServiceOwnedKey(t *testing.T) {
156
156
rName := sdkacctest .RandomWithPrefix (acctest .ResourcePrefix )
157
157
resourceName := "aws_sfn_activity.test"
158
158
159
- resource .Test (t , resource.TestCase {
159
+ resource .ParallelTest (t , resource.TestCase {
160
160
PreCheck : func () { acctest .PreCheck (ctx , t ) },
161
161
ErrorCheck : acctest .ErrorCheck (t , names .SFNServiceID ),
162
162
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
163
163
CheckDestroy : testAccCheckActivityDestroy (ctx ),
164
164
Steps : []resource.TestStep {
165
165
{
166
166
Config : testAccActivityConfig_encryptionConfigurationServiceOwnedKey (rName , string (awstypes .EncryptionTypeAwsOwnedKey )),
167
- Check : resource .ComposeTestCheckFunc (
167
+ Check : resource .ComposeAggregateTestCheckFunc (
168
168
testAccCheckActivityExists (ctx , resourceName ),
169
169
resource .TestCheckResourceAttr (resourceName , "encryption_configuration.#" , "1" ),
170
170
resource .TestCheckResourceAttr (resourceName , "encryption_configuration.0.type" , string (awstypes .EncryptionTypeAwsOwnedKey )),
0 commit comments