Fix tests.

This commit is contained in:
Ben Kochie 2018-06-25 20:19:30 +02:00
parent 828bd25175
commit 6924d8eba4
Failed to extract signature
2 changed files with 12 additions and 3 deletions

View File

@ -6,6 +6,12 @@
- ansible-minio
vars:
minio_server_datadirs:
- "/test"
- "/test1"
- "/test2"
- "/test3"
- "/test4"
minio_server_cluster_nodes:
- "https://172.17.0.2:9091/test"
- "http://{{ ansible_hostname }}:9091/test1"
- "http://{{ ansible_hostname }}:9091/test2"
- "http://{{ ansible_hostname }}:9091/test3"
- "http://{{ ansible_hostname }}:9091/test4"

View File

@ -26,7 +26,10 @@ def test_directories(host, dirs):
def test_env_file(host):
env_file = host.file("/etc/default/minio")
assert env_file.contains('MINIO_VOLUMES="https://172.17.0.2:9091/test"')
a = host.ansible.get_variables()
host = a['ansible_hostname']
volume_string = "MINIO_VOLUMES=\"http://%s:9091/test1 " % (host)
assert env_file.contains(volume_string)
def test_minio_service(Service):