Test designate w/ designate tempest plugins
This commit updates role to install tempest and designate-tempest-plugin and then runs the designate scenario tests. Change-Id: Icc70b47e8cc34d21ef082e7dd04d969789c9ca83
This commit is contained in:
parent
685e907302
commit
6d5f75f025
|
@ -46,3 +46,7 @@
|
|||
src: https://git.openstack.org/openstack/openstack-ansible-openstack_openrc
|
||||
scm: git
|
||||
version: master
|
||||
- name: os_tempest
|
||||
src: https://git.openstack.org/openstack/openstack-ansible-os_tempest
|
||||
scm: git
|
||||
version: master
|
||||
|
|
|
@ -14,25 +14,15 @@
|
|||
# limitations under the License.
|
||||
|
||||
- name: Playbook for functional testing of designate
|
||||
hosts: designate_all[0]
|
||||
hosts: designate_all
|
||||
user: root
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Check the designate API
|
||||
uri:
|
||||
url: "http://localhost:9001"
|
||||
status_code: 200
|
||||
- name: Create test domain
|
||||
- name: Run tempest
|
||||
shell: |
|
||||
. /root/openrc
|
||||
{{ designate_venv_bin }}/designate domain-create --name designate-example.com. --email designate@example.org
|
||||
- name: Verify domain gets created
|
||||
shell: |
|
||||
. /root/openrc
|
||||
{{ designate_venv_bin }}/designate domain-get designate-example.com.
|
||||
register: domain_status
|
||||
until: domain_status|success
|
||||
retries: 5
|
||||
delay: 5
|
||||
. {{ tempest_venv_bin }}/activate
|
||||
{{ tempest_venv_bin | dirname }}/run_tempest.sh --no-virtual-env ${RUN_TEMPEST_OPTS} designate_tempest_plugin.tests.scenario.v2.test_zones
|
||||
environment:
|
||||
RUN_TEMPEST_OPTS: "--serial"
|
||||
vars_files:
|
||||
- test-vars.yml
|
||||
|
|
|
@ -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: designate_all
|
||||
user: root
|
||||
gather_facts: true
|
||||
roles:
|
||||
- role: "os_tempest"
|
||||
vars_files:
|
||||
- test-vars.yml
|
|
@ -69,3 +69,24 @@ designate_rabbitmq_password: "secrete"
|
|||
designate_rabbitmq_userid: designate
|
||||
designate_rabbitmq_vhost: /designate
|
||||
designate_venv_bin: "/openstack/venvs/designate-{{ designate_venv_tag }}/bin"
|
||||
tempest_developer_mode: True
|
||||
tempest_git_install_branch: master
|
||||
tempest_venv_tag: "{{ tempest_git_install_branch }}"
|
||||
# tempest_venv_bin is the same as the default in os_tempest role, but we set
|
||||
# it again here so we can refer to it in test-designate-functional.yml
|
||||
tempest_venv_bin: "/opt/tempest_{{ tempest_venv_tag }}/bin"
|
||||
tempest_log_dir: "/var/log/"
|
||||
tempest_main_group: designate_all
|
||||
tempest_service_available_aodh: False
|
||||
tempest_service_available_ceilometer: False
|
||||
tempest_service_available_cinder: False
|
||||
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
|
||||
tempest_plugins:
|
||||
- name: designate-tempest-plugin
|
||||
repo: https://git.openstack.org/openstack/designate-tempest-plugin
|
||||
branch: master
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
# Install Designate
|
||||
- include: test-install-designate.yml
|
||||
|
||||
# Install Tempest
|
||||
- include: test-install-tempest.yml
|
||||
|
||||
# Test Designate
|
||||
- include: test-designate-functional.yml
|
||||
|
||||
|
|
Loading…
Reference in New Issue