packer-cn/builder/amazon/chroot/step_attach_volume_test.go

16 lines
307 B
Go
Raw Normal View History

package chroot
2019-10-24 04:21:08 +00:00
import (
"testing"
2020-12-17 13:29:25 -08:00
"github.com/hashicorp/packer-plugin-sdk/chroot"
2019-10-24 04:21:08 +00:00
)
func TestAttachVolumeCleanupFunc_ImplementsCleanupFunc(t *testing.T) {
var raw interface{}
raw = new(StepAttachVolume)
2019-10-24 04:21:08 +00:00
if _, ok := raw.(chroot.Cleanup); !ok {
t.Fatalf("cleanup func should be a CleanupFunc")
}
}