Commit 1a15371c authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

post-processor/docker-tag: remove decodeconfig usage

parent dc1e67b6
...@@ -2,11 +2,11 @@ package dockertag ...@@ -2,11 +2,11 @@ package dockertag
import ( import (
"bytes" "bytes"
"testing"
"github.com/mitchellh/packer/builder/docker" "github.com/mitchellh/packer/builder/docker"
"github.com/mitchellh/packer/common"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
"github.com/mitchellh/packer/post-processor/docker-import" "github.com/mitchellh/packer/post-processor/docker-import"
"testing"
) )
func testConfig() map[string]interface{} { func testConfig() map[string]interface{} {
...@@ -39,9 +39,8 @@ func TestPostProcessor_ImplementsPostProcessor(t *testing.T) { ...@@ -39,9 +39,8 @@ func TestPostProcessor_ImplementsPostProcessor(t *testing.T) {
func TestPostProcessor_PostProcess(t *testing.T) { func TestPostProcessor_PostProcess(t *testing.T) {
driver := &docker.MockDriver{} driver := &docker.MockDriver{}
p := &PostProcessor{Driver: driver} p := &PostProcessor{Driver: driver}
_, err := common.DecodeConfig(&p.config, testConfig()) if err := p.Configure(testConfig()); err != nil {
if err != nil { t.Fatalf("err: %s", err)
t.Fatalf("err %s", err)
} }
artifact := &packer.MockArtifact{ artifact := &packer.MockArtifact{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment