mirror of
https://github.com/atosatto/ansible-minio.git
synced 2025-01-07 18:38:30 +01:00
Fix tests.
This commit is contained in:
parent
828bd25175
commit
6924d8eba4
@ -6,6 +6,12 @@
|
|||||||
- ansible-minio
|
- ansible-minio
|
||||||
vars:
|
vars:
|
||||||
minio_server_datadirs:
|
minio_server_datadirs:
|
||||||
- "/test"
|
- "/test1"
|
||||||
|
- "/test2"
|
||||||
|
- "/test3"
|
||||||
|
- "/test4"
|
||||||
minio_server_cluster_nodes:
|
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"
|
||||||
|
@ -26,7 +26,10 @@ def test_directories(host, dirs):
|
|||||||
|
|
||||||
def test_env_file(host):
|
def test_env_file(host):
|
||||||
env_file = host.file("/etc/default/minio")
|
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):
|
def test_minio_service(Service):
|
||||||
|
Loading…
Reference in New Issue
Block a user