github.com/rothwerx/packer@v0.9.0/post-processor/vagrant/artifact_test.go (about)

     1  package vagrant
     2  
     3  import (
     4  	"github.com/mitchellh/packer/packer"
     5  	"testing"
     6  )
     7  
     8  func TestArtifact_ImplementsArtifact(t *testing.T) {
     9  	var raw interface{}
    10  	raw = &Artifact{}
    11  	if _, ok := raw.(packer.Artifact); !ok {
    12  		t.Fatalf("Artifact should be a Artifact")
    13  	}
    14  }
    15  
    16  func TestArtifact_Id(t *testing.T) {
    17  	artifact := NewArtifact("vmware", "./")
    18  	if artifact.Id() != "vmware" {
    19  		t.Fatalf("should return name as Id")
    20  	}
    21  }