From 1e31574dfe4c803a7fab05827ab163f3bb7f2ec7 Mon Sep 17 00:00:00 2001 From: Delia Popescu Date: Thu, 10 May 2018 12:13:08 +0300 Subject: Add cinder_test testcase Create 2 instances with Floating IPs Attach data volume to instance 1 Write data on the volume Detach volume from instance 1 Attach volume to instance 2 Read data from volume JIRA: FUNCTEST-908 Change-Id: I10efdfb3b7f9d7e6ab5c6a538052437585d52fb0 Signed-off-by: Delia Popescu --- functest/ci/config_functest.yaml | 19 +++++++++++++++++++ functest/ci/testcases.yaml | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) (limited to 'functest/ci') diff --git a/functest/ci/config_functest.yaml b/functest/ci/config_functest.yaml index 2cdec4500..3e49d612a 100644 --- a/functest/ci/config_functest.yaml +++ b/functest/ci/config_functest.yaml @@ -80,6 +80,7 @@ snaps: # port: {proxy_port} # ssh_proxy_cmd: {OpenSSH -o ProxyCommand value} + vping: ping_timeout: 200 vm_flavor: m1.tiny # adapt to your environment @@ -103,6 +104,24 @@ vping: vm_ssh_connect_timeout: 60 cleanup_objects: 'True' +cinder: + vm_name_1: opnfv-cinder-1 + vm_name_2: opnfv-cinder-2 + image_name: functest-cinder + private_net_name: cinder-net + private_subnet_name: cinder-subnet + private_subnet_cidr: 192.168.130.0/24 + router_name: cinder-router + sg_name: cinder-sg + sg_desc: Security group for CinderCheck test case + keypair_name: cinder-keypair + keypair_priv_file: /tmp/CinderCheck-keypair + keypair_pub_file: /tmp/CinderCheck-keypair.pub + vm_boot_timeout: 180 + vm_delete_timeout: 100 + vm_ssh_connect_timeout: 60 + cleanup_objects: 'True' + odl_sfc: image_base_url: "http://artifacts.opnfv.org/sfc/images" image_name: sfc_nsh_danube diff --git a/functest/ci/testcases.yaml b/functest/ci/testcases.yaml index 2b348d587..b3e05f082 100644 --- a/functest/ci/testcases.yaml +++ b/functest/ci/testcases.yaml @@ -69,6 +69,7 @@ tiers: description: >- Set of basic Functional tests to validate the OPNFV scenarios. testcases: + - case_name: vping_ssh project_name: functest @@ -101,6 +102,23 @@ tiers: 'functest.opnfv_tests.openstack.vping.vping_userdata' class: 'VPingUserdata' + - + case_name: cinder_test + project_name: functest + criteria: 100 + blocking: false + description: >- + This test case verifies: 1) Attach volume and to 1 + instance; 2) Write data on volume 3) Detach volume + from instance 1, attach it on instance 2 3) Read volume + data + dependencies: + installer: '' + scenario: '^((?!lxd).)*$' + run: + module: 'functest.opnfv_tests.openstack.cinder.cinder_test' + class: 'CinderCheck' + - case_name: tempest_smoke_serial project_name: functest -- cgit 1.2.3-korg