diff options
Diffstat (limited to 'test/integration/targets/iso_extract')
-rw-r--r-- | test/integration/targets/iso_extract/aliases | 3 | ||||
-rw-r--r-- | test/integration/targets/iso_extract/files/test.iso | bin | 374784 -> 0 bytes | |||
-rw-r--r-- | test/integration/targets/iso_extract/meta/main.yml | 3 | ||||
-rw-r--r-- | test/integration/targets/iso_extract/tasks/7zip.yml | 66 | ||||
-rw-r--r-- | test/integration/targets/iso_extract/tasks/main.yml | 43 | ||||
-rw-r--r-- | test/integration/targets/iso_extract/tasks/prepare.yml | 33 | ||||
-rw-r--r-- | test/integration/targets/iso_extract/tasks/tests.yml | 52 | ||||
-rw-r--r-- | test/integration/targets/iso_extract/vars/FreeBSD.yml | 1 | ||||
-rw-r--r-- | test/integration/targets/iso_extract/vars/RedHat.yml | 1 | ||||
-rw-r--r-- | test/integration/targets/iso_extract/vars/Suse.yml | 1 | ||||
-rw-r--r-- | test/integration/targets/iso_extract/vars/Ubuntu.yml | 1 | ||||
-rw-r--r-- | test/integration/targets/iso_extract/vars/default.yml | 0 |
12 files changed, 0 insertions, 204 deletions
diff --git a/test/integration/targets/iso_extract/aliases b/test/integration/targets/iso_extract/aliases deleted file mode 100644 index 0b484bbab6..0000000000 --- a/test/integration/targets/iso_extract/aliases +++ /dev/null @@ -1,3 +0,0 @@ -shippable/posix/group1 -destructive -skip/aix diff --git a/test/integration/targets/iso_extract/files/test.iso b/test/integration/targets/iso_extract/files/test.iso Binary files differdeleted file mode 100644 index d06ff73ca5..0000000000 --- a/test/integration/targets/iso_extract/files/test.iso +++ /dev/null diff --git a/test/integration/targets/iso_extract/meta/main.yml b/test/integration/targets/iso_extract/meta/main.yml deleted file mode 100644 index ffbb9b93a0..0000000000 --- a/test/integration/targets/iso_extract/meta/main.yml +++ /dev/null @@ -1,3 +0,0 @@ -dependencies: - - prepare_tests - - setup_epel diff --git a/test/integration/targets/iso_extract/tasks/7zip.yml b/test/integration/targets/iso_extract/tasks/7zip.yml deleted file mode 100644 index a6bf95ad84..0000000000 --- a/test/integration/targets/iso_extract/tasks/7zip.yml +++ /dev/null @@ -1,66 +0,0 @@ -# Test code for the iso_extract module. -# (c) 2017, James Tanner <tanner.jc@gmail.com> -# (c) 2017, Dag Wieers <dag@wieers.com> - -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see <http://www.gnu.org/licenses/>. - -- name: Gather facts - setup: - become: yes - -- name: Include distribution specific variables - include_vars: "{{ lookup('first_found', params) }}" - vars: - params: - files: - - "{{ ansible_facts.distribution }}.yml" - - "{{ ansible_facts.os_family }}.yml" - - default.yml - paths: - - "{{ role_path }}/vars" - -- name: "{{ ansible_facts.os_family | upper }} | Install 7zip package" - action: "{{ ansible_facts.pkg_mgr }}" - args: - name: "{{ iso_extract_7zip_package }}" - state: present - when: ansible_facts.distribution != 'MacOSX' - -- name: macOS - when: ansible_facts.distribution == 'MacOSX' - block: - - name: MACOS | Find brew binary - command: which brew - register: brew_which - when: ansible_distribution in ['MacOSX'] - - - name: MACOS | Get owner of brew binary - stat: - path: "{{ brew_which.stdout }}" - register: brew_stat - when: ansible_distribution in ['MacOSX'] - - - name: MACOS | Install 7zip package - homebrew: - name: p7zip - state: present - update_homebrew: no - become: yes - become_user: "{{ brew_stat.stat.pw_name }}" - # Newer versions of brew want to compile a package which takes a long time. Do not upgrade homebrew until a - # proper solution can be found - environment: - HOMEBREW_NO_AUTO_UPDATE: True diff --git a/test/integration/targets/iso_extract/tasks/main.yml b/test/integration/targets/iso_extract/tasks/main.yml deleted file mode 100644 index c8eb6d1b3a..0000000000 --- a/test/integration/targets/iso_extract/tasks/main.yml +++ /dev/null @@ -1,43 +0,0 @@ -# Test code for the iso_extract module. -# (c) 2017, James Tanner <tanner.jc@gmail.com> -# (c) 2017, Dag Wieers <dag@wieers.com> - -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see <http://www.gnu.org/licenses/>. - -- set_fact: - output_dir_test: '{{ output_dir }}/test_iso_extract' - -- name: Install 7zip - import_tasks: 7zip.yml - -- name: Prepare environment - import_tasks: prepare.yml - -- name: Test in normal mode - import_tasks: tests.yml - vars: - in_check_mode: no - -- name: Prepare environment - import_tasks: prepare.yml - -- name: Test in check-mode - import_tasks: tests.yml - vars: - in_check_mode: yes - check_mode: yes - -# FIXME - fill this in after figuring out how to allow mounts diff --git a/test/integration/targets/iso_extract/tasks/prepare.yml b/test/integration/targets/iso_extract/tasks/prepare.yml deleted file mode 100644 index 78c06ad52c..0000000000 --- a/test/integration/targets/iso_extract/tasks/prepare.yml +++ /dev/null @@ -1,33 +0,0 @@ -# Test code for the iso_extract module. -# (c) 2017, James Tanner <tanner.jc@gmail.com> -# (c) 2017, Dag Wieers <dag@wieers.com> - -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see <http://www.gnu.org/licenses/>. - -- name: Make sure our testing sub-directory does not exist - file: - path: '{{ output_dir_test }}' - state: absent - -- name: Create our testing sub-directory - file: - path: '{{ output_dir_test }}' - state: directory - -- name: copy the iso to the test dir - copy: - src: test.iso - dest: '{{ output_dir_test }}' diff --git a/test/integration/targets/iso_extract/tasks/tests.yml b/test/integration/targets/iso_extract/tasks/tests.yml deleted file mode 100644 index f9182ba6ae..0000000000 --- a/test/integration/targets/iso_extract/tasks/tests.yml +++ /dev/null @@ -1,52 +0,0 @@ -# Test code for the iso_extract module. -# (c) 2017, James Tanner <tanner.jc@gmail.com> -# (c) 2017, Dag Wieers <dag@wieers.com> - -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see <http://www.gnu.org/licenses/>. - -- name: Extract the iso - iso_extract: - image: '{{ output_dir_test }}/test.iso' - dest: '{{ output_dir_test }}' - files: - - 1.txt - - 2.txt - register: iso_extract_test0 - -- assert: - that: - - iso_extract_test0 is changed == true - -- name: Extract the iso again - iso_extract: - image: '{{ output_dir_test }}/test.iso' - dest: '{{ output_dir_test }}' - files: - - 1.txt - - 2.txt - register: iso_extract_test0_again - -- name: Test iso_extract_test0_again (normal mode) - assert: - that: - - iso_extract_test0_again is changed == false - when: not in_check_mode - -- name: Test iso_extract_test0_again (check-mode) - assert: - that: - - iso_extract_test0_again is changed == true - when: in_check_mode diff --git a/test/integration/targets/iso_extract/vars/FreeBSD.yml b/test/integration/targets/iso_extract/vars/FreeBSD.yml deleted file mode 100644 index f9e7ca1a9a..0000000000 --- a/test/integration/targets/iso_extract/vars/FreeBSD.yml +++ /dev/null @@ -1 +0,0 @@ -iso_extract_7zip_package: p7zip diff --git a/test/integration/targets/iso_extract/vars/RedHat.yml b/test/integration/targets/iso_extract/vars/RedHat.yml deleted file mode 100644 index aa925a79e9..0000000000 --- a/test/integration/targets/iso_extract/vars/RedHat.yml +++ /dev/null @@ -1 +0,0 @@ -iso_extract_7zip_package: p7zip-plugins diff --git a/test/integration/targets/iso_extract/vars/Suse.yml b/test/integration/targets/iso_extract/vars/Suse.yml deleted file mode 100644 index f9e7ca1a9a..0000000000 --- a/test/integration/targets/iso_extract/vars/Suse.yml +++ /dev/null @@ -1 +0,0 @@ -iso_extract_7zip_package: p7zip diff --git a/test/integration/targets/iso_extract/vars/Ubuntu.yml b/test/integration/targets/iso_extract/vars/Ubuntu.yml deleted file mode 100644 index 219c495764..0000000000 --- a/test/integration/targets/iso_extract/vars/Ubuntu.yml +++ /dev/null @@ -1 +0,0 @@ -iso_extract_7zip_package: p7zip-full diff --git a/test/integration/targets/iso_extract/vars/default.yml b/test/integration/targets/iso_extract/vars/default.yml deleted file mode 100644 index e69de29bb2..0000000000 --- a/test/integration/targets/iso_extract/vars/default.yml +++ /dev/null |