Commit Graph

106 Commits

Author SHA1 Message Date
Tony Breeds b6d55a9889 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I60a30572c41798b243114bc2078cc9fecb7a68d4
2017-09-12 16:20:23 -06:00
Luong Anh Tuan 63140645a8 Replace assertEquals with assertEqual
The method assertEquals has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases

Also in Python 3, a deprecated warning is raised when using assertEquals
therefore we should use assertEqual instead.

This is part of blueprint assertequal

Change-Id: Ie6b881f594c0b3e7015e70a12d7ac720fa765736
2016-11-21 15:59:11 +07:00
reedip b6b1e42fce Remove support for py33/py26
Python 3.3/Python 2.6 is not supported from Mitaka, as per Infra.
The following patch removes the support for the same.

Change-Id: I7c8a1a39f0e86cbd38466c2dcd611a8f513c8adc
Closes-Bug: #1526170
2016-09-10 04:11:32 +00:00
Jenkins f773f17927 Merge "Put py34 first in the env order of tox" 2016-06-08 20:28:13 +00:00
John Dickinson 7b083851bb version bump to open 1.2.1 dev work
Change-Id: I2fa98e3cd706ab9dbc022288a8540f063ea9498c
2016-02-12 12:23:35 -08:00
John Dickinson 24d8761190 version bump for 1.2 release
Change-Id: Ief12fe5673369e9445f3f8538a875d8627dd5d0a
2016-02-12 12:17:27 -08:00
John Dickinson f2354794fc added metadata section to setup.cfg
This is necessary for release tooling.

Change-Id: I96a83be91730ec8ac55502dd738b75a3a2626430
2016-02-12 12:14:01 -08:00
John Dickinson c34a750544 version bump to open 1.2 dev work
Change-Id: I50201bafc1f623b1470a8a7f2c36002c925db3f0
2016-02-11 15:22:09 -08:00
John Dickinson 0fa52e11b8 version bump for 1.1. release
Change-Id: I5a818d5a2a73af45b60fee74f8d190d5111eb275
2016-02-11 15:21:41 -08:00
John Dickinson 0187ce57a9 authors/changelog update for 1.1. release
Change-Id: I472fb72bfaf90a11b11e4d802da3981325a95408
2016-02-11 15:07:21 -08:00
reedip 5eb2f500fd TrivialFix of Import JSON
As per the comment#12 in [1], the if loop can be removed
and json can be directly imported from bench.py

[1]: https://review.openstack.org/#/c/264486/

TrivialFix
Depends-On:I7c8a1a39f0e86cbd38466c2dcd611a8f513c8adc
Change-Id: I519753b0db0d8eee70c84afa92dfab2b943afbac
2016-01-29 00:54:43 +00:00
Janonymous 9e41cb329d Put py34 first in the env order of tox
To solve the problem of "db type could not be determined" on
py34 we have to run py34 env before py27.
This patch puts py34 first on the tox.ini's list of envs
to avoid this problem to happen.

Change-Id: Ife0c57c0d92d41018862aad744ef9af65ef87b21
Closes-bug: #1489059
2016-01-28 08:40:34 +00:00
Ondřej Nový 035134dc5f Bump eventlet min version to 0.17.4
Keep eventlet version same as Swift dependency.
This update matches the OpenStack global requirements version.

Change-Id: Ic8136901a6bc6447ea7248ed3e699ed0f9c0448a
2016-01-22 20:22:14 +01:00
dharmendra 4d9148b04b Pass environment variables of proxy to tox
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.
This patch fixes this problem.

Change-Id: I5382f1b2100ba15fb4a6f501d3885984a68579ab
2016-01-06 16:58:42 +05:30
Ondřej Nový 815486005d Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I1fe8420806ea45ebc3d455f281bdbe49e0d94e7c
2015-12-11 21:28:20 +01:00
Jenkins 94e101148d Merge "update hacking in test-requirements" 2015-11-24 15:38:33 +00:00
John Dickinson 43dc3dd358 update hacking in test-requirements
also changed a variable name to pass a new hacking check

Change-Id: Ib64adcc6c986528e619ee42abc21f42f9f2dfbf4
2015-11-09 15:35:14 -08:00
Ondrej Novy c0f473d975 Try to detect HTTP proxy and warn about it.
swift-bench test results could be altered when using HTTP proxy server.
This patch add warning when HTTP proxy has been detected.

