2013-06-26 21:55:11 -04:00
|
|
|
package vagrant
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2018-01-22 20:21:10 -05:00
|
|
|
|
|
|
|
"github.com/hashicorp/packer/packer"
|
2013-06-26 21:55:11 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestArtifact_ImplementsArtifact(t *testing.T) {
|
|
|
|
var raw interface{}
|
|
|
|
raw = &Artifact{}
|
|
|
|
if _, ok := raw.(packer.Artifact); !ok {
|
|
|
|
t.Fatalf("Artifact should be a Artifact")
|
|
|
|
}
|
|
|
|
}
|
2014-06-16 15:53:37 -04:00
|
|
|
|
|
|
|
func TestArtifact_Id(t *testing.T) {
|
|
|
|
artifact := NewArtifact("vmware", "./")
|
|
|
|
if artifact.Id() != "vmware" {
|
|
|
|
t.Fatalf("should return name as Id")
|
|
|
|
}
|
|
|
|
}
|