1
0
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:
Adolfo Gómez García 2024-06-26 01:59:16 +02:00
parent 3ce03fa238
commit 96e853b5a9
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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: