From 0e0cd28071942199858f2e9384368473c3c8d54a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 10 Jun 2015 19:31:48 -0700 Subject: [PATCH] builder/digitalocean: fix failing unit tests --- builder/digitalocean/builder_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builder/digitalocean/builder_test.go b/builder/digitalocean/builder_test.go index 3d2378f2d..22c9e3b50 100644 --- a/builder/digitalocean/builder_test.go +++ b/builder/digitalocean/builder_test.go @@ -10,6 +10,9 @@ import ( func testConfig() map[string]interface{} { return map[string]interface{}{ "api_token": "bar", + "region": "nyc2", + "size": "512mb", + "image": "foo", } } @@ -56,6 +59,7 @@ func TestBuilderPrepare_Region(t *testing.T) { config := testConfig() // Test default + delete(config, "region") warnings, err := b.Prepare(config) if len(warnings) > 0 { t.Fatalf("bad: %#v", warnings) @@ -87,6 +91,7 @@ func TestBuilderPrepare_Size(t *testing.T) { config := testConfig() // Test default + delete(config, "size") warnings, err := b.Prepare(config) if len(warnings) > 0 { t.Fatalf("bad: %#v", warnings) @@ -118,6 +123,7 @@ func TestBuilderPrepare_Image(t *testing.T) { config := testConfig() // Test default + delete(config, "image") warnings, err := b.Prepare(config) if len(warnings) > 0 { t.Fatalf("bad: %#v", warnings)