From a453ac31f3428614cceb99027f8efbdb9258a40b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 14 May 2024 22:03:01 +0200 Subject: Adding upstream version 2.10.7+merged+base+2.10.8+dfsg. Signed-off-by: Daniel Baumann --- .../postgresql/.azure-pipelines/README.md | 3 + .../.azure-pipelines/azure-pipelines.yml | 192 ++ .../.azure-pipelines/scripts/aggregate-coverage.sh | 20 + .../.azure-pipelines/scripts/combine-coverage.py | 60 + .../.azure-pipelines/scripts/process-results.sh | 24 + .../.azure-pipelines/scripts/publish-codecov.sh | 27 + .../.azure-pipelines/scripts/report-coverage.sh | 15 + .../.azure-pipelines/scripts/run-tests.sh | 34 + .../.azure-pipelines/scripts/time-command.py | 25 + .../.azure-pipelines/templates/coverage.yml | 39 + .../.azure-pipelines/templates/matrix.yml | 55 + .../postgresql/.azure-pipelines/templates/test.yml | 45 + .../community/postgresql/CHANGELOG.rst | 81 + .../community/postgresql/COPYING | 674 ++++++ .../community/postgresql/FILES.json | 2385 ++++++++++++++++++++ .../community/postgresql/MANIFEST.json | 32 + .../community/postgresql/README.md | 105 + .../community/postgresql/changelogs/changelog.yaml | 89 + .../community/postgresql/changelogs/config.yaml | 29 + .../postgresql/changelogs/fragments/.keep | 0 .../community/postgresql/meta/runtime.yml | 2 + .../postgresql/plugins/doc_fragments/postgres.py | 62 + .../postgresql/plugins/module_utils/database.py | 189 ++ .../postgresql/plugins/module_utils/postgres.py | 314 +++ .../postgresql/plugins/module_utils/saslprep.py | 178 ++ .../postgresql/plugins/modules/postgresql_copy.py | 419 ++++ .../postgresql/plugins/modules/postgresql_db.py | 673 ++++++ .../postgresql/plugins/modules/postgresql_ext.py | 444 ++++ .../postgresql/plugins/modules/postgresql_idx.py | 589 +++++ .../postgresql/plugins/modules/postgresql_info.py | 1032 +++++++++ .../postgresql/plugins/modules/postgresql_lang.py | 365 +++ .../plugins/modules/postgresql_membership.py | 229 ++ .../postgresql/plugins/modules/postgresql_owner.py | 454 ++++ .../plugins/modules/postgresql_pg_hba.py | 746 ++++++ .../postgresql/plugins/modules/postgresql_ping.py | 171 ++ .../postgresql/plugins/modules/postgresql_privs.py | 1172 ++++++++++ .../plugins/modules/postgresql_publication.py | 683 ++++++ .../postgresql/plugins/modules/postgresql_query.py | 524 +++++ .../plugins/modules/postgresql_schema.py | 294 +++ .../plugins/modules/postgresql_sequence.py | 628 ++++++ .../postgresql/plugins/modules/postgresql_set.py | 480 ++++ .../postgresql/plugins/modules/postgresql_slot.py | 305 +++ .../plugins/modules/postgresql_subscription.py | 718 ++++++ .../postgresql/plugins/modules/postgresql_table.py | 611 +++++ .../plugins/modules/postgresql_tablespace.py | 541 +++++ .../postgresql/plugins/modules/postgresql_user.py | 998 ++++++++ .../modules/postgresql_user_obj_stat_info.py | 336 +++ .../community/postgresql/shippable.yml | 59 + .../integration/targets/postgresql_copy/aliases | 2 + .../targets/postgresql_copy/meta/main.yml | 2 + .../targets/postgresql_copy/tasks/main.yml | 8 + .../tasks/postgresql_copy_initial.yml | 278 +++ .../integration/targets/postgresql_db/aliases | 3 + .../targets/postgresql_db/defaults/main.yml | 11 + .../targets/postgresql_db/meta/main.yml | 2 + .../targets/postgresql_db/tasks/main.yml | 36 + .../postgresql_db/tasks/postgresql_db_general.yml | 152 ++ .../postgresql_db/tasks/postgresql_db_initial.yml | 366 +++ .../tasks/postgresql_db_session_role.yml | 80 + .../postgresql_db/tasks/state_dump_restore.yml | 235 ++ .../integration/targets/postgresql_ext/aliases | 3 + .../targets/postgresql_ext/defaults/main.yml | 2 + .../targets/postgresql_ext/meta/main.yml | 3 + .../targets/postgresql_ext/tasks/main.yml | 26 + .../tasks/postgresql_ext_initial.yml | 208 ++ .../tasks/postgresql_ext_session_role.yml | 114 + .../tasks/postgresql_ext_version_opt.yml | 364 +++ .../integration/targets/postgresql_idx/aliases | 2 + .../targets/postgresql_idx/meta/main.yml | 2 + .../targets/postgresql_idx/tasks/main.yml | 7 + .../tasks/postgresql_idx_initial.yml | 377 ++++ .../integration/targets/postgresql_info/aliases | 4 + .../targets/postgresql_info/defaults/main.yml | 15 + .../targets/postgresql_info/meta/main.yml | 2 + .../targets/postgresql_info/tasks/main.yml | 12 + .../tasks/postgresql_info_initial.yml | 177 ++ .../postgresql_info/tasks/setup_publication.yml | 61 + .../integration/targets/postgresql_lang/aliases | 2 + .../targets/postgresql_lang/meta/main.yml | 2 + .../targets/postgresql_lang/tasks/main.yml | 25 + .../tasks/postgresql_lang_add_owner_param.yml | 199 ++ .../tasks/postgresql_lang_initial.yml | 231 ++ .../targets/postgresql_lang/vars/CentOS-7.yml | 3 + .../targets/postgresql_lang/vars/CentOS-8.yml | 3 + .../targets/postgresql_lang/vars/default.yml | 0 .../targets/postgresql_membership/aliases | 2 + .../postgresql_membership/defaults/main.yml | 6 + .../targets/postgresql_membership/meta/main.yml | 2 + .../targets/postgresql_membership/tasks/main.yml | 7 + .../tasks/postgresql_membership_initial.yml | 390 ++++ .../integration/targets/postgresql_owner/aliases | 2 + .../targets/postgresql_owner/defaults/main.yml | 3 + .../targets/postgresql_owner/meta/main.yml | 2 + .../targets/postgresql_owner/tasks/main.yml | 9 + .../tasks/postgresql_owner_initial.yml | 1073 +++++++++ .../integration/targets/postgresql_pg_hba/aliases | 2 + .../targets/postgresql_pg_hba/defaults/main.yml | 23 + .../targets/postgresql_pg_hba/meta/main.yml | 2 + .../targets/postgresql_pg_hba/tasks/main.yml | 7 + .../tasks/postgresql_pg_hba_initial.yml | 183 ++ .../integration/targets/postgresql_ping/aliases | 2 + .../targets/postgresql_ping/defaults/main.yml | 2 + .../targets/postgresql_ping/meta/main.yml | 2 + .../targets/postgresql_ping/tasks/main.yml | 9 + .../tasks/postgresql_ping_initial.yml | 75 + .../integration/targets/postgresql_privs/aliases | 2 + .../targets/postgresql_privs/defaults/main.yml | 12 + .../targets/postgresql_privs/meta/main.yml | 2 + .../targets/postgresql_privs/tasks/main.yml | 19 + .../tasks/pg_authid_not_readable.yml | 50 + .../tasks/postgresql_privs_general.yml | 1533 +++++++++++++ .../tasks/postgresql_privs_initial.yml | 407 ++++ .../tasks/postgresql_privs_session_role.yml | 102 + .../postgresql_privs/tasks/test_target_role.yml | 120 + .../targets/postgresql_publication/aliases | 3 + .../targets/postgresql_publication/meta/main.yml | 2 + .../targets/postgresql_publication/tasks/main.yml | 8 + .../tasks/postgresql_publication_initial.yml | 436 ++++ .../integration/targets/postgresql_query/aliases | 2 + .../targets/postgresql_query/files/test0.sql | 4 + .../targets/postgresql_query/files/test1.sql | 10 + .../targets/postgresql_query/meta/main.yml | 2 + .../targets/postgresql_query/tasks/main.yml | 7 + .../tasks/postgresql_query_initial.yml | 607 +++++ .../integration/targets/postgresql_schema/aliases | 2 + .../targets/postgresql_schema/defaults/main.yml | 7 + .../targets/postgresql_schema/meta/main.yml | 2 + .../targets/postgresql_schema/tasks/main.yml | 9 + .../tasks/postgresql_schema_initial.yml | 331 +++ .../tasks/postgresql_schema_session_role.yml | 78 + .../targets/postgresql_sequence/aliases | 2 + .../targets/postgresql_sequence/defaults/main.yml | 5 + .../targets/postgresql_sequence/meta/main.yml | 2 + .../targets/postgresql_sequence/tasks/main.yml | 8 + .../tasks/postgresql_sequence_initial.yml | 730 ++++++ .../integration/targets/postgresql_set/aliases | 2 + .../targets/postgresql_set/meta/main.yml | 2 + .../targets/postgresql_set/tasks/main.yml | 11 + .../postgresql_set/tasks/options_coverage.yml | 55 + .../tasks/postgresql_set_initial.yml | 442 ++++ .../integration/targets/postgresql_slot/aliases | 2 + .../targets/postgresql_slot/meta/main.yml | 2 + .../targets/postgresql_slot/tasks/main.yml | 9 + .../tasks/postgresql_slot_initial.yml | 735 ++++++ .../targets/postgresql_subscription/aliases | 4 + .../postgresql_subscription/defaults/main.yml | 15 + .../targets/postgresql_subscription/meta/main.yml | 2 + .../targets/postgresql_subscription/tasks/main.yml | 12 + .../tasks/postgresql_subscription_initial.yml | 672 ++++++ .../tasks/setup_publication.yml | 84 + .../integration/targets/postgresql_table/aliases | 2 + .../targets/postgresql_table/meta/main.yml | 2 + .../targets/postgresql_table/tasks/main.yml | 7 + .../tasks/postgresql_table_initial.yml | 899 ++++++++ .../targets/postgresql_tablespace/aliases | 2 + .../postgresql_tablespace/defaults/main.yml | 3 + .../targets/postgresql_tablespace/meta/main.yml | 2 + .../targets/postgresql_tablespace/tasks/main.yml | 7 + .../tasks/postgresql_tablespace_initial.yml | 245 ++ .../integration/targets/postgresql_user/aliases | 2 + .../targets/postgresql_user/defaults/main.yml | 4 + .../targets/postgresql_user/meta/main.yml | 2 + .../targets/postgresql_user/tasks/main.yml | 12 + .../tasks/postgresql_user_general.yml | 775 +++++++ .../tasks/postgresql_user_initial.yml | 156 ++ .../tasks/test_no_password_change.yml | 167 ++ .../postgresql_user/tasks/test_password.yml | 429 ++++ .../targets/postgresql_user_obj_stat_info/aliases | 4 + .../defaults/main.yml | 12 + .../postgresql_user_obj_stat_info/meta/main.yml | 2 + .../postgresql_user_obj_stat_info/tasks/main.yml | 8 + .../tasks/postgresql_user_obj_stat_info.yml | 222 ++ .../targets/setup_pkg_mgr/tasks/main.yml | 17 + .../targets/setup_postgresql_db/defaults/main.yml | 17 + .../setup_postgresql_db/files/dummy--1.0.sql | 2 + .../setup_postgresql_db/files/dummy--2.0.sql | 2 + .../setup_postgresql_db/files/dummy--3.0.sql | 2 + .../setup_postgresql_db/files/dummy.control | 3 + .../targets/setup_postgresql_db/files/pg_hba.conf | 10 + .../targets/setup_postgresql_db/meta/main.yml | 2 + .../targets/setup_postgresql_db/tasks/main.yml | 247 ++ .../targets/setup_postgresql_db/tasks/ssl.yml | 66 + .../targets/setup_postgresql_db/vars/Debian-8.yml | 8 + .../setup_postgresql_db/vars/FreeBSD-11-py3.yml | 12 + .../setup_postgresql_db/vars/FreeBSD-11.yml | 12 + .../setup_postgresql_db/vars/FreeBSD-12.0-py3.yml | 12 + .../setup_postgresql_db/vars/FreeBSD-12.0.yml | 12 + .../setup_postgresql_db/vars/FreeBSD-12.1-py3.yml | 12 + .../setup_postgresql_db/vars/FreeBSD-12.1.yml | 12 + .../setup_postgresql_db/vars/RedHat-py3.yml | 8 + .../targets/setup_postgresql_db/vars/RedHat.yml | 7 + .../targets/setup_postgresql_db/vars/Ubuntu-12.yml | 8 + .../targets/setup_postgresql_db/vars/Ubuntu-14.yml | 8 + .../setup_postgresql_db/vars/Ubuntu-16-py3.yml | 8 + .../targets/setup_postgresql_db/vars/Ubuntu-16.yml | 8 + .../setup_postgresql_db/vars/Ubuntu-18-py3.yml | 8 + .../setup_postgresql_db/vars/default-py3.yml | 6 + .../targets/setup_postgresql_db/vars/default.yml | 6 + .../setup_postgresql_replication/defaults/main.yml | 30 + .../setup_postgresql_replication/handlers/main.yml | 23 + .../setup_postgresql_replication/tasks/main.yml | 13 + .../tasks/setup_postgresql_cluster.yml | 84 + .../templates/master_postgresql.conf.j2 | 28 + .../templates/pg_hba.conf.j2 | 7 + .../templates/replica_postgresql.conf.j2 | 28 + .../community/postgresql/tests/requirements.yml | 3 + .../tests/sanity/extra/no-unwanted-files.json | 7 + .../tests/sanity/extra/no-unwanted-files.py | 43 + .../postgresql/tests/sanity/ignore-2.10.txt | 7 + .../postgresql/tests/sanity/ignore-2.11.txt | 7 + .../postgresql/tests/sanity/ignore-2.9.txt | 9 + .../tests/unit/plugins/module_utils/__init__.py | 0 .../unit/plugins/module_utils/test_postgres.py | 325 +++ .../unit/plugins/module_utils/test_saslprep.py | 55 + .../postgresql/tests/utils/constraints.txt | 52 + .../postgresql/tests/utils/shippable/aix.sh | 22 + .../tests/utils/shippable/check_matrix.py | 120 + .../postgresql/tests/utils/shippable/freebsd.sh | 22 + .../postgresql/tests/utils/shippable/linux.sh | 18 + .../postgresql/tests/utils/shippable/remote.sh | 22 + .../postgresql/tests/utils/shippable/rhel.sh | 22 + .../postgresql/tests/utils/shippable/sanity.sh | 27 + .../postgresql/tests/utils/shippable/shippable.sh | 207 ++ .../postgresql/tests/utils/shippable/timing.py | 16 + .../postgresql/tests/utils/shippable/timing.sh | 5 + .../postgresql/tests/utils/shippable/units.sh | 26 + 226 files changed, 33232 insertions(+) create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/README.md create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/azure-pipelines.yml create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/aggregate-coverage.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/combine-coverage.py create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/process-results.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/publish-codecov.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/report-coverage.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/run-tests.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/time-command.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/templates/coverage.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/templates/matrix.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/templates/test.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/CHANGELOG.rst create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/COPYING create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/FILES.json create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/MANIFEST.json create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/README.md create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/changelogs/changelog.yaml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/changelogs/config.yaml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/changelogs/fragments/.keep create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/meta/runtime.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/doc_fragments/postgres.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/module_utils/database.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/module_utils/postgres.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/module_utils/saslprep.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_copy.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_db.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_ext.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_idx.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_info.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_lang.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_membership.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_owner.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_pg_hba.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_ping.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_privs.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_publication.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_query.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_schema.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_sequence.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_set.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_slot.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_subscription.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_table.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_tablespace.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_user.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/plugins/modules/postgresql_user_obj_stat_info.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/shippable.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_copy/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_copy/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_copy/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_copy/tasks/postgresql_copy_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_db/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_db/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_db/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_db/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_db/tasks/postgresql_db_general.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_db/tasks/postgresql_db_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_db/tasks/postgresql_db_session_role.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_ext/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_ext/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_ext/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_ext/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_ext/tasks/postgresql_ext_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_ext/tasks/postgresql_ext_session_role.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_ext/tasks/postgresql_ext_version_opt.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_idx/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_idx/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_idx/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_idx/tasks/postgresql_idx_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_info/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_info/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_info/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_info/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_info/tasks/postgresql_info_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_info/tasks/setup_publication.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_lang/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_lang/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_lang/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_lang/tasks/postgresql_lang_add_owner_param.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_lang/tasks/postgresql_lang_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_lang/vars/CentOS-7.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_lang/vars/CentOS-8.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_lang/vars/default.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_membership/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_membership/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_membership/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_membership/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_membership/tasks/postgresql_membership_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_owner/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_owner/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_owner/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_owner/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_owner/tasks/postgresql_owner_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_pg_hba/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_pg_hba/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_pg_hba/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_pg_hba/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_pg_hba/tasks/postgresql_pg_hba_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_ping/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_ping/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_ping/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_ping/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_ping/tasks/postgresql_ping_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_privs/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_privs/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_privs/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_privs/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_privs/tasks/pg_authid_not_readable.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_privs/tasks/postgresql_privs_general.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_privs/tasks/postgresql_privs_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_privs/tasks/postgresql_privs_session_role.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_privs/tasks/test_target_role.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_publication/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_publication/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_publication/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_publication/tasks/postgresql_publication_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_query/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_query/files/test0.sql create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_query/files/test1.sql create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_query/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_query/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_query/tasks/postgresql_query_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_schema/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_schema/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_schema/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_schema/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_schema/tasks/postgresql_schema_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_schema/tasks/postgresql_schema_session_role.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_sequence/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_sequence/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_sequence/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_sequence/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_sequence/tasks/postgresql_sequence_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_set/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_set/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_set/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_set/tasks/options_coverage.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_set/tasks/postgresql_set_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_slot/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_slot/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_slot/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_slot/tasks/postgresql_slot_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_subscription/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_subscription/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_subscription/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_subscription/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_subscription/tasks/postgresql_subscription_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_subscription/tasks/setup_publication.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_table/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_table/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_table/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_tablespace/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_tablespace/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_tablespace/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_tablespace/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_tablespace/tasks/postgresql_tablespace_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user/tasks/postgresql_user_general.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user/tasks/postgresql_user_initial.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user/tasks/test_no_password_change.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user/tasks/test_password.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user_obj_stat_info/aliases create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user_obj_stat_info/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user_obj_stat_info/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user_obj_stat_info/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/postgresql_user_obj_stat_info/tasks/postgresql_user_obj_stat_info.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_pkg_mgr/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/files/dummy--1.0.sql create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/files/dummy--2.0.sql create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/files/dummy--3.0.sql create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/files/dummy.control create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/files/pg_hba.conf create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/meta/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/tasks/ssl.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/Debian-8.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/FreeBSD-11-py3.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/FreeBSD-11.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/FreeBSD-12.0-py3.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/FreeBSD-12.0.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/FreeBSD-12.1-py3.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/FreeBSD-12.1.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/RedHat-py3.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/RedHat.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/Ubuntu-12.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/Ubuntu-14.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/Ubuntu-16-py3.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/Ubuntu-16.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/Ubuntu-18-py3.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/default-py3.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_db/vars/default.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_replication/defaults/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_replication/handlers/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_replication/tasks/main.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_replication/tasks/setup_postgresql_cluster.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_replication/templates/master_postgresql.conf.j2 create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_replication/templates/pg_hba.conf.j2 create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/integration/targets/setup_postgresql_replication/templates/replica_postgresql.conf.j2 create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/requirements.yml create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/extra/no-unwanted-files.json create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/extra/no-unwanted-files.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/ignore-2.10.txt create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/ignore-2.11.txt create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/ignore-2.9.txt create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/unit/plugins/module_utils/__init__.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/unit/plugins/module_utils/test_postgres.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/unit/plugins/module_utils/test_saslprep.py create mode 100644 collections-debian-merged/ansible_collections/community/postgresql/tests/utils/constraints.txt create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/tests/utils/shippable/aix.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/tests/utils/shippable/check_matrix.py create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/tests/utils/shippable/freebsd.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/tests/utils/shippable/linux.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/tests/utils/shippable/remote.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/tests/utils/shippable/rhel.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/tests/utils/shippable/sanity.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/tests/utils/shippable/shippable.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/tests/utils/shippable/timing.py create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/tests/utils/shippable/timing.sh create mode 100755 collections-debian-merged/ansible_collections/community/postgresql/tests/utils/shippable/units.sh (limited to 'collections-debian-merged/ansible_collections/community/postgresql') diff --git a/collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/README.md b/collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/README.md new file mode 100644 index 00000000..385e70ba --- /dev/null +++ b/collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/README.md @@ -0,0 +1,3 @@ +## Azure Pipelines Configuration + +Please see the [Documentation](https://github.com/ansible/community/wiki/Testing:-Azure-Pipelines) for more information. diff --git a/collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/azure-pipelines.yml b/collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/azure-pipelines.yml new file mode 100644 index 00000000..5981da78 --- /dev/null +++ b/collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/azure-pipelines.yml @@ -0,0 +1,192 @@ +trigger: + batch: true + branches: + include: + - main + - stable-* + +pr: + autoCancel: true + branches: + include: + - main + - stable-* + +schedules: + - cron: 0 9 * * * + displayName: Nightly + always: true + branches: + include: + - main + - stable-* + +variables: + - name: checkoutPath + value: ansible_collections/community/postgresql + - name: coverageBranches + value: main + - name: pipelinesCoverage + value: coverage + - name: entryPoint + value: tests/utils/shippable/shippable.sh + - name: fetchDepth + value: 0 + +resources: + containers: + - container: default + image: quay.io/ansible/azure-pipelines-test-container:1.7.1 + +pool: Standard + +stages: +### Sanity & units + - stage: Ansible_devel + displayName: Sanity & Units devel + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + targets: + - name: Sanity + test: 'devel/sanity/1' + - name: Sanity Extra # Only on devel + test: 'devel/sanity/extra' + - name: Units + test: 'devel/units/1' + - stage: Ansible_2_10 + displayName: Sanity & Units 2.10 + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + targets: + - name: Sanity + test: '2.10/sanity/1' + - name: Units + test: '2.10/units/1' + - stage: Ansible_2_9 + displayName: Sanity & Units 2.9 + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + targets: + - name: Sanity + test: '2.9/sanity/1' + - name: Units + test: '2.9/units/1' +### Docker + - stage: Docker_devel + displayName: Docker devel + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + testFormat: devel/linux/{0}/1 + targets: + - name: CentOS 6 + test: centos6 + - name: CentOS 7 + test: centos7 + - name: Fedora 32 + test: fedora32 + - name: Fedora 33 + test: fedora33 + - name: Ubuntu 16.04 + test: ubuntu1604 + - name: Ubuntu 18.04 + test: ubuntu1804 + - stage: Docker_2_10 + displayName: Docker 2.10 + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + testFormat: 2.10/linux/{0}/1 + targets: + - name: CentOS 6 + test: centos6 + - name: CentOS 7 + test: centos7 + - name: Fedora 31 + test: fedora31 + - name: Fedora 32 + test: fedora32 + - name: Ubuntu 16.04 + test: ubuntu1604 + - name: Ubuntu 18.04 + test: ubuntu1804 + - stage: Docker_2_9 + displayName: Docker 2.9 + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + testFormat: 2.9/linux/{0}/1 + targets: + - name: CentOS 6 + test: centos6 + - name: CentOS 7 + test: centos7 + - name: Fedora 31 + test: fedora31 + - name: Ubuntu 16.04 + test: ubuntu1604 + - name: Ubuntu 18.04 + test: ubuntu1804 + +### Remote + - stage: Remote_devel + displayName: Remote devel + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + testFormat: devel/{0}/1 + targets: + - name: RHEL 7.8 + test: rhel/7.8 + - name: RHEL 8.2 + test: rhel/8.2 + - name: FreeBSD 11.1 + test: freebsd/11.1 + - name: FreeBSD 12.1 + test: freebsd/12.1 + - stage: Remote_2_10 + displayName: Remote 2.10 + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + nameFormat: RHEL 8.2 {0} + testFormat: 2.10/{0}/1 + targets: + - name: RHEL 8.2 + test: rhel/8.2 + - stage: Remote_2_9 + displayName: Remote 2.9 + dependsOn: [] + jobs: + - template: templates/matrix.yml + parameters: + nameFormat: RHEL 8.2 {0} + testFormat: 2.9/{0}/1 + targets: + - name: RHEL 8.2 + test: rhel/8.2 + - stage: Summary + condition: succeededOrFailed() + dependsOn: + - Ansible_devel + - Ansible_2_10 + - Ansible_2_9 + - Docker_devel + - Docker_2_10 + - Docker_2_9 + - Remote_devel + - Remote_2_10 + - Remote_2_9 + jobs: + - template: templates/coverage.yml diff --git a/collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/aggregate-coverage.sh b/collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/aggregate-coverage.sh new file mode 100755 index 00000000..f3113dd0 --- /dev/null +++ b/collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/aggregate-coverage.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# Aggregate code coverage results for later processing. + +set -o pipefail -eu + +agent_temp_directory="$1" + +PATH="${PWD}/bin:${PATH}" + +mkdir "${agent_temp_directory}/coverage/" + +options=(--venv --venv-system-site-packages --color -v) + +ansible-test coverage combine --export "${agent_temp_directory}/coverage/" "${options[@]}" + +if ansible-test coverage analyze targets generate --help >/dev/null 2>&1; then + # Only analyze coverage if the installed version of ansible-test supports it. + # Doing so allows this script to work unmodified for multiple Ansible versions. + ansible-test coverage analyze targets generate "${agent_temp_directory}/coverage/coverage-analyze-targets.json" "${options[@]}" +fi diff --git a/collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/combine-coverage.py b/collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/combine-coverage.py new file mode 100755 index 00000000..506ade64 --- /dev/null +++ b/collections-debian-merged/ansible_collections/community/postgresql/.azure-pipelines/scripts/combine-coverage.py @@ -0,0 +1,60 @@ +#!/usr/bin/env python +""" +Combine coverage data from multiple jobs, keeping the data only from the most recent attempt from each job. +Coverage artifacts must be named using the format: "Coverage $(System.JobAttempt) {StableUniqueNameForEachJob}" +The recommended coverage artifact name format is: Coverage $(System.JobAttempt) $(System.StageDisplayName) $(System.JobDisplayName) +Keep in mind that Azure Pipelines does not enforce unique job display names (only names). +It is up to pipeline authors to avoid name collisions when deviating from the recommended format. +""" + +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + +import os +import re +import shutil +import sys + + +def main(): + """Main program entry point.""" + source_directory = sys.argv[1] + + if '/ansible_collections/' in os.getcwd(): + output_path = "tests/output" + else: + output_path = "test/results" + + destination_directory = os.path.join(output_path, 'coverage') + + if not os.path.exists(destination_directory): + os.makedirs(destination_directory) + + jobs = {} + count = 0 + + for name in os.listdir(source_directory): + match = re.search('^Coverage (?P[0-9]+) (?P