22 Commits

Author SHA1 Message Date
Ilya Shakhat
9168689007 Resolve py27 and pep8 job failures
1. Cap version of stestr for py27 (the latest version is py3 only).

2. Flake8 is runtime dependency of diskimage-builder, currently they use
version >= 3.6.0, so Shaker must conform to this version too.

Failures found by the newer version of flake8:
 * W605 invalid escape sequence -- issues are fixed since they
   correspond to syntax warnings from py36.
 * E305 expected 2 blank lines after class or function definition --
   issues are fixed (older version didn't restrict spaces between
   functions and `if __name__ == "__main__":` block).
 * W504 line break after binary operator -- the rule is ignored since it
   contradicts the code style of the whole project.

Change-Id: I7fa53cfb6b654f5d93df30441a6eb2d47714d479
2020-04-05 15:49:53 +00:00
Ilya Shakhat
1dcddf8358 Fix failures in pep8 job caused by flake8>=2.6.0
Diskimage-builder depends on hacking library, which in turn depends
on flake8<2.7.0,>=2.6.0, so shaker should follow the current version.

Change-Id: I5d4eccc0d5f5bfc7e21edaad060634b3e53b60e8
2019-10-17 00:34:01 +04:00
Ilya Shakhat
093931ff2d Replace py35 job with py36
Change-Id: Ie7fe417558b4505e7ab8f10c4214c4efb07ca5dc
2019-03-25 09:54:08 +01:00
Ilya Shakhat
1119ec943f Add zuul job with integration testing
This patch introduces base integration test that verifies
messaging loop between agent and server, command execution
and report generation. Shaker in tested in standalone
mode, without intergration with OpenStack.

Change-Id: I8fdc63abdf0be0fc67c3b438bbfc1cf2f69c9f15
2018-10-22 15:03:38 +02:00
Nguyen Van Trung
d414d967d4 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I73750c9dd128e22e32cb81775c22c0b6709a85af
2018-10-10 09:38:56 +07:00
Vu Cong Tuan
0959476161 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I66bf2f094d30ca5da972f27945dcc0108a13abad
2018-07-06 10:33:13 +07:00
liangcui
6ab1704a1b Enable some off-by-default checks
Some of the available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files
[H203] Use assertIs(Not)None to check for None

Change-Id: Id011a9bbea12dfc95808e65c3c6ddb8e33aa5e4c
2017-07-21 16:49:33 +08:00
Ilya Shakhat
ecbd683e27 Integrate diskimage-builder into shaker-image-builder
Shaker-image-builder can build images in one of two modes:
 * "heat" - classic approach with help of Heat, but it also
   requires Glance v1
 * "dib" - make local image using diskimage-builder and then
   upload into Glance
The mode can be selected automatically (falls to "dib" if no
Glance v1 present) or specified manually (--image-builder-mode).

Change-Id: Ibbcb99e85012ecab012612dccea38d40100625f5
2017-03-03 17:33:22 +04:00
Ilya Shakhat
be09a65029 Fix docs gate and rtd build
Docs gate was broken due to https://sourceforge.net/p/docutils/bugs/301/

Change-Id: Icdf97e9547da6df0a9b12e1c61413de6690b3ac3
2016-12-14 12:51:10 +04:00
Ilya Shakhat
4e9ea6b63e Separate doc requirements from test requirements
Doc build is now depends on oslo-config. That's ok in OpenStack
infra, but fails to build on ReadTheDocs.

Change-Id: I4d5d0174231ee14792dd8b7e5c7e1e9817e4b351
2016-08-12 14:12:42 +03:00
Ilya Shakhat
90788ea5aa Switch from py34 to py35
Change-Id: I36187cbb1a3064fddb803f1fc41e0a4c2279ca30
2016-08-04 13:20:15 +03:00
Ilya Shakhat
198e6a322b Update scenario descriptions and list them in the docs
This patch adds catalog of scenarios into documentation.
Catalog is auto-generated and can be updated with `tox -egenconfig`.

Change-Id: I879b6cc5e8b976972fd1e291e1efb40d487af527
2016-04-15 17:24:17 +03:00
Ilya Shakhat
002170a71f Convert svg images to png format for PDF generation
Change-Id: Ia9d1ff4c514ee67461a3a26be5699f9e4cc7f736
2016-01-15 12:54:11 +03:00
Ilya Shakhat
23a5b53fc9 Convert SVG images to PNG
RTFD generates PDF documentation, but it lacks images since
they are in incompatible format. This patch adds tox target
svg2png that converts images and replaces references to
wild-card.

Change-Id: I0672328fb8012d34dc91867aa49f19cfbd19890d
2015-12-16 17:14:54 +03:00
Ondřej Nový
cbbf5ac873 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: I4ff81c269e63016dffbd150b3930ba762bbf6bdf
2015-12-11 23:34:46 +01:00
Ilya Shakhat
95d71d6f0e Update from the global requirements
Note that in the latest oslo.log the default log level is changed
from WARN to INFO

Change-Id: Ib821328a5ece05d241943c645331f069c3a80276
2015-08-04 15:57:10 +03:00
Ilya Shakhat
ff11cd9e04 Detect lost agents
If during test execution some agent is not replied in expected time
it is marked as lost.

Change-Id: Idce887480518deb80f7722dac721991648e850f0
2015-04-07 14:01:14 +03:00
Ilya Shakhat
98242c6022 Remove legacy scripts from bin/ folder
Change-Id: I1ba2f503bc295d6ddc8e0369025e7897ba897f8f
2015-03-24 17:31:43 +03:00
Ilya Shakhat
db2076bed2 Generate docs for console tools
Change-Id: I6eab9ba7068f4194b94ff1a109672959ce81f901
2015-03-16 00:07:59 +03:00
Ilya Shakhat
4dee0a89ad Apply bootstrap styles to the report template
Also add simple test to fix failing gate jobs

Change-Id: I92b03072d06ea3220a5ba872c7541b8b7bd1401f
2015-02-16 22:25:51 +03:00
Ilya Shakhat
46ab81b8b4 Add sample conf file and generator tox target 2015-02-09 17:44:50 +03:00
Ilya Shakhat
25b666782c Initial commit 2015-01-28 18:56:01 +03:00