Add os_heat role functional tests for gate

The Heat functional tests simply validate the
heat APIs are reachable. Tempest testing would require
installation of glance, nova and neutron so it is
reserved for the integrated gate.

Co-Authored-By: Travis Truman <travis_truman@cable.comcast.com>
Change-Id: I619dcc085c1a2c5d23c685cc63dc2e70b1bd530e
Closes-bug: #1624518
This commit is contained in:
Qin Wang 2016-09-27 20:44:22 +00:00 committed by Jesse Pretorius
parent 2b1c7cb68e
commit 4c21c435cd
6 changed files with 42 additions and 4 deletions

4
.gitignore vendored
View File

@ -62,8 +62,8 @@ releasenotes/build
# Test temp files
tests/plugins
tests/playbooks
tests/test.retry
tests/common
tests/*.retry
# Vagrant artifacts
.vagrant

View File

@ -21,6 +21,9 @@ rabbitmq_all
galera_all
memcached_all
[utility_all]
openstack1
[keystone_all]
openstack1
@ -48,4 +51,4 @@ heat_engine
heat_api_cfn
heat_api_cloudwatch
heat_engine_container
heat_apis_container
heat_apis_container

View File

@ -0,0 +1,33 @@
---
# Copyright 2016, 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: Ensure heat APIs are reachable
hosts: heat_all
user: root
gather_facts: false
tasks:
- name: check heat api
uri:
url: "http://localhost:{{ item }}"
status_code: 300
register: result
until: result.status == 300
retries: 5
delay: 10
with_items:
- 8000
- 8003
- 8004

View File

@ -63,4 +63,4 @@
- role: "os_heat"
vars_files:
- common/test-vars.yml
- test-vars.yml

View File

@ -24,3 +24,5 @@
# Install Heat
- include: test-install-heat.yml
- include: test-heat-functional.yml