~ubuntu-branches/ubuntu/vivid/ceilometer/vivid-proposed

« back to all changes in this revision

Viewing changes to ceilometer/tests/storage/test_storage_scenarios.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Corey Bryant
  • Date: 2015-05-03 13:38:43 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20150503133843-b6omn71ho5f3zm3d
Tags: 2015.1.0-0ubuntu1
[ Corey Bryant ]
* New upstream release for OpenStack kilo (LP: #1449744):
  - d/p/disable-kafka.patch: Rebased.

Show diffs side-by-side

added added

removed removed

Lines of Context:
553
553
    def test_get_samples_by_resource(self):
554
554
        f = storage.SampleFilter(user='user-id', resource='resource-id')
555
555
        results = list(self.conn.get_samples(f))
556
 
        self.assertIsNotEmpty(results)
557
 
        meter = results[1]
558
 
        d = meter.as_dict()
 
556
        self.assertEqual(2, len(results))
 
557
        d = results[1].as_dict()
559
558
        self.assertEqual(timeutils.utcnow(), d['recorded_at'])
560
559
        del d['recorded_at']
561
560
        self.assertEqual(self.msgs[0], d)