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
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
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
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
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
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
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
Doc build is now depends on oslo-config. That's ok in OpenStack
infra, but fails to build on ReadTheDocs.
Change-Id: I4d5d0174231ee14792dd8b7e5c7e1e9817e4b351
This patch adds catalog of scenarios into documentation.
Catalog is auto-generated and can be updated with `tox -egenconfig`.
Change-Id: I879b6cc5e8b976972fd1e291e1efb40d487af527
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