summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Use oslo_debug_helper and remove our own versionSteve Martinelli2014-10-211-17/+0
| | | | | | | | | With the latest version of oslotest, we can now take advantage of a common oslo_debug_helper script. We can now remove our own homebrewed version, minor changes to tox.ini were needed. Change-Id: Ibd4317e8b1a9e38c9f4ef839352b74f14e9ddcfa
* add script to generate test event datagordon chung2014-10-151-0/+129
| | | | | | | | | | | | | similar to make_test_data.py, this script generates a set of events and writes them to the database (defined in ceilometer.conf). configurable options: - start - number of days in past to start test data - end - number of days into the future to start test data - interval - period between events, in minutes - event_types - number of unique event_types Change-Id: I80e023a82f7d5129649a5b1de5256e41e901e3c1
* switch to oslo-config-generatorgordon chung2014-10-123-169/+0
| | | | | | | the config generator has been moved to oslo.config. this patch switches to use oslo.config and removes related deprecated code. Change-Id: I9a22336142913d65da6299ea4092e170c9b2ff33
* Add oslo.db to config generatorJulien Danjou2014-10-101-1/+1
| | | | | | | | | Otherwise we miss the oslo.db configuration option in the sample config file. Closes-Bug: 1379808 Change-Id: I3a70e5da42562081002286d37ba1a200150c8cfc
* Adds pylint check for critical error in new patchesIgor Degtiarov2014-10-072-0/+252
| | | | | | Pylint usage pattern is to take a look on a diff for pylint results between previous code version and current patch. It's needed to critical issues only. Change-Id: I4fc2ae732a7eaef2bc7bfacfd111ef849d003268
* Merge "[HBase] Improves speed of unit tests on real HBase backend"2014.2.rc1Jenkins2014-09-291-0/+38
|\
| * [HBase] Improves speed of unit tests on real HBase backendIlya Tyaptin2014-09-241-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, unittests at real HBase are not usually used. Jenkins jobs and a predominant amount of developers use HBase mock. One of the reasons for this is that unittests at real HBase are too slow. It's due to processing of "disable_table" and "delete_table" commands. In HBase these command take up to 1-2 seconds. Now we create all table-set for each test that's why at real HBase unit tests may be executed several hours. So, at real HBase backend unit tests may be executed several hours. My CR speeds up this case. To solve this problem it was decided to keep all test data in one table. To provide a distinguishability of data from different tests unique row-prefix is used for each one. Creating and deleting required table are implements at setup-test-env.sh. Separating data is implemented with mock.patchs which transforms row value in happybase.Table methods. Change-Id: I1883d6e0619b0b2f223a4e58bdc0fc0656636e1f Closes-bug: #1372912
* | update references to auth_token middlewaregordon chung2014-09-231-1/+1
|/ | | | | | | | auth_token middleware is deprecated from keystoneclient. this patch updates references to use keystonemiddleware instead. Change-Id: I79b9657cafbc66000ee63b8d16104af9cd32552d Closes-Bug: #1373115
* Switch to oslo.utilsJulien Danjou2014-08-221-1/+2
| | | | Change-Id: Iacfcbf49864198915f8c229bc552afb412b83b79
* Adding init into tools folderLadislav Smola2014-08-111-0/+0
| | | | | | | | Adding init into tools folder so functions from the tools can be imported elsewhere. Change-Id: I89347be8e7ef4fdb1428a369c9ed2dfd1f962e9a Related-Bug: #1349791
* Enhancing the make_test_data scriptLadislav Smola2014-08-111-28/+95
| | | | | | | | | | -Adding random boundaries rather than exact value for samples -Allowing to pass datetime object or string -Extracting make_test_data func, so it can be imported elsewhere -Converting the integer time span to datetime Change-Id: Iffbc8d9711b2f301a1f28b49980691ab34d17c20 Related-Bug: #1349791
* Merge "Fix make_test_data tools script"Jenkins2014-08-062-5/+5
|\
| * Fix make_test_data tools scriptLadislav Smola2014-07-292-5/+5
| | | | | | | | | | | | | | | | | | | | | | Method get_connection has been renamed to get_connection_from_config. Resource is object not dictionary, so attributes needs to be accessed that way. Change-Id: I19e09f3e9077d3346b4361fa6975a3e696e2e765 Related-Bug: #1349791
* | Debug env for toxgordon chung2014-07-311-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Running a test with pdb was difficult because tox captures output and causes pdb prompt to quit. Tips for how to run with debug are provided here: https://wiki.openstack.org/wiki/Testr#Debugging_.28pdb.29_Tests This change puts these commands into a debug env in tox.ini so you can do a command like: tox -e debug pycadf.tests.test_cadf_spec and when it hits your breakpoint you'll get the debug prompt. Change-Id: Ic53a888e4e305d51159d1d6a2f962786a532e089 Co-Authored-By: Brant Knudson <bknudson@us.ibm.com> Closes-Bug: #1350424
* | Replace dict.iteritems() with six.iteritems(dict)Dina Belova2014-07-281-1/+2
|/ | | | | | | | | | This change is needed to make Ceilometer code both Python 2.x and 3.x compatible in some future. Oslo modules are left without changes in this change, that will be done directly in the oslo-incubator code. Partially-Implements: blueprint ceilometer-py33-support Change-Id: Ic7fe5819f85524bb36f04dec6cad10d4cf2b935d
* sync oslo codeGordon Chung2014-06-182-0/+23
| | | | | | synchronise up to Change-Id: I0d945784cbe24e34c8ef19d3d3c9c0f012cfe176 Change-Id: I1e28a60c8def0e3f4ba0c61985cfa0b9312ea5bd
* Remove (c) and remove unnecessary encoding linesMartin Geisler2014-05-313-6/+3
| | | | | | | | | | | | | | | | | | The word "Copyright" alone is sufficient to claim copyright, the (c) symbol need not be present.[1] As per PEP 263, a Python file with non-ASCII characters must have a line with "coding: <some-encoding>". Python files containing only 7-bit ASCII characters need no such line.[2] This commit removes unnecessary Unicode copyright symbols and unnecessary encoding lines. [1]: http://www.copyright.gov/circs/circ03.pdf [2]: http://legacy.python.org/dev/peps/pep-0263/ Closes-Bug: #1324686 Change-Id: Id381ea1f029a0cfddd3773c6d9f16c47842d9c33
* Replace oslo.rpc by oslo.messagingMehdi Abaakouk2014-04-141-1/+2
| | | | | | | | | | | | | | | The patch replaces oslo.rpc by oslo.messaging. The important changes: - On the collector, the queue name and the topic are now the same (ie: metering, instead of ceilometer.collector.metering for the queue and metering for the topic) - Same for the alarm partitionner the queue is no more prefixed by ceilometer.alarm. Implements switch-to-oslo.messaging Change-Id: Ia5e4ff1dd1d419c090b8039627234ae7f07e8660
* Sync oslo-incubator codeMehdi Abaakouk2014-04-081-1/+1
| | | | | | | | | | | | | | | Sync code to commit: b7ad6ddab8b1d61bf4f52ccaa461a9d68809747b The oslo db API have been changed, so sqlalchemy driver have been updated to match these changes. We now use sqlalchemy/migration.py from oslo.db instead of the ceilometer one. The unused alembic code have been removed, because it is handled by oslo.db now. Closes bug: #1293409 Change-Id: I480d678a7165f32b92c5c9b4c55491c0edbc0991
* Improve help stringsAndreas Jaeger2014-02-081-10/+10
| | | | | | | | | | Follow oslo.config style guide for help strings better to create consistent help strings: * Capitalize first word of each help string * Finish help strings with "." * Improve wording Change-Id: I4723ad672c30146869254695ba82678b082efd91
* sync oslo common codeGordon Chung2014-02-051-3/+17
| | | | | | sync code with commit-id: 5e5a51b3ddc25b3242e8f4f4b5e5357942618662 Change-Id: If62f3bba14cdc74c78685b2fdf5aa769c4158a50
* nova notifier: disable tests + update sample confJulien Danjou2014-02-051-8/+0
| | | | | | | | | | | | | | | | | The nova notifier is again broken due to Nova switch to oslo.messaging. Anyway, it's likely that this code has been broken for a long time, as it is not enabled nor tested on devstack anymore. And it's very unlikely compatible with oslo.messaging. This patch only disable the run of the tests for now, but we might consider removing the code before i3 if nobody stands up and try to fix it in a way or another. This patch also update the configuration file for the new keystoneclient release. Change-Id: I679154baff476957f46e7930db69aeec7e368648
* Update osloJulien Danjou2014-01-311-6/+12
| | | | | | | | | | | | | This updates to: commit b3e5166e3f47148856d898c4653b0c089c2315f5 Merge: 0002ffa 39e1c5c Author: Jenkins <jenkins@review.openstack.org> Date: Thu Jan 30 10:18:54 2014 +0000 Merge "Move db tests base.py to common code" Change-Id: Iaa76b1165e195f0c3874bc5c8bcbc9ecbb6ca5d7
* Merge "Update oslo"Jenkins2014-01-221-7/+23
|\
| * Update osloJulien Danjou2014-01-161-7/+23
| | | | | | | | | | | | | | | | | | | | | | This updates Oslo to the latest commit 997ab2776c9cad033234e28a92fb7bc0ef5bc4c0 It removes the test_service test file, as the behavior of restarting on SIGHUP is dependent of openstack.common.service which has changed recently, is already tested as part of oslo.incubator's tests. Change-Id: I389c690f4febe9c69c1e2c39cd16961635469c75
* | Remove unused importsWu Wenxiang2014-01-111-1/+0
|/ | | | | | | Remove unused imports in tools/make_test_data.py Change-Id: I2ea455aa2d665461ac7e087854f66e8c1c6fc950 Closes-Bug: #1268092
* Fix work of udp publisherIlya Tyaptin2014-01-091-2/+3
| | | | | | | | | | | * Signature is appended also to udp messages * All methods for convert from sample to message are moved to publisher/utils.py * In configs metering_secret is moved from group publisher_rpc to publisher * Changed tests for udp publisher Fixes: bug #1259171 Change-Id: Ic7727c69d4be6d17ff00f21e323341efd57122a7
* Correct env variable in file oslo.config.generator.rcLianhao Lu2013-12-191-1/+1
| | | | | | | | | Use CEILOMETER_CONFIG_GENERATOR_EXTRA_MODULES as the environment variable to include keystoneclient middleware's option in the config generator's output. Change-Id: Ibddeb587b22a0569dcb8db58d7cd8626b4482cb6 Closes-Bug: 1262331
* config: specify a template for mktempJulien Danjou2013-12-111-1/+1
| | | | | | | It's actually not portable to use mktemp without an argument, so let's add a default template. Change-Id: I5c254b12c05457d9e3ed5788dabb4c317d97b4aa
* sync with oslo-incubatorGordon Chung2013-12-021-2/+9
| | | | | | | | | | | - py3 compatibility fixes - drop uuidutils and rpc/securemessage - lockutils fix - config generator fix synched with commit-id: 0d2546b228f13a42355bc54e82256bf17a2eb478 Change-Id: I2c2b69da1b7d834b42c185bb8e2667ce748df33a
* Use built-in print() instead of print statementChang Bo Guo2013-09-203-19/+23
| | | | | | | | | In python 3 print statement is not supported, so we should use only print() functions. Fixes bug 1226943 Change-Id: I206fe870eea21522e28318b9cfa062239e54c391
* Include auth_token middleware in sample configJulien Danjou2013-09-111-0/+1
| | | | | | | | This include the default configuration value for keystoneclient auth_token middleware in ceilometer.conf.sample Change-Id: I949537f558500e4066d77f896e67d187c880983e Fixes-Bug: #1177443
* Update config generatorJulien Danjou2013-09-111-6/+29
| | | | | | Updated straight from oslo-incubator. Change-Id: I3ff25a7e70e03c0651b6dfa23a526771c6496cfb
* rpc: remove source argument from message conversionJulien Danjou2013-08-051-2/+2
| | | | Change-Id: Ic727b7f61e7b2e38a36f5c2757271668ec143d77
* Update openstack.commonJulien Danjou2013-07-304-39/+78
| | | | Change-Id: Ib9dfbcf3f08b20671aadd76f8789d9a9e72fd2eb
* Rename ceilometer.counter to ceilometer.sampleJulien Danjou2013-07-291-2/+2
| | | | | Change-Id: Id5e943cffd59bd439c235630ca040035128a919f Blueprint: remove-counter
* storage: remove per-driver optionsJulien Danjou2013-07-231-1/+0
| | | | | | | Fixes: bug #1195538 Change-Id: Iac6ace9a2402237543ed35be7f4fcee91ff3e036 Signed-off-by: Julien Danjou <julien@danjou.info>
* Unset OS_xx variable before generate configurationMehdi Abaakouk2013-07-151-0/+4
| | | | | | | | | | | When generate_sample.sh generate the configuration of the keystone middleware part, it use OS_XXXXX environment variable if this one is set instead of the default one. This change unset this vairables, before generate_sample.sh inspect the code to always have the default value. Change-Id: I365387e99dff0e1c64cd1c4198088200bf726cd7
* ceilometer tests need to be enabled/cleanedGordon Chung2013-07-111-151/+0
| | | | | | | | | - re-enable a bunch of tests that currently aren't being discovered and thus never run. - delete notificationclient and its tests since no one uses it. Change-Id: I50ad04bc22b06c718ce47052c64c95165e54efe8 Fixes: Bug#1197545
* Merge "Fix flake8 errors"Jenkins2013-07-045-32/+32
|\
| * Fix flake8 errorsDoug Hellmann2013-07-025-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix exclude rules so we do not run flake8 against code in the build, .tox, or openstack/common directories since this code is not "ours." Fix flake8 errors in other code. Update the config checker script so if there are differences they are printed to the output. This should help track down false negatives in the tests. Change-Id: I9938846943b7f8aab20f02266b870d560c6a2f80 Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
* | update Quantum references to NeutronMark McClain2013-07-021-0/+8
|/ | | | | | implements bug 1197208 Change-Id: I5b9467a0534a0842b0262efa79f316178780f0bd
* Check that the config file sample is always up to dateJulien Danjou2013-06-212-2/+12
| | | | | Change-Id: Ief192e8c88d052da68f13d3e9502c8799b8e1c17 Signed-off-by: Julien Danjou <julien@danjou.info>
* Rename the MeterPublisher to RPCPublisherJulien Danjou2013-06-141-3/+3
| | | | | | | Blueprint: pipeline-publisher-url Change-Id: I6c912406e0e129b7e2523c40c2678e8b5e5c1df2 Signed-off-by: Julien Danjou <julien@danjou.info>
* Update oslo, use new configuration generatorJulien Danjou2013-05-282-250/+1
| | | | | Change-Id: I28f079a3466a247bce7b4614db3e4c960d769ed7 Signed-off-by: Julien Danjou <julien@danjou.info>
* Rename requires files to standard namesAngus Salkeld2013-05-282-48/+0
| | | | | | | | requested by infra. bug 1179008 Change-Id: Id27f574a023792c287ed4e11aa869cb50857aa8f
* Add an UDP publisher and receiverJulien Danjou2013-05-271-0/+1
| | | | | | | Blueprint: udp-publishing Change-Id: Ia281ab1d2924c8126895d7475f48f9cc886f92d1 Signed-off-by: Julien Danjou <julien@danjou.info>
* Fix and update extract_opts group extractionJulien Danjou2013-05-241-39/+20
| | | | | | | | Same as the one sent to nova: https://review.openstack.org/#/c/30251/ Change-Id: Iba3c31b320ed93deb295a22cd01518e05bfee8ce Signed-off-by: Julien Danjou <julien@danjou.info>
* Replace nose with testrAngus Salkeld2013-05-182-1/+12
| | | | | | | | | | | | | | | | | | | | - add .testr.conf (in base dir and nova_tests) - remove all references to nose - adjust paths: A couple of tests would assume the current directory was ./tests/ but it is now ./ - don't run the tests in parallel as the db tests have one connection per test class. nova_tests hackery: It seems testtools/testr imports everything and I just don't see a way of running things in tests/ and nova_tests/ seperately but in one .test.conf. So if you want to use testr directly you will need to: testr run cd nova_tests testr run part of bug 1177924 Change-Id: I41875dcf94463fa5f9c07a7840c37089226c59ad
* Use fixtures in the testsAngus Salkeld2013-05-181-0/+1
| | | | | | | | | | TempDir() makes sure all files created under it are deleted at the end of the tests. FakeLogger() hides logs when the test passes and displays logs for failed tests. part of bug 1177924 Change-Id: I07acb66daa1932d7864a5431f1b64570b747ce5a