openstack-ansible-galera_se.../tests/test.yml
Jimmy McCrory a37735c3fb Reorganize test playbooks
The following changes have been made to reorganize the structure of this
role's test playbooks, bringing them into line with other
OpenStack-Ansible roles:
  - move each playbook to an individual file
  - rename playbooks descriptively
  - define hosts and groups directly in the inventory file
  - include group vars required by containers
  - store extra variables in a single shared test-vars file
  - remove use of the openstack_hosts role
  - include callback plugin for human readable logging of test tasks

Change-Id: I4829e368003f58685cb96b7ee743255d00542187
2016-04-10 07:01:13 +00:00

57 lines
1.8 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.
# Prepare the user ssh keys
- include: test-prepare-keys.yml
# Prepare the host
- include: test-prepare-host.yml
# Run container clean up and build
- include: test-prepare-containers.yml
# Install Galera server
- include: test-install-galera-server.yml
vars:
message: "===== Running Current MariaDB Deployment ====="
# Run functional tests
- include: test-galera-server-functional.yml
############################# UPGRADE TESTING #############################
# Run container clean up and build
- include: test-prepare-containers.yml
# Install previous version of Galera server
- include: test-install-galera-server.yml
vars:
message: "===== Running MariaDB 5.5 Deployment for Upgrade ====="
galera_mariadb_server_package: "mariadb-galera-server-5.5"
galera_apt_repo_url: "https://mirror.rackspace.com/mariadb/repo/5.5/ubuntu"
# Run initial functional tests
- include: test-galera-server-functional.yml
# Perform upgrade of Galera server
- include: test-install-galera-server.yml
vars:
message: "===== Running MariaDB 5.5 to Current Upgrade ====="
galera_ignore_cluster_state: true
galera_upgrade: true
# Run final functional tests
- include: test-galera-server-functional.yml