diff --git a/builtin/providers/aws/structure_test.go b/builtin/providers/aws/structure_test.go index a65fdc83c..49b42458f 100644 --- a/builtin/providers/aws/structure_test.go +++ b/builtin/providers/aws/structure_test.go @@ -241,19 +241,3 @@ func Test_expandStringList(t *testing.T) { } } - -func Test_expandStringListWildcard(t *testing.T) { - stringList := expandStringList([]interface{}{"us-east-1a,us-east-1b"}) - expected := []string{ - "us-east-1a", - "us-east-1b", - } - - if !reflect.DeepEqual(stringList, expected) { - t.Fatalf( - "Got:\n\n%#v\n\nExpected:\n\n%#v\n", - stringList, - expected) - } - -} diff --git a/builtin/provisioners/remote-exec/resource_provisioner_test.go b/builtin/provisioners/remote-exec/resource_provisioner_test.go index 74944771f..47a723947 100644 --- a/builtin/provisioners/remote-exec/resource_provisioner_test.go +++ b/builtin/provisioners/remote-exec/resource_provisioner_test.go @@ -44,7 +44,7 @@ func TestResourceProvider_Validate_bad(t *testing.T) { func TestResourceProvider_generateScript(t *testing.T) { p := new(ResourceProvisioner) conf := testConfig(t, map[string]interface{}{ - "inline": []string{ + "inline": []interface{}{ "cd /tmp", "wget http://foobar", "exit 0", @@ -69,7 +69,7 @@ exit 0 func TestResourceProvider_CollectScripts_inline(t *testing.T) { p := new(ResourceProvisioner) conf := testConfig(t, map[string]interface{}{ - "inline": []string{ + "inline": []interface{}{ "cd /tmp", "wget http://foobar", "exit 0", diff --git a/helper/config/validator_test.go b/helper/config/validator_test.go index cd6aa3c79..c2119d18e 100644 --- a/helper/config/validator_test.go +++ b/helper/config/validator_test.go @@ -56,7 +56,7 @@ func TestValidator_array(t *testing.T) { // Valid c = testConfig(t, map[string]interface{}{ "foo": "bar", - "nested": []string{"foo", "bar"}, + "nested": []interface{}{"foo", "bar"}, }) testValid(v, c) @@ -124,7 +124,7 @@ func TestValidator_complexNested(t *testing.T) { "ingress": []map[string]interface{}{ map[string]interface{}{ "from_port": "80", - "cidr_blocks": []string{"foo"}, + "cidr_blocks": []interface{}{"foo"}, }, }, })