Commit Graph

8 Commits

Author SHA1 Message Date
Thomas Goirand 666fc883fa Removed Python 2 support and six
Remove the use of six and move forward with Python3 only.

Change-Id: Ia4694704e001df03ac489a4d8a491c1c784ec3f9
2024-03-11 12:50:42 +01:00
Matthew Oliver 5f803ae8fd refactor bin/bench into swiftbench/cli for testing
The test infrastructure for swiftbench is pretty bad. In order to start
cleaning it up this patch starts with some initial scaffolding for
test_cli.py. Sd such it refactors the code out of bin/swiftbench and
puts it into swiftbench/cli/__init__.py. Leaving the cli namespace free
for future expansions.

A very basic tests/test_cli.py has been added which initialises some test
scaffolding. Additionally, fix some bugs this uncovered:

- The --delete-concurrency option now actually has an effect.
- Stop mutating global state on every run.

Partial-Bug: #1263290
Change-Id: Ibb2c3bb17522b6302697e2d2b01df3a6aa62800e
2023-07-10 15:42:23 -07:00
Tim Burke fc53cbf147 Allow users to specify object sizes with k/M/G suffixes
Change-Id: Ie8671e2313b76376d123c9d4eafcc1aff44ba0b8
2019-08-29 13:17:24 -07:00
Tim Burke f221632a82 Port to py3
Change-Id: Ib86178259f854c15dd305dd39779a203cafb0451
2019-08-29 13:16:33 -07: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
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
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