diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 20:03:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 20:03:01 +0000 |
commit | a453ac31f3428614cceb99027f8efbdb9258a40b (patch) | |
tree | f61f87408f32a8511cbd91799f9cececb53e0374 /collections-debian-merged/ansible_collections/community/postgresql/tests/sanity | |
parent | Initial commit. (diff) | |
download | ansible-a453ac31f3428614cceb99027f8efbdb9258a40b.tar.xz ansible-a453ac31f3428614cceb99027f8efbdb9258a40b.zip |
Adding upstream version 2.10.7+merged+base+2.10.8+dfsg.upstream/2.10.7+merged+base+2.10.8+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collections-debian-merged/ansible_collections/community/postgresql/tests/sanity')
5 files changed, 73 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/extra/no-unwanted-files.json b/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/extra/no-unwanted-files.json new file mode 100644 index 00000000..c789a7fd --- /dev/null +++ b/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/extra/no-unwanted-files.json @@ -0,0 +1,7 @@ +{ + "include_symlinks": true, + "prefixes": [ + "plugins/" + ], + "output": "path-message" +} diff --git a/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/extra/no-unwanted-files.py b/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/extra/no-unwanted-files.py new file mode 100755 index 00000000..49806f2e --- /dev/null +++ b/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/extra/no-unwanted-files.py @@ -0,0 +1,43 @@ +#!/usr/bin/env python +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +"""Prevent unwanted files from being added to the source tree.""" +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + +import os +import sys + + +def main(): + """Main entry point.""" + paths = sys.argv[1:] or sys.stdin.read().splitlines() + + allowed_extensions = ( + '.cs', + '.ps1', + '.psm1', + '.py', + ) + + skip_paths = set([ + ]) + + skip_directories = ( + ) + + for path in paths: + if path in skip_paths: + continue + + if any(path.startswith(skip_directory) for skip_directory in skip_directories): + continue + + ext = os.path.splitext(path)[1] + + if ext not in allowed_extensions: + print('%s: extension must be one of: %s' % (path, ', '.join(allowed_extensions))) + + +if __name__ == '__main__': + main() diff --git a/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/ignore-2.10.txt b/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/ignore-2.10.txt new file mode 100644 index 00000000..b6eb3028 --- /dev/null +++ b/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/ignore-2.10.txt @@ -0,0 +1,7 @@ +tests/utils/shippable/check_matrix.py replace-urlopen +tests/utils/shippable/timing.py shebang +plugins/modules/postgresql_db.py use-argspec-type-path +plugins/modules/postgresql_db.py validate-modules:use-run-command-not-popen +plugins/modules/postgresql_privs.py validate-modules:parameter-documented-multiple-times +plugins/modules/postgresql_tablespace.py validate-modules:mutually_exclusive-unknown +plugins/modules/postgresql_user.py validate-modules:doc-choices-do-not-match-spec diff --git a/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/ignore-2.11.txt b/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/ignore-2.11.txt new file mode 100644 index 00000000..b6eb3028 --- /dev/null +++ b/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/ignore-2.11.txt @@ -0,0 +1,7 @@ +tests/utils/shippable/check_matrix.py replace-urlopen +tests/utils/shippable/timing.py shebang +plugins/modules/postgresql_db.py use-argspec-type-path +plugins/modules/postgresql_db.py validate-modules:use-run-command-not-popen +plugins/modules/postgresql_privs.py validate-modules:parameter-documented-multiple-times +plugins/modules/postgresql_tablespace.py validate-modules:mutually_exclusive-unknown +plugins/modules/postgresql_user.py validate-modules:doc-choices-do-not-match-spec diff --git a/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/ignore-2.9.txt b/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/ignore-2.9.txt new file mode 100644 index 00000000..cd5ab7eb --- /dev/null +++ b/collections-debian-merged/ansible_collections/community/postgresql/tests/sanity/ignore-2.9.txt @@ -0,0 +1,9 @@ +tests/utils/shippable/check_matrix.py replace-urlopen +tests/utils/shippable/timing.py shebang +plugins/modules/postgresql_db.py use-argspec-type-path +plugins/modules/postgresql_db.py validate-modules:parameter-type-not-in-doc +plugins/modules/postgresql_db.py validate-modules:use-run-command-not-popen +plugins/modules/postgresql_ext.py validate-modules:parameter-type-not-in-doc +plugins/modules/postgresql_schema.py validate-modules:parameter-type-not-in-doc +plugins/modules/postgresql_user.py validate-modules:doc-choices-do-not-match-spec +plugins/modules/postgresql_user.py validate-modules:parameter-type-not-in-doc |