run_test.sh by default runs all available tests and checks:
* flake8
* unit
* integration
* selected tests
Usage info is available by running command `run_tests.sh -h`.
It is possible to run just selected tests by running
`run_tests.sh -t selected_tests.py`.
Integration tests require correctly set up.
Removed fabfile and fabric requirement.
DocImpact
Closes-Bug: #1404892
Change-Id: I8dbe2561aba655e698932bb7bb7c2f6f9887f9d7
Fixed all places where hacking rules (v0.7) was failing
Replaced ''' with """ to make them consistent
Change-Id: I9c1c20f910df696056d2a6a91c33ff7bad266b9f
Related-Bug: #1404892
Closes-Bug: #1408240
* can be run by tox -epy26 -- fuel_plugin/testing/tests/integration
* removed code that mimic nailgun
* used requests_mock to mock http requests
* added BaseIntegrationTest class that set ups DB
* it is possible to pass own session when creating
Pecan app for OSTF
* added WebTest as a requirement for tests
Change-Id: Id73208c3b0a000c017ec44388e3cecc78d2228a5
Partial-Bug: #1404892
Now all tests in 'unit' directory can be easily run
* http requests are mocked
* do not require access to /var/log
* do not require db access
* "integration" tests are in separate directory
* tox -epy26 -- fuel_plugin/testing/tests/unit/ allows
to run tests for now (will be added to run_tests.sh in the
future)
Introduced requests-mock to mock requests calls
Moved "base.py" from unitests dir to better place.
Change-Id: I94ce611015e6d33675f94a04082da2aa6878074a
Partial-Bug: #1404892
tox.ini is now similar to the one from Nailgun's code:
* renamed 'pep8' env
* added 'venv' env to run any command
* replaced pep8 script with flake8
* flake8 conf inside tox.ini
* updated requirements for new tox.ini
Change-Id: I74c9b7f7bd137b6284e4e3dd5c131f348b564d78
Partial-Bug: #1404892
- Use oslo.config as single configuration option
- some tests usage clarification
Closes-Bug: #1326351
Change-Id: Ibff61181f338d28cb43eb61d6a73e5b80d6dbe7f