Add Barbican scenario in Rally 55/68155/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Fri, 28 Jun 2019 13:34:27 +0000 (15:34 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Fri, 28 Jun 2019 13:38:05 +0000 (15:38 +0200)
It doesn't run BarbicanSecrets.create_symmetric_and_delete which is
currently failing [1].

Barbican testing is optional as Gnocchi.

[1] https://bugs.launchpad.net/rally/+bug/1819285

Change-Id: I9121ce3c9f29ba05069c905325327d4c4d0b9e71
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
docker/benchmarking/testcases.yaml
docker/smoke/testcases.yaml
functest/ci/testcases.yaml
functest/opnfv_tests/openstack/rally/rally.py
functest/opnfv_tests/openstack/rally/scenario/opnfv-barbican.yaml [new file with mode: 0644]
functest/opnfv_tests/openstack/rally/task.yaml

index eeb2091..45a4a35 100644 (file)
@@ -20,6 +20,7 @@ tiers:
                     args:
                         optional:
                             - 'gnocchi'
+                            - 'barbican'
 
             -
                 case_name: rally_jobs
index 263f004..e45e86f 100644 (file)
@@ -36,6 +36,7 @@ tiers:
                     args:
                         optional:
                             - 'gnocchi'
+                            - 'barbican'
 
             -
                 case_name: refstack_compute
index eaada3a..16f2910 100644 (file)
@@ -199,6 +199,7 @@ tiers:
                     args:
                         optional:
                             - 'gnocchi'
+                            - 'barbican'
 
             -
                 case_name: refstack_compute
@@ -398,6 +399,7 @@ tiers:
                     args:
                         optional:
                             - 'gnocchi'
+                            - 'barbican'
 
             -
                 case_name: rally_jobs
index ff2e592..98b368b 100644 (file)
@@ -41,7 +41,7 @@ class RallyBase(singlevm.VmReady2):
 
     # pylint: disable=too-many-instance-attributes, too-many-public-methods
     TESTS = ['authenticate', 'glance', 'cinder', 'gnocchi', 'heat',
-             'keystone', 'neutron', 'nova', 'quotas', 'swift']
+             'keystone', 'neutron', 'nova', 'quotas', 'swift', 'barbican']
 
     RALLY_CONF_PATH = "/etc/rally/rally.conf"
     RALLY_AARCH64_PATCH_PATH = pkg_resources.resource_filename(
diff --git a/functest/opnfv_tests/openstack/rally/scenario/opnfv-barbican.yaml b/functest/opnfv_tests/openstack/rally/scenario/opnfv-barbican.yaml
new file mode 100644 (file)
index 0000000..9dd9ca2
--- /dev/null
@@ -0,0 +1,98 @@
+  BarbicanContainers.create_and_add:
+    -
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      context:
+        {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+      sla:
+        {{ no_failures_sla() }}
+
+  BarbicanContainers.create_certificate_and_delete:
+    -
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      context:
+        {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+      sla:
+        {{ no_failures_sla() }}
+
+  BarbicanContainers.create_and_delete:
+    -
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      context:
+        {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+      sla:
+        {{ no_failures_sla() }}
+
+  BarbicanContainers.create_rsa_and_delete:
+    -
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      context:
+        {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+      sla:
+        {{ no_failures_sla() }}
+
+  BarbicanSecrets.create_and_delete:
+    -
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      context:
+        {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+      sla:
+        {{ no_failures_sla() }}
+
+  BarbicanSecrets.create_and_get:
+    -
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      context:
+        {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+      sla:
+        {{ no_failures_sla() }}
+
+  BarbicanSecrets.create_and_list:
+    -
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      context:
+        {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+      sla:
+        {{ no_failures_sla() }}
+
+  BarbicanSecrets.create:
+    -
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      context:
+        {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+      sla:
+        {{ no_failures_sla() }}
+
+  BarbicanSecrets.get:
+    -
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      context:
+        {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+      sla:
+        {{ no_failures_sla() }}
+
+  BarbicanContainers.list:
+    -
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      context:
+        {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+      sla:
+        {{ no_failures_sla() }}
+
+  BarbicanSecrets.list:
+    -
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      context:
+        {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+      sla:
+        {{ no_failures_sla() }}
index 3e69289..2581765 100644 (file)
@@ -46,3 +46,7 @@
 {% if "swift" in service_list %}
 {%- include "var/opnfv-swift.yaml"-%}
 {% endif %}
+
+{% if "barbican" in service_list %}
+{%- include "var/opnfv-barbican.yaml"-%}
+{% endif %}