Starts a Thread that every 12 hours looks for expired and abandoned sessions tokens, and remove them from cache.
Closes #441
How test the solution?
You can change the expiration time of a specific session in Oneview, just apply a request like below (changing the ONEVIEW_IP and ONEVIEW_TOKEN to valid values):
The idleTimeout is the value in milliseconds to keep alive the session.
For our example above, 60000 is the time to keep alive during 1 minute.
Steps to test:
1) Create more than one session on Redfish server.
2) List the Redfish sessions accessing /redfish/v1/SessionService/Sessions
3) Post a request to change the session idleTimeout to the Oneview server
4) Wait the time to expire Oneview session based on idleTimeout
5) List the Redfish sessions again. You should see one session less than previously.
Closes #441
How test the solution?
You can change the expiration time of a specific session in Oneview, just apply a request like below (changing the ONEVIEW_IP and ONEVIEW_TOKEN to valid values):
The
idleTimeout
is the value in milliseconds to keep alive the session. For our example above, 60000 is the time to keep alive during 1 minute.Steps to test: 1) Create more than one session on Redfish server. 2) List the Redfish sessions accessing
/redfish/v1/SessionService/Sessions
3) Post a request to change the sessionidleTimeout
to the Oneview server 4) Wait the time to expire Oneview session based on idleTimeout 5) List the Redfish sessions again. You should see one session less than previously.