83de99cdad
Refactoring the functional tests by using the standard usages [1] and best pratices available in the oslo.cache documentation. The main goal of these changes is to help us to test oslo.cache in the way that quite close to real life usages. To test new backend now we just need to create the associated test class dedicated to pass backend's config fixture. These changes allow to test a new backend by: - passing the right config to backend by using dedicated config fixture; - adding the zuul job dedicated to manage functional tests against etcd backend; - adding the right server backend to bindep. [1] https://docs.openstack.org/oslo.cache/latest/user/usage.html Change-Id: Iaf196d2d93225afa54e324fb830761049059926e
18 lines
691 B
YAML
18 lines
691 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:
|
|
# 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 {{ oslo_cache_backend_daemon }}"
|
|
service:
|
|
name: "{{ oslo_cache_backend_daemon }}"
|
|
state: stopped
|
|
enabled: no
|
|
become: yes
|