From 35a8922988841bb6efc190b9d020573d17736c8a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= <goneri@lebouder.net>
Date: Sat, 26 Oct 2019 12:15:01 -0400
Subject: [PATCH] prepare_vmware_tests: datastore host is datastore.test

Use an alias to access the datastore host. This way, it's easier
to use an existing NFS server.
We can also disable the `write` access on the iso datastore.
---
 .../targets/prepare_vmware_tests/vars/real_lab.yml        | 8 +++-----
 .../targets/vmware_content_library_manager/tasks/main.yml | 2 +-
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/test/integration/targets/prepare_vmware_tests/vars/real_lab.yml b/test/integration/targets/prepare_vmware_tests/vars/real_lab.yml
index 53dc64e20d6..1d922f1fe03 100644
--- a/test/integration/targets/prepare_vmware_tests/vars/real_lab.yml
+++ b/test/integration/targets/prepare_vmware_tests/vars/real_lab.yml
@@ -7,14 +7,12 @@ infra:
   datastores:
     LocalDS_0:
       type: nfs
-      server: gateway.test
+      server: datastore.test
       path: /srv/share/isos
-      # https://github.com/ansible/ansible/issues/58541 prevents us
-      # from using the "ro: true" mode
-      ro: false
+      ro: true
     LocalDS_1:
       type: nfs
-      server: gateway.test
+      server: datastore.test
       path: /srv/share/vms
       ro: false
 virtual_machines:
diff --git a/test/integration/targets/vmware_content_library_manager/tasks/main.yml b/test/integration/targets/vmware_content_library_manager/tasks/main.yml
index 93abb1e155b..be337948188 100644
--- a/test/integration/targets/vmware_content_library_manager/tasks/main.yml
+++ b/test/integration/targets/vmware_content_library_manager/tasks/main.yml
@@ -28,7 +28,7 @@
         validate_certs: False
         library_name: Sample_Library
         library_description: Sample Description
-        datastore_name: '{{ ds1 }}'
+        datastore_name: '{{ ds2 }}'
         state: present
       register: content_lib_create_result