Commit graph

34 commits

Author SHA1 Message Date
Anders Ingemann
b52a45a6b8
Sphinx 1.5 fails with AttributeError, use != 1.5 instead
This is a workaround for #356
Let's assume they fix this in > 1.5
The exact error is
    AttributeError: 'Toctree' object has no attribute 'titles'

I should probably report this...
2016-12-12 22:42:36 +01:00
Anders Ingemann
e0d92382fb tox: Require python2.7 for all testenv 2016-08-13 11:45:48 +02:00
Anders Ingemann
f62c8ade99 Convert indentation from tabs to spaces (4)
Up until now I didn't see the point of using spaces for indentation.
However, the previous commit (a18bec3) was quite eye opening.
Given that python is an indentation aware language, the amount of
mistakes that went unnoticed because tabs and spaces were used
at the same time (tabs for indentation and spaces for alignment)
were unacceptable.

E101,W191 have been re-enable in the tox flake8 checker and
the documentation has been modified accordingly.

The following files have been left as-is:
* bootstrapvz/common/assets/extlinux/extlinux.conf
* bootstrapvz/common/assets/init.d/expand-root
* bootstrapvz/common/assets/init.d/generate-ssh-hostkeys
* bootstrapvz/common/assets/init.d/squeeze/generate-ssh-hostkeys
* bootstrapvz/plugins/docker_daemon/assets/init.d/docker
* bootstrapvz/providers/ec2/assets/bin/growpart
* bootstrapvz/providers/ec2/assets/grub.d/40_custom
* bootstrapvz/providers/ec2/assets/init.d/ec2-get-credentials
* bootstrapvz/providers/ec2/assets/init.d/ec2-run-user-data
* docs/_static/taskoverview.coffee
* docs/_static/taskoverview.less
* tests/unit/subprocess.sh
2016-06-04 11:38:16 +02:00
Tiago Ilieve
9e332b2f86 Move Pyro4 dependency from 'tox.ini' to 'setup.py'
It is a runtime dependency of the server component, needed not only for
testing.
2016-04-16 17:45:46 -03:00
Anders Ingemann
d8fa9b90dd *ahem, scratch that. I mean integration tests 2016-03-04 01:33:30 +01:00
Anders Ingemann
dbb687a2ff Also run system tests in the default tox env 2016-03-04 01:32:07 +01:00
Anders Ingemann
6bb654b79f Compat with new sphinx
Changed a lot of code:: to code-block::
Also added sphinx_rtd_theme to deps in tox
2016-03-04 01:21:52 +01:00
Anders Ingemann
e80233bc44 Remove coverage per default from testing
We have no pretty way of showing this right now
meaning it's pretty much just noise.
2016-03-04 01:21:52 +01:00
Anders Ingemann
77307e3bbf Add first integration test
This takes all the manifests and does a dry-run on them.
The plan is to later on enable testing of partial plugin examples as well.
2016-03-04 01:00:29 +01:00
Anders Ingemann
4c9aaf2dba By default, tox now builds the docs
This makes sure nobody breaks the docs by accident
2016-03-04 00:48:48 +01:00
Anders Ingemann
f8118b3f3e Rename integration tests to system tests, since they cover the entire system
*cough e82bdf4 *cough
2016-03-04 00:48:48 +01:00
Tiago Ilieve
b710986b70 tox: add 'tests/' folder to flake8 2015-10-29 21:24:25 -02:00
Anders Ingemann
f9eb11b5cb Add html output to integration tests
It's near impossible to scroll through the nosetest output...
2015-04-16 22:23:14 +02:00
Tiago Ilieve
f210bfc132 Add nose-cov dependency to tox integration tests 2015-04-16 22:22:49 +02:00
Anders Ingemann
0c20acce11 Fix positional argument handling in tox
It's now possible to pass a single test through tox to nosetest
2015-04-16 22:22:46 +02:00
Anders Ingemann
4be7e8966c Add {posargs} to nosetest commands 2015-04-16 22:21:42 +02:00
Anders Ingemann
1cca37985d Mov tox main config to top of tox file 2015-04-16 22:21:13 +02:00
Anders Ingemann
a7a3161d66 Require Pyro4 >= 4.30 2015-04-16 22:15:19 +02:00
Anders Ingemann
65b9e10ce3 VirtualBox integration 2015-04-16 22:15:19 +02:00
Anders Ingemann
0f8dbb7ac3 Install Pyro4 dep when testing 2015-04-16 22:15:19 +02:00
Anders Ingemann
86afbaf929 Clean up integration testing 2015-04-16 22:15:18 +02:00
Anders Ingemann
e271f3e49a Initial work on integration testing started.
The work consists of three parts:
* Allow for bootstrapping remotely,
  this makes it possible to run the tests
  on e.g. OSX with VirtualBox installed
* Make bootstrapping a fully automated process
  where the manifests can be generated by the tests
  and the tests can call the bootstrapper directly in python
* Create a framework wherein instances can be booted up
  using the bootstrapped images and subsequently tested
2015-04-16 22:15:17 +02:00
Anders Ingemann
e82bdf4a84 Rename integration tests to unit tests, since they really only cover small parts of the system. 2015-04-16 22:14:38 +02:00
Anders Ingemann
f9b234e3e6 Remove docs-serve testenv again
It can cause some weird errors when running two tox invocations at the same time
2015-04-11 16:40:44 +02:00
Anders Ingemann
c089301f79 Generate task graph data through sphinx conf.py 2015-04-11 16:40:44 +02:00
Anders Ingemann
73972e1b60 Move taskoverview exec into docs/ 2015-04-11 16:40:44 +02:00
Anders Ingemann
d06fbb4a2d Turn on nazi option for sphinx and fix warnings 2015-04-11 16:40:44 +02:00
Anders Ingemann
be5590f411 Add highlighting of tasks in same module in taskoverview
and a docs-serve tox target
2015-04-11 16:40:43 +02:00
Anders Ingemann
0276b70910 Fix taskoverview graph 2015-04-11 16:40:43 +02:00
Anders Ingemann
6f87287c31 Also build task graph when building docs 2015-04-11 16:40:43 +02:00
Anders Ingemann
d3f306a6d9 Build docs through tox 2015-04-11 16:40:43 +02:00
Rory Finnegan
128bce8fff Added manifest checking tests.
Overview:
1) fixed up .gitignore file to use absolute paths (to project dir).
2) updated tox to run both manifest tests and flake8
3) updated yml file cause NULL for aws credentials causes an error on validation.
4) actually added the tests under tests/integration
2014-04-30 17:21:32 -05:00
Tiago Ilieve
014e230221 Add Travis CI
By now, it will only test the coding style rules defined for the
project, which are basically a few exceptions to the PEP8.
2014-04-27 10:12:04 -03:00
Rory Finnegan
708c3d589e Fixed previous yaml load commit and added a tox.ini file.
DETAILS:
- Apparently a potential security issue with yaml.load vs yaml.safe_load.
  Like pickling, yaml.load could result in arbitrary code being run.
- tox.ini file includes the flake8 settings for this project, build spec for 2.7
  and line for eventually testing the project.
2014-04-15 20:29:01 -05:00