Change-Id: Id818203345914efee37852e96541c259de6ae555
2015-10-05 21:57:06 +02:00
Thiago da Silva d64b007deb add storage policy option
provide ability for user to select which storage policy
to run benchmark against

Change-Id: I9973f964ec3989281f47f853be053498e7a6e51e
Signed-off-by: Thiago da Silva <thiago@redhat.com>
2015-06-01 17:56:25 +00:00
Christian Schwede ae51e6b26f Fix bug when using --log-level option
Fixes a bug when using the --log-level/-o option. These are currently not
usable, because a condition always exits if there are not exactly two
command-line arguments used (the ip and port).

This patch also ensures that the used log-level settings are valid choices.

Change-Id: I5d64e57b59947c059924fce3e458cfe9fa284318
2015-04-20 07:37:53 +00:00
Samuel Merritt 418ae6f13a Clean up some conf parsing
Change-Id: Idba39e06e3db8eca84f3cef8c597ad222cf6d532
2014-10-13 17:57:03 -07:00
Samuel Merritt 5dac34716b Fix next on SourceFile
next(iterable) is supposed to return the next thing in the sequence;
here, that's a bunch of zeros. However, this was returning a generator
that yielded one item: a bunch of zeros. This broke direct
benchmarking.

Change-Id: I2fca4795fc9b3d1637c72616a52a60482d6e853e
2014-10-13 16:43:01 -07:00
Jeremy Stanley a8e161ba70 Work toward Python 3.4 support and testing
Change-Id: I68943058d613387ea5bb675dc720148318989afd
2014-09-03 19:06:14 +00:00
Jeremy Stanley fe7206cdc0 Remove tox locale overrides
* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.

Change-Id: Idc298cccd88eb7c929a648e31e129d4355ef7270
Closes-Bug: #1277495
2014-02-10 03:12:08 +00:00
Sascha Peilicke 29209f1851 Sync with global requirements
Change-Id: Ie4c17c36e70e1ffb4f2c1384df0322521130939e
2014-02-04 09:42:58 +01:00
Jenkins 70233bf303 Merge "Add MANIFEST.in" 2014-01-31 23:01:30 +00:00
Chmouel Boudjnah cfb50967ae Add MANIFEST.in
- minVersion to 1.6 for tox as well to get a much faster run.

Closes-Bug: #1269054
Change-Id: I8bbb74fc515dd3f8ac05ee258a58cd19d6d09c58
2014-01-24 07:52:30 +01:00
Chmouel Boudjnah e1425fc8bb Remove gettext.
This was hardly used and remove a dependence on main swift.

Change-Id: I29b3a0cdeb00b4414d6fed9e1ab0a63b54c1539a
2014-01-14 16:28:00 +00:00
Jenkins 4561e0da46 Merge "Use nosetests for coverage in tox.ini" 2013-12-16 20:08:56 +00:00
John Dickinson 1e3ac5cb08 version bump to open 1.1 dev work
Change-Id: I10c1e928e5ddb3a89ea8767964f0735f13f873e8
2013-12-05 14:18:03 -08:00
John Dickinson 1dac5c4745 version bump for 1.0 release
Change-Id: Ia50c3f50aa306b4c8c9519ce9b58315e4b14b263
2013-12-05 14:16:23 -08:00
John Dickinson 4113b481e2 added authors, changelog, and .mailmap
Change-Id: I03a51448221e2e9bb6eb1981d125fe59971d5dc7
2013-12-05 14:11:17 -08:00
John Dickinson cf0f1d1da9 fixed log formatter issues
Change-Id: Ie567b59943029f3ae569576b5c8f1d0942a36a0a
2013-12-02 11:54:31 -08:00
Chmouel Boudjnah 730883957d Use nosetests for coverage in tox.ini
I can't seem to figure out how to have testr and coverage working
properly without pbr so let's use nosetests for it.

Change-Id: Id0f2fc348dc822af9189178b518d2dda711b060c
2013-11-26 22:16:56 +01:00
Chmouel Boudjnah b207aaca07 Make swift-bench not depending on swift.
Remove the dependence on swift, import the only needed functions from
swift.common.utils to swiftbench.utils

Add tests for utils using mock instead.

