This patch will copy logs from nova servers to local environment
on test failures.
Don't delete bays until teardown so log gathering will work.
Give functional test types a common base.
Added timeout to docker ps; else, the command would time out,
failing to run the rest of the tests.
Closes-Bug: 1542390
Change-Id: I016ed8fe311bede407f57b7982126c4b77749bec
Co-Authored-By: Corey O'Brien <coreypobrien@gmail.com>
cfg.CONF is a global object, so we need not pass it to init
a ConfFixture.
We should import opts before use them in case that the opts
have not been registered.
Change-Id: I1a97df4d522325d9423b1c89cc9958de26704faa
Closes-Bug: #1492084
We don't have unit test for genconfig, so sometimes this feature
is broken because of missing options or moving options.
This patch adds checking test for config parameters.
Change-Id: I67a44ef02704f66740a6bda2b6502b6b1636a08b
Closes-Bug: #1490825
The OpenStack community decided to deprecate the config 'verbose',
so we remove it from Magnum.
Change-Id: Ia19728e080e1903b118bff33229689b1091d3891
Closes-Bug: #1486308
According to https://pypi.python.org/pypi/fixtures, prior to
version 1.3.0 fixtures recommended overriding setUp. This is
still supported, but since it is harder to write leak-free
fixtures in this fashion, it is not recommended. We should
override _setUp now.
Change-Id: Id269b706c44cdb9c12e075ccb69dcb6055b18a3c
Closes-Bug: 1476573
oslo.log has graduated from oslo-incubator, magnum need use oslo.log
instead of oslo.incubator log module.
NOTE: openstack.common.log registers its options at import time, but
oslo.log needs to call register_options() explicitly.
Change-Id: I671bb020b628bd972813daf5936040b7f1c6bf7a
Closes-Bug: #1459736
Oslo team is recommending everyone to use the direct imports and
not use the Oslo namespaces. So switch all our code to use oslo_*
instead of "from oslo." or "import oslo" or "from oslo"
NOTE: some of the tests still have mocks referring to oslo.utils
@mock.patch('oslo.utils.timeutils.utcnow')
as the tests break otherwise. We should do this later.
Closes-bug: #1419385
Change-Id: I8e3fbeb833cddc3f55674a0e781ffe69d5033ad4
This creates and deletes bay objects in the database.
This new model is great because we can do things like:
https://github.com/openstack/nova/blob/master/nova/cmd/compute.py#L67
And completely override the database with an RPC mechanism instead.
This way objects are created in the ReST endpoint but stored in the
database via the backend and conductor.
I was attempting to write this code, but found it is already on its
way to being merged into oslo-incubator here:
https://review.openstack.org/#/c/127532/
Change-Id: Iff995d28a78f41874cc6ad62baf7420960a530da