diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-03-12 18:50:17 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-03-12 18:50:17 +0000 |
| commit | f0fc1240090938ae9d945bb91bfeda4e5d42ac9c (patch) | |
| tree | 28fdb200ea5448b3325200b2a7db14dc94c497d7 /nova/tests | |
| parent | 1c0d29ccccaa59aa253a7eb752f54d184addd17e (diff) | |
| parent | f398b9e195cda582bad57396b097dec274384c07 (diff) | |
Merge "Force resource updates to update updated_at"
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_db_api.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/tests/test_db_api.py b/nova/tests/test_db_api.py index 2b81f66f7..1653e942c 100644 --- a/nova/tests/test_db_api.py +++ b/nova/tests/test_db_api.py @@ -1497,6 +1497,12 @@ class CapacityTestCase(test.TestCase): self.assertEqual(2, int(stats['num_proj_12345'])) self.assertEqual(1, int(stats['num_tribbles'])) + def test_compute_node_update_always_updates_updated_at(self): + item = self._create_helper('host1') + item_updated = db.compute_node_update(self.ctxt, + item['id'], {}) + self.assertNotEqual(item['updated_at'], item_updated['updated_at']) + def test_compute_node_stat_prune(self): item = self._create_helper('host1') for stat in item['stats']: |
