Test overridden lxc_container_bind_mounts value

lxc_container_bind_mounts is overridden within the tests repo with
change I774343234a25063eb320cac85ba696d908f0a416.

Adjust the functional test to check for the overridden value.

Change-Id: Icaa1af40b159aaaa2b096c3148356f2d2abb38f5
This commit is contained in:
Jimmy McCrory 2017-06-18 13:07:55 -07:00
parent 4469f859a6
commit 07f74c7208
2 changed files with 4 additions and 5 deletions

View File

@ -5,9 +5,5 @@ ansible_user: root
lxc_container_config_list:
- "lxc.aa_profile=unconfined"
lxc_container_bind_mounts:
- host_directory: "/openstack/{{ inventory_hostname }}/test2"
container_directory: "/opt/test2"
# TEST FOR FIXED MAC ADDRESS
lxc_container_fixed_mac: true

View File

@ -53,11 +53,14 @@
command: grep "lxc.mount.entry = /openstack/container1 opt/test1 none bind 0 0" /var/lib/lxc/container1/config
- name: Check for the presence of the right bound mount for container2
command: grep "lxc.mount.entry = /openstack/container2/test2 opt/test2 none bind 0 0" /var/lib/lxc/container2/config
command: grep "lxc.mount.entry = {{ development_repo_directory }} {{ development_repo_directory | relpath('/') }} none bind 0 0" /var/lib/lxc/container2/config
- name: Check for the presence of the default bound mount for container3
command: grep "lxc.mount.entry = /openstack/backup/container3" /var/lib/lxc/container3/config
vars_files:
- common/test-vars.yml
- name: Check for the bind mount in container1
hosts: container1
remote_user: root