2016-06-30 17:17:22 -04:00
|
|
|
package none
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2020-11-19 18:10:00 -05:00
|
|
|
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
|
2016-06-30 17:17:22 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestCommIsCommunicator(t *testing.T) {
|
|
|
|
var raw interface{}
|
|
|
|
raw = &comm{}
|
2020-11-19 18:10:00 -05:00
|
|
|
if _, ok := raw.(packersdk.Communicator); !ok {
|
2016-06-30 17:17:22 -04:00
|
|
|
t.Fatalf("comm must be a communicator")
|
|
|
|
}
|
|
|
|
}
|