packer-cn/post-processor/docker-save/post-processor_test.go

33 lines
565 B
Go
Raw Normal View History

2014-07-20 16:58:07 -04:00
package dockersave
import (
"bytes"
"testing"
2018-01-22 20:21:10 -05:00
"github.com/hashicorp/packer/packer"
2014-07-20 16:58:07 -04:00
)
func testConfig() map[string]interface{} {
return map[string]interface{}{}
}
func testPP(t *testing.T) *PostProcessor {
var p PostProcessor
if err := p.Configure(testConfig()); err != nil {
t.Fatalf("err: %s", err)
}
return &p
}
func testUi() *packer.BasicUi {
return &packer.BasicUi{
Reader: new(bytes.Buffer),
Writer: new(bytes.Buffer),
}
}
func TestPostProcessor_ImplementsPostProcessor(t *testing.T) {
var _ packer.PostProcessor = new(PostProcessor)
}