Change-Id: I1b69dce750b55f3ee0e999fb5a7100cf811f7ebe
2013-11-24 15:35:49 +01:00
Chmouel Boudjnah 64b976e139 Add plumbing.
- Update .gitignore to ignore all testrunners.
- Move swift-bench to swiftbench.
- Move tests to tests/
- Add some simple {test-,}requirements (more works needs to be done to get proper versioning)

Change-Id: Iab4d65f02cbce8c99ecafa30d15c4cb11f0b4293
2013-11-21 14:09:47 -08:00
John Dickinson 3ac1ff7753 cleaned up filenames and dir structure
Change-Id: Ifbb8941e916a586db0f71cbc734cadd8b2ade791
2013-10-17 12:02:54 -05:00
John Dickinson 65a2ec78f1 added .gitreview
Change-Id: Iddce2d474bf7a44d6c0b479d8d01a768877695ca
2013-10-11 11:30:38 -07:00
ZhiQiang Fan 58abba2a1a Change OpenStack LLC to Foundation
Change-Id: I7c3df47c31759dbeb3105f8883e2688ada848d58
Closes-bug: #1214176
2013-09-20 01:00:54 +08:00
Clay Gerrard a53fa52ada fix swift i18n
Change-Id: I53cea28a6d7593a1b308dbcf77dddf7f40d76cb2
2013-07-30 11:44:11 -07:00
Dirk Mueller 7c5e91e77f Use Python 3.x compatible except construct
except x,y: was deprected and is removed in Python 3.x.
Use "except x as y:" instead which works in any Python
version >= 2.6.

Change-Id: I7008c74b807340f3457d3a0c8bd0b83f23169d14
2013-08-28 21:16:08 +02:00
Peter Portante e72cde0582 Pep8 unit test modules for hacking and one liners (4 of 12)
Address all the "hacking" lines that are flagged, and all the modules
that just have one item flagged.

Change-Id: I372a4bdf9c7748f73e38c4fd55e5954f1afade5b
Signed-off-by: Peter Portante <peter.portante@redhat.com>
2013-08-31 22:36:58 -04:00
Zap Chang 3a9357faf3 Improve swift-bench performance
Single-host bench controller should be monkey-patched to achieve
maximum concurrency.

Change-Id: I77c63773edc7427d06c2fbfb67ededf36d9913d3
2013-08-21 22:13:16 +08:00
Ksenia Demina f67af4c529 Add delay in swift-bench
With enable write affinity, it's necessary to wait until
replication has moved things to their proper homes before
running delete request. With write affinity turned on, only
nodes in local region will get the object right after PUT request.

Fix bug #1198926

Change-Id: I3aa8933d45c47a010ae05561e12176479e7c9bcc
2013-07-19 14:32:55 +04:00
TheSriram ad99f29655 fix(gitignore) : ignore *.egg and *.egg-info
Change-Id: I9496dab9e8f779a7ae045bb73b2cf8e77bda0d30
2013-07-30 14:57:48 -04:00
Alex Gaynor 5e6df96d21 Removed unnecessary monkeypatching of __builtin__
Replaced it with explicitly importing the gettext function, which is
significantly more readable.

Change-Id: Ia0a7edcf685fb6e4052a8290367b233169529ab8
2013-07-27 21:10:37 -07:00
Peter Portante aab43abbbd Ignore coverage HTML directory and MANIFEST.
Change-Id: I5286cd1b066da11eef98dbfea9252366ca3ffd9c
Signed-off-by: Peter Portante <peter.portante@redhat.com>
2013-07-25 16:48:38 -04:00
Jon Snitow 0d5d06ec85 Make sure users can't remove their account quotas
Protect X-Remove-Account-Meta-Quota-Bytes same as X-Account-Meta-Quota-Bytes

Fixes bug 1204110

Change-Id: Ibac5b555f50b1fe41b2999c0d5776d90f9c9f3d1
2013-07-24 15:58:55 -07:00
Alex Gaynor 290a208714 Corrected many style violations in the tests.
I focussed primarily on F-category violations, they are all but all fixed with
this patch.

Change-Id: I343f6945c97984ed1093bc347b6def6994297041
2013-07-23 16:41:45 -07:00
Kun Huang 1685b4466a update .gitignore
Ignore build/ directory, which is auto-created when running `python
setup.py bdist` like dist/ directory.

Change-Id: Ie58936320d995e4e81f8929128475e538665bde8
2013-06-20 17:56:07 +08:00