forked from redhat-cop/cloud.vmware_ops
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
symlink runme.sh to be across all targets
- Loading branch information
1 parent
6fb8759
commit 77657c0
Showing
11 changed files
with
32 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
minor_changes: | ||
- general change to the testing structure which duplicate runme.sh for each target | ||
instead of recreating it manaully |
File renamed without changes.
14 changes: 0 additions & 14 deletions
14
tests/integration/targets/vmware_ops_cluster_settings_test/runme.sh
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
tests/integration/targets/vmware_ops_content_library_test/runme.sh
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
tests/integration/targets/vmware_ops_deploy_ovf_test/runme.sh
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
tests/integration/targets/vmware_ops_export_vm_as_ovf_test/runme.sh
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
tests/integration/targets/vmware_ops_manage_folder_test/runme.sh
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
tests/integration/targets/vmware_ops_provision_vm_test/runme.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
- name: Create symlink to the runme.sh script in specific target directories | ||
hosts: localhost | ||
tasks: | ||
- name: Find all target directories with specific prefix | ||
ansible.builtin.find: | ||
paths: ../tests/integration/targets | ||
recurse: false | ||
file_type: directory | ||
register: target_dirs | ||
|
||
- name: Create symlink and set executable permission in each target directory with prefix 'vmware_ops_' | ||
ansible.builtin.file: | ||
src: "{{ playbook_dir }}/../tests/integration/targets/runme.sh" | ||
dest: "{{ item.path }}/runme.sh" | ||
state: link | ||
mode: '0755' | ||
force: true | ||
loop: "{{ target_dirs.files }}" | ||
when: item.path | basename | regex_search('^vmware_ops_') |