commit | dbd025191cd54ef6b7a6e919c32a7c2033e2c2b1 | [log] [tgz] |
---|---|---|
author | Andrea Frittoli <andrea.frittoli@hp.com> | Fri Mar 21 10:06:19 2014 +0000 |
committer | Andrea Frittoli <andrea.frittoli@hp.com> | Mon Mar 24 14:00:15 2014 +0000 |
tree | ddbee9cdcba36c1392d471ada2701fac644b2380 | |
parent | 4e1f1adadeebbfbfa23313b647af6f43a2685916 [diff] |
Renew token before expiry time Modify is_expired so that token is renewed before it actually expires. The threshold is set to 60s, which is plenty of time for any API call to complete. Use utcnow() instead of utc(). Includes unit tests for is_expired. Closes bug 1292145 Change-Id: Ic062b4352612c936d1f83fcb7cb09154eb628d9e