openstack-ansible-tests/tests/test-tests-functional.yml
Andy McCrae 0a7e26df8b Add tempest tests to test-repository
For now we'll setup the keystone tests only, but in future we may extend
this to match the projects that are tested in this repository.

To make this more generic:
* Use a conditional on the  "tempest_service_available_*" variables,
based on the precense of the specific service.
* Change the tempest_main_group to "utility_all"
* Remove the second keystone container, this is redundant for the
central testing repository

Change-Id: Icb10524004c7b93889d45f9f54773782fb84b36e
2016-09-08 15:42:18 +00:00

31 lines
1.1 KiB
YAML

---
# 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.
# Run tempest identity tests on one keystone host.
- name: Playbook for functional testing keystone
hosts: utility_all[0]
user: root
gather_facts: false
tasks:
# TODO(andymccr): add credentials functionality to keystone and remove the "credentials" exclusion.
- name: Run tempest
shell: |
. {{ tempest_venv_bin }}/activate
{{ tempest_venv_bin | dirname }}/run_tempest.sh --no-virtual-env ${RUN_TEMPEST_OPTS} '^tempest.api.identity*'
environment:
RUN_TEMPEST_OPTS: "--serial"
vars_files:
- playbooks/test-vars.yml