1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add headers to ci tests (#954)

* CI tests: add note to main.yml

* improve
This commit is contained in:
Andrew Klychkov 2020-09-25 09:01:17 +03:00 committed by GitHub
parent 62ae120c50
commit 9d5044ac1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
188 changed files with 940 additions and 0 deletions

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Scan new devices. - name: Scan new devices.
aix_devices: aix_devices:
device: all device: all

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Umounting /testfs - name: Umounting /testfs
aix_filesystem: aix_filesystem:
filesystem: /testfs filesystem: /testfs

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Copyright (c) 2017 Pierre-Louis Bonicoli <pierre-louis.bonicoli@libregerbil.fr> # Copyright (c) 2017 Pierre-Louis Bonicoli <pierre-louis.bonicoli@libregerbil.fr>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: - name:

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Test code for the archive module. # Test code for the archive module.
# (c) 2017, Abhijeet Kasurde <akasurde@redhat.com> # (c) 2017, Abhijeet Kasurde <akasurde@redhat.com>

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Set tests - name: Set tests
set_fact: set_fact:
tests: tests:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: test cloud-init - name: test cloud-init
# TODO: check for a workaround # TODO: check for a workaround
# install 'cloud-init'' failed: dpkg-divert: error: `diversion of /etc/init/ureadahead.conf # install 'cloud-init'' failed: dpkg-divert: error: `diversion of /etc/init/ureadahead.conf

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Install Consul and test - name: Install Consul and test
vars: vars:
consul_version: 1.5.0 consul_version: 1.5.0

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Create EMAIL cron var - name: Create EMAIL cron var
cronvar: cronvar:
name: EMAIL name: EMAIL

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: record the output directory - name: record the output directory
set_fact: deploy_helper_test_root={{output_dir}}/deploy_helper_test_root set_fact: deploy_helper_test_root={{output_dir}}/deploy_helper_test_root

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include_tasks: test_docker_config.yml - include_tasks: test_docker_config.yml
when: docker_py_version is version('2.6.0', '>=') and docker_api_version is version('1.30', '>=') when: docker_py_version is version('2.6.0', '>=') and docker_api_version is version('1.30', '>=')

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Create random name prefix (for containers, networks, ...) # Create random name prefix (for containers, networks, ...)
- name: Create random container name prefix - name: Create random container name prefix
set_fact: set_fact:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- block: - block:
- name: Create random container name - name: Create random container name
set_fact: set_fact:

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include_tasks: test_host_info.yml - include_tasks: test_host_info.yml
when: docker_py_version is version('1.10.0', '>=') and docker_api_version is version('1.21', '>=') when: docker_py_version is version('1.10.0', '>=') and docker_api_version is version('1.21', '>=')

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- when: ansible_facts.distribution ~ ansible_facts.distribution_major_version not in ['CentOS6', 'RedHat6'] - when: ansible_facts.distribution ~ ansible_facts.distribution_major_version not in ['CentOS6', 'RedHat6']
include_tasks: include_tasks:
file: test.yml file: test.yml

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- block: - block:
- name: Make sure image is not there - name: Make sure image is not there
docker_image: docker_image:

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- when: ansible_facts.distribution ~ ansible_facts.distribution_major_version not in ['CentOS6', 'RedHat6'] - when: ansible_facts.distribution ~ ansible_facts.distribution_major_version not in ['CentOS6', 'RedHat6']
include_tasks: include_tasks:
file: test.yml file: test.yml

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Create random name prefix - name: Create random name prefix
set_fact: set_fact:
name_prefix: "{{ 'ansible-test-%0x' % ((2**32) | random) }}" name_prefix: "{{ 'ansible-test-%0x' % ((2**32) | random) }}"

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- block: - block:
- name: Create random network name - name: Create random network name
set_fact: set_fact:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Run the tests # Run the tests
- block: - block:
- include_tasks: test_node.yml - include_tasks: test_node.yml

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include_tasks: test_node_info.yml - include_tasks: test_node_info.yml
# Maximum of 1.24 (docker API version for docker_node_info) and 1.25 (docker API version for docker_swarm) is 1.25 # Maximum of 1.24 (docker API version for docker_node_info) and 1.25 (docker API version for docker_swarm) is 1.25
when: docker_py_version is version('2.4.0', '>=') and docker_api_version is version('1.25', '>=') when: docker_py_version is version('2.4.0', '>=') and docker_api_version is version('1.25', '>=')

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Create random names - name: Create random names
set_fact: set_fact:
cname: "{{ 'ansible-container-%0x' % ((2**32) | random) }}" cname: "{{ 'ansible-container-%0x' % ((2**32) | random) }}"

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include_tasks: test_secrets.yml - include_tasks: test_secrets.yml
when: docker_py_version is version('2.1.0', '>=') and docker_api_version is version('1.25', '>=') when: docker_py_version is version('2.1.0', '>=') and docker_api_version is version('1.25', '>=')

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include_tasks: test_stack.yml - include_tasks: test_stack.yml
when: docker_api_version is version('1.25', '>=') when: docker_api_version is version('1.25', '>=')

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include_tasks: test_stack_info.yml - include_tasks: test_stack_info.yml
when: docker_api_version is version('1.25', '>=') when: docker_api_version is version('1.25', '>=')

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include_tasks: test_stack_task_info.yml - include_tasks: test_stack_task_info.yml
when: docker_api_version is version('1.25', '>=') when: docker_api_version is version('1.25', '>=')

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Run Docker Swarm tests - name: Run Docker Swarm tests
when: when:
- docker_py_version is version('1.10.0', '>=') - docker_py_version is version('1.10.0', '>=')

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include_tasks: test_swarm_info.yml - include_tasks: test_swarm_info.yml
# Maximum of 1.24 (docker API version for docker_swarm_info) and 1.25 (docker API version for docker_swarm) is 1.25 # Maximum of 1.24 (docker API version for docker_swarm_info) and 1.25 (docker API version for docker_swarm) is 1.25
when: docker_py_version is version('1.10.0', '>=') and docker_api_version is version('1.25', '>=') when: docker_py_version is version('1.10.0', '>=') and docker_api_version is version('1.25', '>=')

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Create random name prefix (for containers, networks, ...) # Create random name prefix (for containers, networks, ...)
- name: Create random name prefix - name: Create random name prefix

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include_tasks: test_docker_swarm_service_info.yml - include_tasks: test_docker_swarm_service_info.yml
when: docker_py_version is version('2.0.0', '>=') and docker_api_version is version('1.24', '>=') when: docker_py_version is version('2.0.0', '>=') and docker_api_version is version('1.24', '>=')

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Create random name prefix - name: Create random name prefix
set_fact: set_fact:
name_prefix: "{{ 'ansible-test-%0x' % ((2**32) | random) }}" name_prefix: "{{ 'ansible-test-%0x' % ((2**32) | random) }}"

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- block: - block:
- name: Create random volume name - name: Create random volume name
set_fact: set_fact:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: "include tasks for Debian family" - name: "include tasks for Debian family"
include_tasks: prepare.yml include_tasks: prepare.yml
when: ansible_pkg_mgr == "apt" when: ansible_pkg_mgr == "apt"

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# test code for the etcd3 module # test code for the etcd3 module
# (c) 2017, Jean-Philippe Evrard <jean-philippe@evrard.me> # (c) 2017, Jean-Philippe Evrard <jean-philippe@evrard.me>

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- debug: - debug:
msg: '{{ role_name }}' msg: '{{ role_name }}'
- debug: - debug:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: test jc key/value parser - name: test jc key/value parser
assert: assert:
that: that:

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Test json_query filter - name: Test json_query filter
assert: assert:
that: that:

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# test code for filters # test code for filters
# Copyright: (c) 2014, Michael DeHaan <michael.dehaan@gmail.com> # Copyright: (c) 2014, Michael DeHaan <michael.dehaan@gmail.com>
# Copyright: (c) 2019, Ansible Project # Copyright: (c) 2019, Ansible Project

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: test to_milliseconds filter - name: test to_milliseconds filter
assert: assert:
that: that:

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# (c) 2018, Alexander Bethke <oolongbrothers@gmx.net> # (c) 2018, Alexander Bethke <oolongbrothers@gmx.net>
# (c) 2018, Ansible Project # (c) 2018, Ansible Project

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# (c) 2018, Alexander Bethke <oolongbrothers@gmx.net> # (c) 2018, Alexander Bethke <oolongbrothers@gmx.net>
# (c) 2018, Ansible Project # (c) 2018, Ansible Project

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# test code for the gem module # test code for the gem module
# (c) 2014, James Tanner <tanner.jc@gmail.com> # (c) 2014, James Tanner <tanner.jc@gmail.com>

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# test code for the git_config module # test code for the git_config module
- name: setup - name: setup

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Test code for the github_issue module. # Test code for the github_issue module.
# #
# Copyright: (c) 2017-2018, Abhijeet Kasurde <akasurde@redhat.com> # Copyright: (c) 2017-2018, Abhijeet Kasurde <akasurde@redhat.com>

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Install required libs - name: Install required libs
pip: pip:
name: python-gitlab name: python-gitlab

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Install required libs - name: Install required libs
pip: pip:
name: python-gitlab name: python-gitlab

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Test code for gitlab_group_members module # Test code for gitlab_group_members module
# #
# Copyright: (c) 2020, Zainab Alsaffar <Zainab.Alsaffar@mail.rit.edu> # Copyright: (c) 2020, Zainab Alsaffar <Zainab.Alsaffar@mail.rit.edu>

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Install required libs - name: Install required libs
pip: pip:
name: python-gitlab name: python-gitlab

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Install required libs - name: Install required libs
pip: pip:
name: python-gitlab name: python-gitlab

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Install required libs - name: Install required libs
pip: pip:
name: python-gitlab name: python-gitlab

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Install required libs - name: Install required libs
pip: pip:
name: python-gitlab name: python-gitlab

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Install required libs - name: Install required libs
pip: pip:
name: python-gitlab name: python-gitlab

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Install required libs - name: Install required libs
pip: pip:
name: python-gitlab name: python-gitlab

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# test code for the hg module # test code for the hg module
# (c) 2014, James Tanner <tanner.jc@gmail.com> # (c) 2014, James Tanner <tanner.jc@gmail.com>

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Test code for the homebrew module. # Test code for the homebrew module.
# Copyright: (c) 2020, Abhijeet Kasurde <akasurde@redhat.com> # Copyright: (c) 2020, Abhijeet Kasurde <akasurde@redhat.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Pre-test setup # Pre-test setup
- name: create a vpc - name: create a vpc
hwc_network_vpc: hwc_network_vpc:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: delete a disk - name: delete a disk
hwc_evs_disk: hwc_evs_disk:
availability_zone: "cn-north-1a" availability_zone: "cn-north-1a"

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# #
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** # *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: delete a smn topic - name: delete a smn topic
hwc_smn_topic: hwc_smn_topic:
identity_endpoint: "{{ identity_endpoint }}" identity_endpoint: "{{ identity_endpoint }}"

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Pre-test setup # Pre-test setup
- name: create a vpc - name: create a vpc
hwc_network_vpc: hwc_network_vpc:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Pre-test setup # Pre-test setup
- name: create a vpc - name: create a vpc
hwc_network_vpc: hwc_network_vpc:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Pre-test setup # Pre-test setup
- name: create a vpc - name: create a vpc
hwc_network_vpc: hwc_network_vpc:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Pre-test setup # Pre-test setup
- name: create a vpc - name: create a vpc
hwc_network_vpc: hwc_network_vpc:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Pre-test setup # Pre-test setup
- name: create a vpc - name: create a vpc
hwc_network_vpc: hwc_network_vpc:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Pre-test setup # Pre-test setup
- name: delete a security group - name: delete a security group
hwc_vpc_security_group: hwc_vpc_security_group:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Pre-test setup # Pre-test setup
- name: create a security group - name: create a security group
hwc_vpc_security_group: hwc_vpc_security_group:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Pre-test setup # Pre-test setup
- name: create a vpc - name: create a vpc
hwc_network_vpc: hwc_network_vpc:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: tests.yml - include: tests.yml
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'trusty' when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'trusty'

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# test code for ini_file plugins # test code for ini_file plugins
# (c) 2017 Red Hat Inc. # (c) 2017 Red Hat Inc.

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Test code for the ipify_facts # Test code for the ipify_facts
# (c) 2017, Abhijeet Kasurde <akasurde@redhat.com> # (c) 2017, Abhijeet Kasurde <akasurde@redhat.com>

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: ensure iptables package is installed - name: ensure iptables package is installed
package: package:
name: name:

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Test code for ipwcli_dns # Test code for ipwcli_dns
- name: variables username, password, container, tld must be set - name: variables username, password, container, tld must be set

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Test code for iso_create module # Test code for iso_create module
# Copyright: (c) 2020, Diane Wang (Tomorrow9) <dianew@vmware.com> # Copyright: (c) 2020, Diane Wang (Tomorrow9) <dianew@vmware.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Test code for the iso_extract module. # Test code for the iso_extract module.
# (c) 2017, James Tanner <tanner.jc@gmail.com> # (c) 2017, James Tanner <tanner.jc@gmail.com>
# (c) 2017, Dag Wieers <dag@wieers.com> # (c) 2017, Dag Wieers <dag@wieers.com>

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: prep pkcs12 file - name: prep pkcs12 file
copy: src="{{ test_pkcs12_path }}" dest="{{output_dir}}/{{ test_pkcs12_path }}" copy: src="{{ test_pkcs12_path }}" dest="{{output_dir}}/{{ test_pkcs12_path }}"

View file

@ -1 +1,6 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- import_tasks: jboss.yml - import_tasks: jboss.yml

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Test launchd module - name: Test launchd module
block: block:

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Run LDAP search module tests - name: Run LDAP search module tests
block: block:
- include_tasks: "{{ item }}" - include_tasks: "{{ item }}"

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Test playbook for the listen_ports_facts module # Test playbook for the listen_ports_facts module
# Copyright: (c) 2019, Nathan Davison <ndavison85@gmail.com> # Copyright: (c) 2019, Nathan Davison <ndavison85@gmail.com>

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# (c) 2014, James Tanner <tanner.jc@gmail.com> # (c) 2014, James Tanner <tanner.jc@gmail.com>
# This file is part of Ansible # This file is part of Ansible

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Test cartesian lookup - name: Test cartesian lookup
debug: var=item debug: var=item
register: product register: product

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# lookup_etcd3 integration tests # lookup_etcd3 integration tests
# 2020, SCC France, Eric Belhomme <ebelhomme@fr.scc.com> # 2020, SCC France, Eric Belhomme <ebelhomme@fr.scc.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: test with_flattened - name: test with_flattened
set_fact: '{{ item }}=flattened' set_fact: '{{ item }}=flattened'
with_community.general.flattened: with_community.general.flattened:

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Install Hashi Vault on controlled node and test - name: Install Hashi Vault on controlled node and test
vars: vars:
vault_version: '0.11.0' vault_version: '0.11.0'

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- block: - block:
- include_tasks: package.yml - include_tasks: package.yml
- include_tasks: tests.yml - include_tasks: tests.yml

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Install required packages (Linux) - name: Install required packages (Linux)
package: package:
name: lvm2 name: lvm2

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# TODO: Our current implementation does not handle SMTP authentication # TODO: Our current implementation does not handle SMTP authentication
# NOTE: If the system does not support smtpd-tls (python 2.6 and older) we do basic tests # NOTE: If the system does not support smtpd-tls (python 2.6 and older) we do basic tests

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
# Test code for the mas module. # Test code for the mas module.
# Copyright: (c) 2020, Lukas Bestle <project-ansible@lukasbestle.com> # Copyright: (c) 2020, Lukas Bestle <project-ansible@lukasbestle.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: request reload with invalid API key - name: request reload with invalid API key
memset_dns_reload: memset_dns_reload:
api_key: "wa9aerahhie0eekee9iaphoorovooyia" api_key: "wa9aerahhie0eekee9iaphoorovooyia"

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: query API with invalid API key - name: query API with invalid API key
memset_memstore_info: memset_memstore_info:
api_key: 'wa9aerahhie0eekee9iaphoorovooyia' api_key: 'wa9aerahhie0eekee9iaphoorovooyia'

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: query API with invalid API key - name: query API with invalid API key
memset_server_info: memset_server_info:
api_key: 'wa9aerahhie0eekee9iaphoorovooyia' api_key: 'wa9aerahhie0eekee9iaphoorovooyia'

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: create random string - name: create random string
set_fact: set_fact:
zone_name: "{{ 65535 | random | string }}.ansible.example.com" zone_name: "{{ 65535 | random | string }}.ansible.example.com"

View file

@ -1,4 +1,9 @@
--- ---
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: create domain with invalid API key - name: create domain with invalid API key
memset_zone_domain: memset_zone_domain:
api_key: "wa9aerahhie0eekee9iaphoorovooyia" api_key: "wa9aerahhie0eekee9iaphoorovooyia"

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: create record with incorrect API key - name: create record with incorrect API key
memset_zone_record: memset_zone_record:
api_key: "wa9aerahhie0eekee9iaphoorovooyia" api_key: "wa9aerahhie0eekee9iaphoorovooyia"

View file

@ -1,3 +1,8 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: ubuntu.yml - include: ubuntu.yml
when: when:
- ansible_distribution == 'Ubuntu' - ansible_distribution == 'Ubuntu'

View file

@ -1 +1,6 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_a_record_idempotence.yml - include: nios_a_record_idempotence.yml

View file

@ -1 +1,6 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_aaaa_record_idempotence.yml - include: nios_aaaa_record_idempotence.yml

View file

@ -1 +1,6 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_cname_record_idempotence.yml - include: nios_cname_record_idempotence.yml

View file

@ -1 +1,6 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_dns_view_idempotence.yml - include: nios_dns_view_idempotence.yml

View file

@ -1 +1,6 @@
####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- include: nios_host_record_idempotence.yml - include: nios_host_record_idempotence.yml

Some files were not shown because too many files have changed in this diff Show more