2016-05-26 23:21:55 -04:00
|
|
|
package lxd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2018-01-22 20:21:10 -05:00
|
|
|
|
2020-11-19 18:10:00 -05:00
|
|
|
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
|
2016-05-26 23:21:55 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestCommunicator_ImplementsCommunicator(t *testing.T) {
|
|
|
|
var raw interface{}
|
|
|
|
raw = &Communicator{}
|
2020-11-19 18:10:00 -05:00
|
|
|
if _, ok := raw.(packersdk.Communicator); !ok {
|
2016-05-26 23:21:55 -04:00
|
|
|
t.Fatalf("Communicator should be a communicator")
|
|
|
|
}
|
|
|
|
}
|
2016-05-30 19:13:59 -04:00
|
|
|
|
|
|
|
// Acceptance tests
|
|
|
|
// TODO Execute a command
|
|
|
|
// TODO Upload a file
|
|
|
|
// TODO Download a file
|
|
|
|
// TODO Upload a Directory
|