Functional testing for Glance API and registry

Adding a barebones functional test to ensure that
both services have started and are responding to basic
API requests.

Change-Id: I965d6701a66f9fa6dec9f5b6eb58d7778446418e
This commit is contained in:
Travis Truman 2016-03-14 10:09:22 -04:00 committed by Jesse Pretorius (odyssey4me)
parent 43f9b5d9ca
commit 8a4fed2ccf

View File

@ -272,6 +272,11 @@
- mysql-db-setup
roles:
- role: "{{ rolename | basename }}"
tasks:
# needed by the functional test playbook below
- name: Install httplib2 so we can use the uri module
pip:
name: httplib2
vars:
external_lb_vip_address: 10.100.100.3
internal_lb_vip_address: 10.100.100.3
@ -304,3 +309,17 @@
openrc_os_domain_name: "Default"
memcached_servers: 127.0.0.1
memcached_encryption_key: "secrete"
- name: Playbook for functional testing glance
hosts: glance_all
user: root
gather_facts: false
tasks:
- name: Check the glance-api
uri:
url: "http://localhost:9292"
status_code: 300
- name: Check the glance-registry
uri:
url: "http://localhost:9191"
status_code: 401