mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 08:55:13 -04:00
Add string slice with single value test function
This commit is contained in:
parent
d68f3543b8
commit
8a88e37f2b
1 changed files with 11 additions and 0 deletions
|
|
@ -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…
Reference in a new issue