2013-07-30 20:56:42 -04:00
|
|
|
package chroot
|
|
|
|
|
2019-10-24 00:21:08 -04:00
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/hashicorp/packer/common/chroot"
|
|
|
|
)
|
2013-07-30 20:56:42 -04:00
|
|
|
|
|
|
|
func TestAttachVolumeCleanupFunc_ImplementsCleanupFunc(t *testing.T) {
|
|
|
|
var raw interface{}
|
|
|
|
raw = new(StepAttachVolume)
|
2019-10-24 00:21:08 -04:00
|
|
|
if _, ok := raw.(chroot.Cleanup); !ok {
|
2013-07-30 20:56:42 -04:00
|
|
|
t.Fatalf("cleanup func should be a CleanupFunc")
|
|
|
|
}
|
|
|
|
}
|