Rejig Lease terminology internally; also, put a few JSON names back to their original values

This commit is contained in:
Jeff Mitchell
2015-08-20 22:27:01 -07:00
parent 97112665e8
commit e7f2a54720
10 changed files with 45 additions and 58 deletions

View File

@@ -258,8 +258,8 @@ func TestBackendHandleRequest_renewExtend(t *testing.T) {
}
req := logical.RenewRequest("/foo", secret.Response(nil, nil).Secret, nil)
req.Secret.LeaseIssue = time.Now().UTC()
req.Secret.LeaseIncrement = 1 * time.Hour
req.Secret.IssueTime = time.Now().UTC()
req.Secret.Increment = 1 * time.Hour
resp, err := b.HandleRequest(req)
if err != nil {
t.Fatalf("err: %s", err)