mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
logical/framework: handle nil duration value. Fixes #408
This commit is contained in:
@@ -135,6 +135,17 @@ func TestFieldDataGet(t *testing.T) {
|
||||
"foo",
|
||||
42,
|
||||
},
|
||||
|
||||
"duration type, nil value": {
|
||||
map[string]*FieldSchema{
|
||||
"foo": &FieldSchema{Type: TypeDurationSecond},
|
||||
},
|
||||
map[string]interface{}{
|
||||
"foo": nil,
|
||||
},
|
||||
"foo",
|
||||
0,
|
||||
},
|
||||
}
|
||||
|
||||
for name, tc := range cases {
|
||||
|
||||
Reference in New Issue
Block a user