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

« back to all changes in this revision

Viewing changes to ceilometer/tests/dispatcher/test_file.py

  • Committer: Package Import Robot
  • Author(s): James Page, Corey Bryant, James Page
  • Date: 2015-02-19 14:59:07 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20150219145907-9jojybdsl64zcn14
Tags: 2015.1~b2-0ubuntu1
[ Corey Bryant ]
* New upstream release.
  - d/control: Align requirements with upstream.
  - d/p/skip-test.patch: Rebased.

[ James Page ]
* d/rules,d/p/skip-gabbi.patch: Skip tests that rely on python-gabbi until
  packaging and MIR is complete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# Copyright 2013 IBM Corp
3
3
#
4
 
# Author: Tong Li <litong01@us.ibm.com>
5
 
#
6
4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
7
5
# not use this file except in compliance with the License. You may obtain
8
6
# a copy of the License at
18
16
import os
19
17
import tempfile
20
18
 
21
 
from oslo.config import fixture as fixture_config
 
19
from oslo_config import fixture as fixture_config
22
20
from oslotest import base
23
21
 
24
22
from ceilometer.dispatcher import file
54
52
               'counter_volume': 1,
55
53
               }
56
54
        msg['message_signature'] = utils.compute_signature(
57
 
            msg,
58
 
            self.CONF.publisher.metering_secret,
 
55
            msg, self.CONF.publisher.telemetry_secret,
59
56
        )
60
57
 
61
58
        # The record_metering_data method should exist and not produce errors.
86
83
               'counter_volume': 1,
87
84
               }
88
85
        msg['message_signature'] = utils.compute_signature(
89
 
            msg,
90
 
            self.CONF.publisher.metering_secret,
 
86
            msg, self.CONF.publisher.telemetry_secret,
91
87
        )
92
88
 
93
89
        # The record_metering_data method should exist and not produce errors.