summaryrefslogtreecommitdiff
path: root/test/integration/targets/prepare_vmware_tests/tasks/setup_content_library.yml
diff options
context:
space:
mode:
authorGonéri Le Bouder <goneri@lebouder.net>2019-07-24 10:50:23 +0200
committerGonéri Le Bouder <goneri@lebouder.net>2019-07-24 16:47:25 +0200
commitfb96f0b8ae96f8c3bec43bde564444d16c6aae3b (patch)
tree081c306ac60eb91260b549e06242aea54f5b2bb8 /test/integration/targets/prepare_vmware_tests/tasks/setup_content_library.yml
parent47496098e7da0340d12c242af8f4121d1b09ad53 (diff)
downloadansible-fb96f0b8ae96f8c3bec43bde564444d16c6aae3b.tar.gz
vmware_content_library_info: init the functional test
`vmware_content_library_info` functional test is currently broken because it assumes the vCenter content library is not empty. With this commit, the test inits the vCenter content library database using `prepapre_vmware_tests`, this before the functional test execution.
Diffstat (limited to 'test/integration/targets/prepare_vmware_tests/tasks/setup_content_library.yml')
-rw-r--r--test/integration/targets/prepare_vmware_tests/tasks/setup_content_library.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/prepare_vmware_tests/tasks/setup_content_library.yml b/test/integration/targets/prepare_vmware_tests/tasks/setup_content_library.yml
new file mode 100644
index 0000000000..02a5514551
--- /dev/null
+++ b/test/integration/targets/prepare_vmware_tests/tasks/setup_content_library.yml
@@ -0,0 +1,11 @@
+- name: Create Content Library
+ vmware_content_library_manager:
+ hostname: '{{ vcenter_hostname }}'
+ username: '{{ vcenter_username }}'
+ password: '{{ vcenter_password }}'
+ library_name: test-content-lib
+ library_description: 'Library created by the prepare_vmware_tests role'
+ library_type: local
+ datastore_name: '{{ ds2 }}'
+ validate_certs: False
+ state: present