From 8a4fed2ccf7c28f97d3ade28e79de8ad2d03eb50 Mon Sep 17 00:00:00 2001 From: Travis Truman Date: Mon, 14 Mar 2016 10:09:22 -0400 Subject: [PATCH] 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 --- tests/test.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/test.yml b/tests/test.yml index b9736ccc..9275ed89 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -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 \ No newline at end of file