From 7a09f9c678de2e8424dfd5e698843c2c99087a8a Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Thu, 31 Oct 2019 12:22:10 -0700 Subject: [PATCH] builder/amazon/common: remove dead test function fakeModifyEBSBackedInstanceState() --- .../amazon/common/step_modify_ebs_instance_test.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/builder/amazon/common/step_modify_ebs_instance_test.go b/builder/amazon/common/step_modify_ebs_instance_test.go index fea4bc2d6..c3142b057 100644 --- a/builder/amazon/common/step_modify_ebs_instance_test.go +++ b/builder/amazon/common/step_modify_ebs_instance_test.go @@ -1,14 +1,11 @@ package common import ( - "bytes" "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/ec2/ec2iface" - "github.com/hashicorp/packer/helper/multistep" - "github.com/hashicorp/packer/packer" ) // Define a mock struct to be used in unit tests for common aws steps. @@ -30,14 +27,3 @@ func (m *mockEC2Conn_ModifyEBS) ModifyInstanceAttribute(modifyInput *ec2.ModifyI } return output, nil } - -// Create statebag for running test -func fakeModifyEBSBackedInstanceState() multistep.StateBag { - state := new(multistep.BasicStateBag) - state.Put("ui", &packer.BasicUi{ - Reader: new(bytes.Buffer), - Writer: new(bytes.Buffer), - }) - state.Put("instance", "i-12345") - return state -}