This commit moves calling pylxd.client.Client into resource_setup(). If
we have this in __init__(), the test list command `tempest run -l` is
failed without lxd client settings. It's not desirable. And this commit
also renamed variables for lxd client in the code to avoid confusion
with the other clients.
Change-Id: I5498789b2b1e4be6727b6520fc80ce3bace25cf3
manager.py had a syntax error which caused the module to be not
installable. This wasn't picked up in testing. This fixes the bug
and adds pep8 coverage to the nova_lxd_tempest_plugin so that the module
always remains installable.
Also, this fixes the tempest concurrency at 1. See the related bugs.
Closes-bug: #1790956
Related-Bug: #1790943
Change-Id: Ie542b062a9f0997f6363877ff03f0f9bfc8f3d43
Some of the debug logs were not actually outputing the instance;
it was just tagged in the LOF.<type>(...) command.
Also took the opportunity to modernise to '.format()' the string
interpolation to meet current guidelines.
Change-Id: I99c56ff738713140b2af16199e9e58b39bb4e396
Closes-Bug: #1657339
Tempest deprecated tempest.test.requires_ext [1]
At this moment, it is available in tempest.common.utils
[1] https://review.openstack.org/#/c/493668/
Change-Id: Ie6a104d2cf6ccc4217df62a3784b8757457f3142
Tempest has deprecated decorator 'tempest.test.attr' and
moved the same as stable interface to 'tempest.lib.decorators
.attr' in version 16.1.0.
Let's use the stable interface for attr decorator.
This will help Tempest to remove the deprecated decorator.
Change-Id: I8e0face1852df17d64ec667bf591d8bb3f0791be
The scenario tests base class from Tempest is not a stable interface
and it's going to be refactored on Tempest side, as notified in
http://lists.openstack.org/pipermail/openstack-dev/2017-February/112938.html
Maintain a local copy of the base class, taken from Tempest with head of
master at c5f1064759fe6c75a4bc5dc251ed1661845936cb.
Change-Id: I586d03848d96126640da030e393d468cd613a58a
Tempest has provided stable library remote_client under tempest.lib
since the commit Idb2206c239f25bc8b8530275e84c834233b9544b
This patch switches to use it.
Change-Id: I4ace5a93305cc4ad0a43abda5f4bacb5806f9860
Tempest provides stable library interfaces under tempest.lib.
This patch switches to use it for data_utils.
Depends-On: Ib3e29a2b03429e69151717908bc43c590bb8c52e
Change-Id: I0a08bdfd304d988ca48fb07d901d3ecfd5968599
test.idempotent_id is being kept temporary to migrate
to new lib interface. Now idempotent_id is available as Tempest stable
interface decorators and all plugins tests using the old decorator
should be switched to new interface.
In future, Once all plugins are switched to new decorator Tempest
will remove the test.idempotent_id
Change-Id: I29d631d0c9130262a4d56b258c76cb43665b9e04
Related-Bug: 1616913
Add the following tests:
- test_profile_configuration, verify the profile configuration
is correct
- test_verify_console_log, verify the configration of the console
log is correct.
- test_verify_nework_configuration, verfity the network configuration
is correct.
- test_cotnainer_configuration_valid, verify the container configuration
is correct.
Also fix a typo in the test_verify_created_server_vcpus test. Also
also only make pylxd call once.
Change-Id: I165d94fe79127682a600619f8520838125688911
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Add unit test that does the following:
1. Boot an instance "instance"
2. Create a volume "volume1"
3. Attach volume1 to instance
4. Create a filesystem on volume1
5. Mount volume1
6. Create a file which timestamp is written in volume1
7. Check for file on instnace
7. Unmount volume1
8. Detach volume1 from instance
Change-Id: Id2e062e8d682440276e28683323dbbcd945f4457
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Verify that the configuration between LXD and nova is
correct when attaching a block device to an instance.
Change-Id: I04da36ae4bf288e638e78a0d66eccd776756bea1
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Move compute tests to their own directory so it
is similar to the current tempest directory structure.
No code changes.
Change-Id: Id18bfafde0e7718c452af572b5d126cb807277b5
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Re-add support for configdrive usage that was previously
dropped.
This commit adds functional tests for configdrive usage
via the nova-lxd tempest plugin.
Change-Id: Ie2e857437df3032e0daa23ed302febb9497fa7d1
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Add infrastructure support for nova-lxd tempest plugin. To run the tests,
run the following command in the tempest tree:
tox -e all-plugin -- nova_lxd
Change-Id: I030cfd0a38e5fa191baa0acc48a969b3b553fced
Signed-off-by: Chuck Short <chuck.short@canonical.com>