Change end date in test_update_host_reservation
This patch changes the end date of leases to update in a test scenario to have a period of time to prevent them from being rejected with the "End date must be later than current and start date" error. Change-Id: Id8bc8d5c850dd10d2d85b51620b2effe5494320e Closes-Bug: #1821731
This commit is contained in:
parent
6c10dff9a0
commit
2e6d779897
@ -294,7 +294,7 @@ class TestHostReservationScenario(rrs.ResourceReservationScenarioTest):
|
||||
time.sleep(75)
|
||||
|
||||
# update the lease end_time
|
||||
end_time = datetime.datetime.utcnow()
|
||||
end_time = datetime.datetime.utcnow() + datetime.timedelta(seconds=30)
|
||||
body = {
|
||||
'end_date': end_time.strftime('%Y-%m-%d %H:%M')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user