2016-05-25 15:34:36 -04:00
|
|
|
package lxc
|
|
|
|
|
|
|
|
import (
|
2016-05-25 15:34:51 -04:00
|
|
|
"testing"
|
2018-01-22 20:21:10 -05:00
|
|
|
|
2020-12-17 16:29:25 -05:00
|
|
|
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
|
2016-05-25 15:34:36 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestCommunicator_ImplementsCommunicator(t *testing.T) {
|
2016-05-25 15:34:51 -04:00
|
|
|
var raw interface{}
|
|
|
|
raw = &LxcAttachCommunicator{}
|
2020-11-19 18:10:00 -05:00
|
|
|
if _, ok := raw.(packersdk.Communicator); !ok {
|
2016-05-25 15:34:51 -04:00
|
|
|
t.Fatalf("Communicator should be a communicator")
|
|
|
|
}
|
2016-05-25 15:34:36 -04:00
|
|
|
}
|