Fix a few missing TTL core changes (#4265)

* Fix missing ttl handling in backends

* fix test
This commit is contained in:
Chris Hoffman
2018-04-04 06:43:21 -04:00
committed by GitHub
parent 4391af6e71
commit def6e525be
9 changed files with 23 additions and 59 deletions

View File

@@ -350,10 +350,6 @@ func TestBackend_basic(t *testing.T) {
if err != nil || (credsResp != nil && credsResp.IsError()) {
t.Fatalf("err:%s resp:%#v\n", err, credsResp)
}
// Test for #3812
if credsResp.Secret.TTL != 10*time.Minute {
t.Fatalf("unexpected TTL of %d", credsResp.Secret.TTL)
}
// Update the role with no max ttl
data = map[string]interface{}{
"db_name": "plugin-test",