summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functest/opnfv_tests/openstack/rally/scenario/full/opnfv-nova.yaml98
-rw-r--r--functest/opnfv_tests/openstack/rally/scenario/sanity/opnfv-nova.yaml25
-rw-r--r--functest/utils/openstack_utils.py3
3 files changed, 125 insertions, 1 deletions
diff --git a/functest/opnfv_tests/openstack/rally/scenario/full/opnfv-nova.yaml b/functest/opnfv_tests/openstack/rally/scenario/full/opnfv-nova.yaml
index ce97eea67..512448fd4 100644
--- a/functest/opnfv_tests/openstack/rally/scenario/full/opnfv-nova.yaml
+++ b/functest/opnfv_tests/openstack/rally/scenario/full/opnfv-nova.yaml
@@ -316,3 +316,101 @@
{{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
sla:
{{ no_failures_sla() }}
+
+ NovaServers.boot_server_and_list_interfaces:
+ -
+ args:
+ {{ vm_params(image_name, flavor_name) }}
+ auto_assign_nic: true
+ context:
+ {% call user_context(tenants_amount, users_amount, use_existing_users) %}
+ network: {}
+ {% endcall %}
+ runner:
+ {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+ sla:
+ {{ no_failures_sla() }}
+
+ NovaServers.boot_and_get_console_url:
+ -
+ args:
+ {{ vm_params(image_name, flavor_name) }}
+ console_type: "novnc"
+ auto_assign_nic: true
+ context:
+ {% call user_context(tenants_amount, users_amount, use_existing_users) %}
+ network: {}
+ {% endcall %}
+ runner:
+ {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+ sla:
+ {{ no_failures_sla() }}
+
+ NovaServers.boot_server_and_attach_interface:
+ -
+ args:
+ {{ vm_params(image_name, flavor_name) }}
+ network_create_args: {}
+ subnet_create_args: {}
+ boot_server_args:
+ auto_assign_nic: true
+ context:
+ {% call user_context(tenants_amount, users_amount, use_existing_users) %}
+ network: {}
+ {% endcall %}
+ runner:
+ {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+ sla:
+ {{ no_failures_sla() }}
+
+ NovaServers.boot_server_attach_volume_and_list_attachments:
+ -
+ args:
+ {{ vm_params(image_name, flavor_name) }}
+ volume_size: 1
+ volume_num: 1
+ create_volume_kwargs: {}
+ boot_server_kwargs:
+ auto_assign_nic: true
+ context:
+ {% call user_context(tenants_amount, users_amount, use_existing_users) %}
+ network: {}
+ {% endcall %}
+ runner:
+ {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+ sla:
+ {{ no_failures_sla() }}
+
+ NovaServerGroups.create_and_delete_server_group:
+ -
+ args:
+ policies: ["affinity"]
+ context:
+ {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+ runner:
+ {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+ sla:
+ {{ no_failures_sla() }}
+
+ NovaServerGroups.create_and_get_server_group:
+ -
+ args:
+ policies: ["affinity"]
+ context:
+ {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+ runner:
+ {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+ sla:
+ {{ no_failures_sla() }}
+
+ NovaServerGroups.create_and_list_server_groups:
+ -
+ args:
+ policies: ["affinity"]
+ all_projects: false
+ context:
+ {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+ runner:
+ {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+ sla:
+ {{ no_failures_sla() }}
diff --git a/functest/opnfv_tests/openstack/rally/scenario/sanity/opnfv-nova.yaml b/functest/opnfv_tests/openstack/rally/scenario/sanity/opnfv-nova.yaml
index 7d21db024..801938c4e 100644
--- a/functest/opnfv_tests/openstack/rally/scenario/sanity/opnfv-nova.yaml
+++ b/functest/opnfv_tests/openstack/rally/scenario/sanity/opnfv-nova.yaml
@@ -117,3 +117,28 @@
{{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
sla:
{{ no_failures_sla() }}
+
+ NovaServers.boot_server_and_list_interfaces:
+ -
+ args:
+ {{ vm_params(image_name, flavor_name) }}
+ auto_assign_nic: true
+ context:
+ {% call user_context(tenants_amount, users_amount, use_existing_users) %}
+ network: {}
+ {% endcall %}
+ runner:
+ {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+ sla:
+ {{ no_failures_sla() }}
+
+ NovaServerGroups.create_and_delete_server_group:
+ -
+ args:
+ policies: ["affinity"]
+ context:
+ {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+ runner:
+ {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+ sla:
+ {{ no_failures_sla() }}
diff --git a/functest/utils/openstack_utils.py b/functest/utils/openstack_utils.py
index d8b1cf6f9..ef32a7e62 100644
--- a/functest/utils/openstack_utils.py
+++ b/functest/utils/openstack_utils.py
@@ -132,7 +132,7 @@ def source_credentials(rc_file):
def get_credentials_for_rally():
creds = get_credentials()
env_cred_dict = get_env_cred_dict()
- rally_conf = {"type": "ExistingCloud", "admin": {}}
+ rally_conf = {"admin": {}}
for key in creds:
if key == 'auth_url':
rally_conf[key] = creds[key]
@@ -159,6 +159,7 @@ def get_credentials_for_rally():
insecure_key = env_cred_dict.get('OS_INSECURE')
rally_conf[insecure_key] = os.getenv('OS_INSECURE', '').lower() == 'true'
+ rally_conf = {"openstack": rally_conf}
return rally_conf