builder/amazon/common: remove dead test function fakeModifyEBSBackedInstanceState()

This commit is contained in:
Lars Lehtonen 2019-10-31 12:22:10 -07:00
parent 0a13b620d6
commit 7a09f9c678
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2
1 changed files with 0 additions and 14 deletions

View File

@ -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
}