summaryrefslogtreecommitdiff
path: root/vendor/github.com/mitchellh/packer/provisioner/puppet-server/provisioner_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mitchellh/packer/provisioner/puppet-server/provisioner_test.go')
-rw-r--r--vendor/github.com/mitchellh/packer/provisioner/puppet-server/provisioner_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/mitchellh/packer/provisioner/puppet-server/provisioner_test.go b/vendor/github.com/mitchellh/packer/provisioner/puppet-server/provisioner_test.go
index a41a6bec..4c7746c7 100644
--- a/vendor/github.com/mitchellh/packer/provisioner/puppet-server/provisioner_test.go
+++ b/vendor/github.com/mitchellh/packer/provisioner/puppet-server/provisioner_test.go
@@ -1,10 +1,11 @@
package puppetserver
import (
- "github.com/hashicorp/packer/packer"
"io/ioutil"
"os"
"testing"
+
+ "github.com/hashicorp/packer/packer"
)
func testConfig() map[string]interface{} {
@@ -167,6 +168,9 @@ func TestProvisionerPrepare_facterFacts(t *testing.T) {
delete(config, "facter")
p = new(Provisioner)
err = p.Prepare(config)
+ if err != nil {
+ t.Fatalf("err: %s", err)
+ }
if p.config.Facter == nil {
t.Fatalf("err: Default facts are not set in the Puppet provisioner!")
}