
This adds functional tests with redis and redis sentinel, to ensure the current implementation can initialize clients properly. Change-Id: I6318f6ad00d5b0ee3db1be5e8671a4c346b9daff
21 lines
816 B
YAML
21 lines
816 B
YAML
- hosts: all
|
|
vars:
|
|
oslo_cache_backend_daemon: "{{ tox_environment.PIFPAF_DAEMON }}"
|
|
roles:
|
|
- role: bindep
|
|
bindep_profile: "tests-functional-{{ oslo_cache_backend_daemon }}"
|
|
tasks:
|
|
- name: Include OS-specific variables
|
|
include_vars: "{{ ansible_os_family }}.yaml"
|
|
# NOTE(yoctozepto): Debian and Ubuntu have this nasty policy of starting
|
|
# installed services for us. We don't rely on system-wide service and use
|
|
# pifpaf. Unfortunately, default port may conflict with system-wide service.
|
|
# So, for sanity and resource conservation, let's stop it before tests run.
|
|
- name: "Stop backend services"
|
|
service:
|
|
name: "{{ item }}"
|
|
state: stopped
|
|
enabled: no
|
|
become: yes
|
|
loop: "{{ backend_services_map[oslo_cache_backend_daemon] }}"
|