Use tempest for functional testing
Depends-On: I30a877f6c84f66ca05381969d015850078532e1f Change-Id: I34ff88713a1c5eb09c009f0a304f61b44c00abde
This commit is contained in:
parent
563dc74a7a
commit
38e3c46907
@ -46,6 +46,10 @@
|
|||||||
src: https://git.openstack.org/openstack/openstack-ansible-os_keystone
|
src: https://git.openstack.org/openstack/openstack-ansible-os_keystone
|
||||||
scm: git
|
scm: git
|
||||||
version: master
|
version: master
|
||||||
|
- name: os_tempest
|
||||||
|
src: https://git.openstack.org/openstack/openstack-ansible-os_tempest
|
||||||
|
scm: git
|
||||||
|
version: master
|
||||||
- name: openstack_openrc
|
- name: openstack_openrc
|
||||||
src: https://git.openstack.org/openstack/openstack-ansible-openstack_openrc
|
src: https://git.openstack.org/openstack/openstack-ansible-openstack_openrc
|
||||||
scm: git
|
scm: git
|
||||||
|
@ -22,20 +22,11 @@
|
|||||||
uri:
|
uri:
|
||||||
url: "http://localhost:8776"
|
url: "http://localhost:8776"
|
||||||
status_code: 200,300
|
status_code: 200,300
|
||||||
- name: Set cinder_volume_name fact
|
- name: Run tempest
|
||||||
set_fact:
|
|
||||||
cinder_volume_name: "functional-volume-{{ 100|random }}"
|
|
||||||
- name: Create cinder volume
|
|
||||||
shell: |
|
shell: |
|
||||||
. /root/openrc
|
. /opt/tempest_{{ tempest_git_install_branch }}/bin/activate
|
||||||
{{ cinder_venv_bin }}/cinder create --name {{ cinder_volume_name }} 1
|
/opt/tempest_{{ tempest_git_install_branch }}/run_tempest.sh --no-virtual-env ${RUN_TEMPEST_OPTS} tempest.api.volume.test_volumes_get
|
||||||
- name: Verify volume goes active
|
environment:
|
||||||
shell: |
|
RUN_TEMPEST_OPTS: "--serial"
|
||||||
. /root/openrc
|
|
||||||
{{ cinder_venv_bin }}/cinder show {{ cinder_volume_name }} | grep available
|
|
||||||
register: volume_status
|
|
||||||
until: volume_status|success
|
|
||||||
retries: 5
|
|
||||||
delay: 5
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- test-vars.yml
|
- test-vars.yml
|
||||||
|
23
tests/test-install-tempest.yml
Normal file
23
tests/test-install-tempest.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2015, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
- name: Playbook for deploying tempest
|
||||||
|
hosts: openstack1
|
||||||
|
user: root
|
||||||
|
gather_facts: true
|
||||||
|
roles:
|
||||||
|
- role: "os_tempest"
|
||||||
|
vars_files:
|
||||||
|
- test-vars.yml
|
@ -52,4 +52,19 @@ openrc_os_password: "{{ keystone_auth_admin_password }}"
|
|||||||
rabbitmq_port: 5671
|
rabbitmq_port: 5671
|
||||||
rabbitmq_servers: 10.100.100.2
|
rabbitmq_servers: 10.100.100.2
|
||||||
rabbitmq_use_ssl: true
|
rabbitmq_use_ssl: true
|
||||||
|
tempest_developer_mode: True
|
||||||
|
tempest_git_repo: https://git.openstack.org/openstack/tempest
|
||||||
|
tempest_git_install_branch: 534a8dc60dfef116156b8f9ee60071a9bf4e4f90
|
||||||
|
tempest_git_dest: "/opt/tempest_{{ tempest_git_install_branch | replace('/', '_') }}"
|
||||||
|
tempest_log_dir: "/var/log/"
|
||||||
|
tempest_main_group: cinder_all
|
||||||
|
tempest_service_available_aodh: False
|
||||||
|
tempest_service_available_ceilometer: False
|
||||||
|
tempest_service_available_cinder: True
|
||||||
|
tempest_service_available_glance: False
|
||||||
|
tempest_service_available_heat: False
|
||||||
|
tempest_service_available_horizon: False
|
||||||
|
tempest_service_available_neutron: False
|
||||||
|
tempest_service_available_nova: False
|
||||||
|
tempest_service_available_swift: False
|
||||||
verbose: true
|
verbose: true
|
||||||
|
@ -34,5 +34,8 @@
|
|||||||
# Install Cinder
|
# Install Cinder
|
||||||
- include: test-install-cinder.yml
|
- include: test-install-cinder.yml
|
||||||
|
|
||||||
|
# Install Tempest
|
||||||
|
- include: test-install-tempest.yml
|
||||||
|
|
||||||
# Test Cinder
|
# Test Cinder
|
||||||
- include: test-cinder-functional.yml
|
- include: test-cinder-functional.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user