mirror of https://github.com/hashicorp/packer
parent
f4c9f96085
commit
c9748b8e70
@ -0,0 +1,29 @@
|
||||
package vagrant
|
||||
|
||||
import (
|
||||
"github.com/mitchellh/packer/packer"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func testConfig() map[string]interface{} {
|
||||
return map[string]interface{}{}
|
||||
}
|
||||
|
||||
func TestPostProcessor_ImplementsPostProcessor(t *testing.T) {
|
||||
var raw interface{}
|
||||
raw = &PostProcessor{}
|
||||
if _, ok := raw.(packer.PostProcessor); !ok {
|
||||
t.Fatalf("AWS PostProcessor should be a PostProcessor")
|
||||
}
|
||||
}
|
||||
|
||||
func TestBuilderPrepare_OutputPath(t *testing.T) {
|
||||
var p PostProcessor
|
||||
|
||||
c := testConfig()
|
||||
delete(c, "output")
|
||||
err := p.Configure(c)
|
||||
if err == nil {
|
||||
t.Fatalf("configure should fail")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue