diff --git a/logical/framework/field_data_test.go b/logical/framework/field_data_test.go index a801f9c68d..6bb83fd8ac 100644 --- a/logical/framework/field_data_test.go +++ b/logical/framework/field_data_test.go @@ -180,6 +180,17 @@ func TestFieldDataGet(t *testing.T) { []string{"123", "abc"}, }, + "string slice type, single value": { + map[string]*FieldSchema{ + "foo": &FieldSchema{Type: TypeStringSlice}, + }, + map[string]interface{}{ + "foo": "abc", + }, + "foo", + []string{"abc"}, + }, + "comma string slice type, comma string with one value": { map[string]*FieldSchema{ "foo": &FieldSchema{Type: TypeCommaStringSlice},