@@ -2181,59 +2181,6 @@ func TestAccS3Object_Identity_ExistingResource_NoRefresh_WithChange(t *testing.T
2181
2181
})
2182
2182
}
2183
2183
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
-
2237
2184
func testAccCheckObjectVersionIDDiffers (first , second * s3.GetObjectOutput ) resource.TestCheckFunc {
2238
2185
return func (s * terraform.State ) error {
2239
2186
if aws .ToString (first .VersionId ) == aws .ToString (second .VersionId ) {
0 commit comments