mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-03 01:17:56 +03:00
Fixed FixedService to include default "get_token" method (based on token field)
This commit is contained in:
parent
3ce03fa238
commit
96e853b5a9
@ -73,8 +73,8 @@ class TestOpenstackFixedUserService(UDSTransactionTestCase):
|
|||||||
|
|
||||||
self.assertEqual(state, types.states.TaskState.FINISHED)
|
self.assertEqual(state, types.states.TaskState.FINISHED)
|
||||||
|
|
||||||
# userservice_db Should have halle set_in_use(True)
|
if service.get_token() is None:
|
||||||
userservice_db.set_in_use.assert_called_once_with(True)
|
userservice_db.set_in_use.assert_called_once_with(True)
|
||||||
|
|
||||||
# vmid should have been assigned, so it must be in the assigned machines
|
# vmid should have been assigned, so it must be in the assigned machines
|
||||||
with service._assigned_access() as assigned_machines:
|
with service._assigned_access() as assigned_machines:
|
||||||
|
@ -76,8 +76,8 @@ class TestXenFixedUserService(UDSTransactionTestCase):
|
|||||||
|
|
||||||
self.assertEqual(state, types.states.TaskState.FINISHED)
|
self.assertEqual(state, types.states.TaskState.FINISHED)
|
||||||
|
|
||||||
# userservice_db Should have halle set_in_use(True)
|
if service.get_token() is None:
|
||||||
userservice_db.set_in_use.assert_called_once_with(True)
|
userservice_db.set_in_use.assert_called_once_with(True)
|
||||||
|
|
||||||
# vmid should have been assigned, so it must be in the assigned machines
|
# vmid should have been assigned, so it must be in the assigned machines
|
||||||
with service._assigned_access() as assigned_machines:
|
with service._assigned_access() as assigned_machines:
|
||||||
|
Loading…
Reference in New Issue
Block a user