'Confirm we can create an alarm and trigger it.'

def test_alarm(self):

    stack_identifier = self.stack_create(template=self.template)
    sample = {}
    sample['counter_type'] = 'gauge'
    sample['counter_name'] = 'test_meter'
    sample['counter_volume'] = 1
    sample['counter_unit'] = 'count'
    sample['resource_metadata'] = {'metering.stack_id': stack_identifier.split('/')[(-1)]}
    sample['resource_id'] = 'shouldnt_matter'
    self.metering_client.samples.create(**sample)
    self.assertTrue(test.call_until_true(120, 2, self.check_instance_count, stack_identifier, 2))
