Skip to content

Commit

Permalink
vmware_content_library_manager: reenable the tests (ansible-collectio…
Browse files Browse the repository at this point in the history
…ns#1132)

vmware_content_library_manager: reenable the tests

The test now dynamically retrieves the fingerprint of
wp-content.vmware.com. This way we don't need to hardcode the key.
Depends-On: ansible/ansible-zuul-jobs#1217

Reviewed-by: None <None>
  • Loading branch information
goneri authored Nov 15, 2021
1 parent ff3a3aa commit 5f96b4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ cloud/vcenter
needs/target/prepare_vmware_tests
zuul/vmware/vcenter_1esxi
zuul/vmware/govcsim
disabled
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@
library_type: subscribed
state: absent

- name: get finger print
shell: echo | openssl s_client -connect wp-content.vmware.com:443 |& openssl x509 -fingerprint -noout
register: _finger_print
- debug: var=_finger_print

- &subscribed_content_lib_create
name: Create subscribed content library
vmware_content_library_manager:
Expand All @@ -113,7 +118,7 @@
subscription_url: "https://wp-content.vmware.com/v2/latest/lib.json"
update_on_demand: true
library_type: subscribed
ssl_thumbprint: ba:c6:4e:d9:ad:d4:53:b5:86:5a:5d:70:36:cf:89:93:d1:6c:f9:63
ssl_thumbprint: '{{ _finger_print.stdout.split("=")[1] }}'
datastore_name: '{{ rw_datastore }}'
state: present
register: subscribed_content_lib_create_result
Expand Down Expand Up @@ -144,7 +149,7 @@
subscription_url: https://download3.vmware.com/software/vmw-tools/lib.json
update_on_demand: true
library_type: subscribed
ssl_thumbprint: ba:c6:4e:d9:ad:d4:53:b5:86:5a:5d:70:36:cf:89:93:d1:6c:f9:63
ssl_thumbprint: '{{ _finger_print.stdout.split("=")[1] }}'
state: present
register: subscribed_content_lib_update_result

Expand Down

0 comments on commit 5f96b4b

Please sign in to comment.