diff options
author | Julien Danjou <julien@danjou.info> | 2017-05-16 11:49:26 +0200 |
---|---|---|
committer | Julien Danjou <julien@danjou.info> | 2017-05-29 13:24:53 +0200 |
commit | bb017e5f8f4ab88d77b746404a8bfe9e109c4487 (patch) | |
tree | 9a7683271a62933d6eabd29412bfdff9cad448aa /ceilometerclient | |
parent | cb34c240b8af82687574d4f216356647d834bb4b (diff) | |
download | python-ceilometerclient-bb017e5f8f4ab88d77b746404a8bfe9e109c4487.tar.gz |
Deprecate ceilometerclient
Change-Id: I9259b2e44ac1ba815a6eec5019f0460065996eac
Diffstat (limited to 'ceilometerclient')
-rw-r--r-- | ceilometerclient/shell.py | 5 | ||||
-rw-r--r-- | ceilometerclient/tests/functional/test_readonly_ceilometer.py | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/ceilometerclient/shell.py b/ceilometerclient/shell.py index 799a537..d096f3b 100644 --- a/ceilometerclient/shell.py +++ b/ceilometerclient/shell.py @@ -19,6 +19,7 @@ from __future__ import print_function import argparse import logging import sys +import warnings from oslo_utils import encodeutils from oslo_utils import importutils @@ -172,6 +173,10 @@ class CeilometerShell(object): return api_version, subcommand_parser.parse_args(argv) def main(self, argv): + warnings.warn( + "ceilometerclient is now deprecated as the Ceilometer API has " + "been deprecated. Please use either aodhclient, pankoclient or " + "gnocchiclient.") parsed = self.parse_args(argv) if parsed == 0: return 0 diff --git a/ceilometerclient/tests/functional/test_readonly_ceilometer.py b/ceilometerclient/tests/functional/test_readonly_ceilometer.py index 7b313f3..53e2192 100644 --- a/ceilometerclient/tests/functional/test_readonly_ceilometer.py +++ b/ceilometerclient/tests/functional/test_readonly_ceilometer.py @@ -63,9 +63,5 @@ class SimpleReadOnlyCeilometerClientTest(base.ClientTestBase): # Optional arguments - def test_ceilometer_version(self): - version = self.ceilometer('', flags='--version', merge_stderr=True) - self.assertTrue(re.search('^[0-9.]+', version)) - def test_ceilometer_debug_list(self): self.ceilometer('meter-list', flags='--debug') |