Skip to content

Commit d998bc2

Browse files
committed
Removes duplicate test
1 parent c7a2216 commit d998bc2

File tree

1 file changed

+0
-53
lines changed

1 file changed

+0
-53
lines changed

internal/service/s3/object_test.go

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,59 +2181,6 @@ func TestAccS3Object_Identity_ExistingResource_NoRefresh_WithChange(t *testing.T
21812181
})
21822182
}
21832183

2184-
func TestAccS3Object_Identity_ExistingResource_NoRefresh_NoChange(t *testing.T) {
2185-
ctx := acctest.Context(t)
2186-
var conf s3.GetObjectOutput
2187-
rName := sdkacctest.RandomWithPrefix(acctest.ResourcePrefix)
2188-
resourceName := "aws_s3_object.object"
2189-
2190-
resource.ParallelTest(t, resource.TestCase{
2191-
PreCheck: func() { acctest.PreCheck(ctx, t) },
2192-
ErrorCheck: acctest.ErrorCheck(t, names.IAMServiceID),
2193-
CheckDestroy: testAccCheckObjectDestroy(ctx),
2194-
AdditionalCLIOptions: &resource.AdditionalCLIOptions{
2195-
Plan: resource.PlanOptions{
2196-
NoRefresh: true,
2197-
},
2198-
},
2199-
Steps: []resource.TestStep{
2200-
{
2201-
ExternalProviders: map[string]resource.ExternalProvider{
2202-
"aws": {
2203-
Source: "hashicorp/aws",
2204-
VersionConstraint: "6.0.0",
2205-
},
2206-
},
2207-
Config: testAccObjectConfig_basic(rName),
2208-
Check: resource.ComposeAggregateTestCheckFunc(
2209-
testAccCheckObjectExists(ctx, resourceName, &conf),
2210-
),
2211-
ConfigStateChecks: []statecheck.StateCheck{
2212-
tfstatecheck.ExpectNoIdentity(resourceName),
2213-
},
2214-
},
2215-
{
2216-
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
2217-
Config: testAccObjectConfig_basic(rName),
2218-
Check: resource.ComposeAggregateTestCheckFunc(
2219-
testAccCheckObjectExists(ctx, resourceName, &conf),
2220-
),
2221-
ConfigPlanChecks: resource.ConfigPlanChecks{
2222-
PreApply: []plancheck.PlanCheck{
2223-
plancheck.ExpectResourceAction(resourceName, plancheck.ResourceActionNoop),
2224-
},
2225-
PostApplyPostRefresh: []plancheck.PlanCheck{
2226-
plancheck.ExpectResourceAction(resourceName, plancheck.ResourceActionNoop),
2227-
},
2228-
},
2229-
ConfigStateChecks: []statecheck.StateCheck{
2230-
tfstatecheck.ExpectNoIdentity(resourceName),
2231-
},
2232-
},
2233-
},
2234-
})
2235-
}
2236-
22372184
func testAccCheckObjectVersionIDDiffers(first, second *s3.GetObjectOutput) resource.TestCheckFunc {
22382185
return func(s *terraform.State) error {
22392186
if aws.ToString(first.VersionId) == aws.ToString(second.VersionId) {

0 commit comments

Comments
 (0)