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

Test of using FQCN for some builtin plugins (#660)

This commit is contained in:
Andrew Klychkov 2020-07-16 12:24:04 +03:00 committed by GitHub
parent 831a4962c1
commit 2c3efea14b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 13 deletions

View file

@ -40,4 +40,4 @@
action: "{{ action_prefix }}file path={{ remote_tmp }}-汉语 state=absent"
### test wait_for_connection plugin
- wait_for_connection:
- ansible.builtin.wait_for_connection:

View file

@ -35,7 +35,7 @@
when: (ansible_facts.distribution_major_version != '8' and ansible_facts.distribution == 'CentOS') or ansible_facts.distribution != 'CentOS'
- name: postgresql_slot - pause between stop and start PostgreSQL
pause:
ansible.builtin.pause:
seconds: 5
- name: postgresql_slot - start PostgreSQL

View file

@ -3,11 +3,11 @@
#
# unencrypted values are not supported on newer versions
# do not run the encrypted: no tests if on 10+
- set_fact:
- ansible.builtin.set_fact:
encryption_values:
- 'yes'
- set_fact:
- ansible.builtin.set_fact:
encryption_values: '{{ encryption_values + ["no"]}}'
when: postgres_version_resp.stdout is version('10', '<=')
@ -22,7 +22,7 @@
# BYPASSRLS role attribute was introduced in PostgreSQL 9.5, so
# we want to test attribute management differently depending
# on the version.
- set_fact:
- ansible.builtin.set_fact:
bypassrls_supported: "{{ postgres_version_resp.stdout is version('9.5.0', '>=') }}"
# test 'no_password_change' and 'role_attr_flags' parameters
@ -67,7 +67,7 @@
shell: echo "select datname from pg_database where datname = '{{ db_name }}';" | psql -d postgres
register: result
- assert:
- ansible.builtin.assert:
that:
- "result.stdout_lines[-1] == '(1 row)'"
@ -89,7 +89,7 @@
shell: echo "select * from pg_user where usename='{{ db_user2 }}';" | psql -d postgres
register: result
- assert:
- ansible.builtin.assert:
that:
- "result.stdout_lines[-1] == '(1 row)'"
@ -111,7 +111,7 @@
shell: echo "select datacl from pg_database where datname='{{ db_name }}';" | psql {{ db_name }}
register: result_database
- assert:
- ansible.builtin.assert:
that:
- "result_database.stdout_lines[-1] == '(1 row)'"
- "db_user2 ~ '=Cc' in result_database.stdout"
@ -133,7 +133,7 @@
shell: echo "select * from pg_user where usename='{{ db_user2 }}';" | psql -d postgres
register: result
- assert:
- ansible.builtin.assert:
that:
- "result.stdout_lines[-1] == '(0 rows)'"
@ -151,6 +151,6 @@
shell: echo "select datname from pg_database where datname = '{{ db_name }}';" | psql -d postgres
register: result
- assert:
- ansible.builtin.assert:
that:
- "result.stdout_lines[-1] == '(0 rows)'"

View file

@ -87,7 +87,7 @@
shell: "{{ redis_bin[ansible_distribution] }} {{ slave_conf }} --slaveof 127.0.0.1 {{ master_port }}"
- name: Wait for redis master to be started
wait_for:
ansible.builtin.wait_for:
host: 127.0.0.1
port: "{{ master_port }}"
state: started
@ -96,7 +96,7 @@
timeout: 30
- name: Wait for redis slave to be started
wait_for:
ansible.builtin.wait_for:
host: 127.0.0.1
port: "{{ slave_port }}"
state: started

View file

@ -2,7 +2,7 @@
command: 'supervisord -c {{ remote_dir }}/supervisord.conf'
- name: wait_for supervisord
wait_for:
ansible.builtin.wait_for:
port: 9001
host: 127.0.0.1
timeout: 15