mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 12:26:34 +02:00
Add string slice with single value test function
This commit is contained in:
parent
d68f3543b8
commit
8a88e37f2b
@ -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},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user