In some cases nailgun database could already exist
and ready for use. In this case we don't need
to do anything when preparing database.
Change-Id: I865eefd44af0dd1062f27b789d60515d55d7b4d2
This is a first step in moving Nailgun API docs building and publishing
to upstream infra. To enable gate-fuel-web-docs job docs should be able
to be built with 'tox -evenv -- python setup.py build_sphinx' command and
html output should be available in doc/build/html directory.
Change-Id: I42eb69a4060f50c8ef99cef4d54577078c1c846c
Since commit Id65b7e106d62be92467c18bcb93c9d5da716242f we do not need to
setup PostgreSQL for tests. Now OpenStack Infra provides ready to use
PostgreSQL installation as well as MySQL. This commit stops running
setup code and unblocks gate tests on OpenStack CI.
Also, it fixes random failures of test_force_redeploy_changes. The test
used to consume fake threads, and to check status of created task. That
status might be different and depends on progress of fake threads
(it might be pending, running or even ready). That commit removes usage
of fake threads and improves its quality by checking not only task status,
but actualy deployment data.
Also, it fixes test_assign_given_vips_for_net_groups.
The motivation behind that all-in-one commit is that it's almost
impossible to fix CI due to random test failures. It's the only
choice to get it work.
Closes-Bug: #1554038
Change-Id: I074a2cb4f0e6647c605c8e4449a5beca0c6e9bbc
This patch makes it possible to load several fixtures
into nailgun database before starting tests.
One can use NAILGUN_FIXTURE_FILES variable.
It is to be a space separated list of files that
are then to be used together with 'manage.py loaddata'
command.
Change-Id: I483399b57d065934aea1118040da378988d89e9d
Closes-Bug: #1540421
This patch introduces a single entry point for
starting/stopping nailgun server when needed.
This could be used while running functional tests.
For example, python-fuelclient needs nailgun
to be started before running tests that send
requests to nailgun REST API.
Change-Id: I4d9954e257aec3d66b508d13500aa9204059026b
Related-Bug: #1517408
Python 2.6 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it too.
Change-Id: I74d5af6794e9a604c5266200e43d56ef63261d53
Running Nailgun with fake threads with some predefined data
in its database is very useful for both debug and development.
This patch adds required commands to a new tox environment to
do that without copying them from the documentation page every time.
Change-Id: Ifcb014319119dc3d39bbeeb4baaa093df9e2f840
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.
This patch fixes this problem.
Closes-Bug: #1525115
Change-Id: I461bd8167c5984e81d7579e05d6ba15eeef416f6
The thing is that nailgun tests require postgresql backend to
be available. So, we need to prepare it before running tests.
Fortunately, all unit tests are run on nodes where postgresql
is installed.
Change-Id: Idc14409d2b2d3473d0e3ef9d3e70bda57a331b11