Create scenario tests for loadbalancers
This patch implements the tempest plugin for basic load balancer
operations in Octavia. It contains tests for loadbalancer API and
a minimal operation test for loadbalancing functionality.
Steps for testing in devstack environment:
- Clone octavia-tempest-plugin repo, check out this patch, install
octavia-tempest-plugin project.
- Create a tempest work directory by running 'tempest init <workdir>'.
In the etc/tempest.conf, add 'loadbalancer = true' in
'service_available' section.
- Set a big value to 'OS_TEST_TIMEOUT' in .testr.conf
- Add or modify other related config options (image, network, flavor,
validation, etc).
- Run 'tempest run --regex ^octavia_tempest_plugin'
Co-Authored-By: Lingxian Kong <anlin.kong@gmail.com>
Co-Authored-By: Adam Harwell <flux.adam@gmail.com>
Change-Id: Ibc2904f431b15dfca2ff8e38e0d4d06c1430abea
diff --git a/setup.cfg b/setup.cfg
index 993c4f7..b452614 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -18,6 +18,10 @@
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
+[global]
+setup-hooks =
+ pbr.hooks.setup_hook
+
[files]
packages =
octavia_tempest_plugin
@@ -48,3 +52,7 @@
all_files = 1
build-dir = releasenotes/build
source-dir = releasenotes/source
+
+[entry_points]
+tempest.test_plugins =
+ octavia-tempest-plugin = octavia_tempest_plugin.plugin:OctaviaTempestPlugin