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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2014-03-06 14:44:28 UTC
  • mto: (28.1.1 utopic-proposed) (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: package-import@ubuntu.com-20140306144428-rvphsh4igwyulzf0
Tags: upstream-2014.1~b3
ImportĀ upstreamĀ versionĀ 2014.1~b3

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
        self.assertEqual(old.rule['comparison_operator'], 'lt')
257
257
        self.assertEqual(old.rule['threshold'], 36)
258
258
 
 
259
    def test_alarm_without_time_constraints(self):
 
260
        old = list(self.conn.get_alarms(name='other-old-alaert'))[0]
 
261
        self.assertEqual([], old.time_constraints)
 
262
 
259
263
    def test_counter_unit(self):
260
264
        meters = list(self.conn.get_meters())
261
265
        self.assertEqual(len(meters), 1)