stestr is recommended by OpenStack Project Testing Interface for running tests
[1]. This change migrates to stestr for running unit tests and coverage
job. Modified `cover` env allows running it as Zuul job and visualising
its results in Gerrit.
[1] https://governance.openstack.org/tc/reference/pti/python.html#python-test-running
Change-Id: I9e8b79d7a18cd36946daff10abb1a2f43b1aa3a1
The "topic" parameter of the __init__method of Notifier has been
deprecated and will be removed. see change[1].
[1] Id89957411aa219cff92fafec2f448c81cb57b3ca
Change-Id: If41b0aa4f9afc90d049063bf509723c3a8295db7
The ceilometer/tools/ceilometer-test-event.py script has been broken by
changes about yaml configuration loading.
Change-Id: I15b6bb053cf93847886c35e6af5c3eccb2984dba
Since we moved all the alarming code and subsystem to the Aodh project,
remove it from Ceilometer.
Depends-On: I3983128d2d964b0f1f3326948b27f5d94df65a04
Depends-On: I99c9f2be0bbc70f289da5c2ba22698b8b7dc4495
Change-Id: Id169a914c1d1f2f5ad03ebb515d3d052204d5c5c
I68200a23c87ceca5a237da13d9549c0aa82f1b8f has changed two scripts
to be executable, but unfortunately, it forgets to specify runtime
environment for those scripts, which will cause error when trying
to run those scripts directly.
This patch adds python environment specification for them.
Change-Id: Ibbcefb671de76146529b9a6e2debfee154a1aaa7
When recording samples to database, the timestamp should be
datetime.datetime type, but in make_test_data.py, the timestamp
will be transformed to iso format with unicode type.
Change-Id: Iffb09a293684fb8eab768c7370e8967349032ae5
Closes-Bug: #1504539
tools/send_test_data.py and tools/test_hbase_table_utils.py can be
run via python $COMMAND, they should be executable as well, just like
other scripts, so developers can save some typing.
Change-Id: I68200a23c87ceca5a237da13d9549c0aa82f1b8f
ceilometer.event.storage.models.Event requires 6 arguments to initialze,
but tools/make_test_event_data.py only provides 5 arguments, so it is
broken now. The missing field is 'raw', which can be safely set to {}.
Change-Id: I4bec3ff66ab9fbec9306be2f1cb0095d148d80fb
Closes-Bug: #1506976
We have already removed meter instance:FLAVOR, let's clean our
code and docs to avoid unnecessary misleading.
Change-Id: I0c03b93252a263840ff50da6beed6445cc122ac2
Closes-Bug: #1505566
Set the timestamp to iso format and make sure the test data samples
generated by scripts under tools directory have the correct signature.
Change-Id: I1520450ae4e82459b73cc411a698a6faa91a40e0
Closes-Bug: #1499651
Improves send_test_data.py tools so they can optionally send samples as
notifications, not just rpc.
Change-Id: Ib3cd809158029b0dbeca0b988e8d998bb2a313a7
This CR allows running "functional" tox job for different backends.
Short description about expected workflow:
1. Gate job run ceilometer/ceilometer/tests/functional/hooks/post_test_hook.py
with <backend> parameter.
2. This script run "tox -efunctional" command with defined variable
CEILOMETER_TEST_BACKEND
3. After in "run-functional-tests.sh" setup script for the backend
and testr are runned.
In this CR running testr with pretty_tox.sh script added because
it allows to use subunit-trace output which developed in tempest-lib
and improve useful of testr output.
Partially implements: blueprint ceilometer-functional-tests
Change-Id: Idb66aca0b46779516db2baec856df8223dbe5c13
* Replace itertools.ifilter() with six.moves.filter()
* Replace itertools.imap() with six.moves.map()
* Replace map(_compare, statistics)
with [_compare(statistic) for statistic in statistics]
* Replace obj.iterkeys() with six.iterkeys(obj)
* Replace obj.iteritems() with six.iteritems(obj)
* Replace xrange() with six.moves.xrange(), or with range() for small
ranges
* Replace the repr module with six.moves.reprlib
Change-Id: Iaaa328cc15355182bde444a1aeaa4385691c8f90
enable a listener in collector that listens to events queue. this
patch also renames 'metering_*' options which are now used by both
events and samples.
Change-Id: I6250c91e913864c3973e2d93022e38ad8bed8328
Implements: blueprint notification-pipelines
This has not been tested for months and doesn't work anymore. There's no
way people are using it, so let's drop it until someone starts fixing it
again.
Change-Id: I7d6472a1924320c890dec47c41bf22db07a36efc
oslo.utils 1.2.0 has changed its namespace from oslo.utils to
oslo_utils, the old import style of oslo.utils still can work but
it is deprecated.
Change-Id: I8832259624f15a8040f6de35136db7dd6d217f02
This script is helpful for emulate real workflow.
Generate and send sample batches with different resources and
configurable counter_name.
Change-Id: I3ab6472c99abfe28e8c200ada2da91e97abed1d2
This change allows the script tools/make_test_data.sh and
tools/make_test_data.py to work correctly by handing
exceptions appropriately.
Change-Id: Ib054c3e10d617686928bf03f94c5ff868905afde
Closes-bug: 1389684
This patch fixes the pep8 issues of the tool scripts and
configures tox to run pep8 on the tools directory.
Change-Id: Ifed21e19dd2b382790a1e2a90d5153a8845c4b64
Parseable output format and --include-ids parameter are deprecated
and ignored in the pylint version used on the gate.
These functions are replaced by the --msg-template parameter.
This patch changes the runner to use the new parameter so that the
job can run properly on the gate
Closes-Bug: #1394606
Change-Id: Ia3e531923caa3f4e9a0dd03e0a4f5ef1a6d3dafb