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
|
||||
scm: git
|
||||
version: master
|
||||
- name: os_tempest
|
||||
src: https://git.openstack.org/openstack/openstack-ansible-os_tempest
|
||||
scm: git
|
||||
version: master
|
||||
- name: openstack_openrc
|
||||
src: https://git.openstack.org/openstack/openstack-ansible-openstack_openrc
|
||||
scm: git
|
||||
|
@ -22,20 +22,11 @@
|
||||
uri:
|
||||
url: "http://localhost:8776"
|
||||
status_code: 200,300
|
||||
- name: Set cinder_volume_name fact
|
||||
set_fact:
|
||||
cinder_volume_name: "functional-volume-{{ 100|random }}"
|
||||
- name: Create cinder volume
|
||||
- name: Run tempest
|
||||
shell: |
|
||||
. /root/openrc
|
||||
{{ cinder_venv_bin }}/cinder create --name {{ cinder_volume_name }} 1
|
||||
- name: Verify volume goes active
|
||||
shell: |
|
||||
. /root/openrc
|
||||
{{ cinder_venv_bin }}/cinder show {{ cinder_volume_name }} | grep available
|
||||
register: volume_status
|
||||
until: volume_status|success
|
||||
retries: 5
|
||||
delay: 5
|
||||
. /opt/tempest_{{ tempest_git_install_branch }}/bin/activate
|
||||
/opt/tempest_{{ tempest_git_install_branch }}/run_tempest.sh --no-virtual-env ${RUN_TEMPEST_OPTS} tempest.api.volume.test_volumes_get
|
||||
environment:
|
||||
RUN_TEMPEST_OPTS: "--serial"
|
||||
vars_files:
|
||||
- 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_servers: 10.100.100.2
|
||||
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
|
||||
|
@ -34,5 +34,8 @@
|
||||
# Install Cinder
|
||||
- include: test-install-cinder.yml
|
||||
|
||||
# Install Tempest
|
||||
- include: test-install-tempest.yml
|
||||
|
||||
# Test Cinder
|
||||
- include: test-cinder-functional.yml
|
||||
|
Loading…
Reference in New Issue
Block a user