parent
8dce3fc9b1
commit
7f7df0165c
2 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ class TestGetLastHostUpdate(DBQueryTestCase):
|
|||
self.assertEqual(query.joins, ['host ON sessions.user_id = host.user_id'])
|
||||
self.assertEqual(query.clauses, ['host.id = %(hostID)i'])
|
||||
self.assertEqual(query.values, {'hostID': 1})
|
||||
self.assertEqual(query.columns, ['update_time'])
|
||||
self.assertEqual(query.columns, ['sessions.update_time'])
|
||||
|
||||
def test_valid_datetime(self):
|
||||
if sys.version_info[1] <= 6:
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class TestGetReadyHosts(unittest.TestCase):
|
|||
'host_config ON host.id = host_config.host_id'])
|
||||
self.assertEqual(query.clauses, ['active IS TRUE', 'enabled IS TRUE', 'expired IS FALSE',
|
||||
'master IS NULL', 'ready IS TRUE',
|
||||
"update_time > NOW() - '5 minutes'::interval"])
|
||||
"sessions.update_time > NOW() - '5 minutes'::interval"])
|
||||
self.assertEqual(query.values, {})
|
||||
self.assertEqual(query.columns, ['arches', 'capacity', 'host.id', 'name', 'task_load'])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue