From b644ba78544997a3dba15e73daebf2526e0961c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Iranzo=20G=C3=B3mez?= Date: Thu, 22 Aug 2024 15:59:33 +0200 Subject: [PATCH] Use new python import sorter --- .isort.cfg | 7 ------- .pre-commit-config.yaml | 13 +++++-------- citellus.py | 1 - doc/templates/template.py | 6 ------ maguiclient/__init__.py | 1 - maguiclient/hooks/data/0/fail-faraday.py | 2 -- maguiclient/magui.py | 3 --- maguiclient/plugins/core/faraday-magui.py | 1 - maguiclient/plugins/core/metadata-outputs.py | 3 --- maguiclient/plugins/core/risu-outputs.py | 3 --- maguiclient/plugins/openstack/mysql/seqno.py | 2 -- maguiclient/plugins/system/mtu.py | 2 -- maguiclient/plugins/system/multipathluns.py | 2 -- maguiclient/plugins/system/release.py | 2 -- refresh-contributors.py | 4 ---- risu.py | 1 - risu/magui.py | 1 - risu/risu.py | 1 - risuclient/extensions/ansible.py | 1 - risuclient/extensions/core.py | 1 - risuclient/extensions/faraday-exec.py | 1 - risuclient/extensions/faraday.py | 1 - risuclient/extensions/golang.py | 1 - risuclient/extensions/metadata.py | 1 - risuclient/extensions/nagios.py | 1 - risuclient/extensions/node-problem-detector.py | 1 - risuclient/extensions/rhv-log-collector-analyzer.py | 2 -- risuclient/extensions/tripleo-common-healthcheck.py | 1 - risuclient/extensions/winston.py | 1 - .../hooks/data/0/faraday-exec/merge-with-faraday.py | 1 - .../insights-json.py | 1 - ...ove-global-mtu-to-individual-faraday-positive.py | 1 - ...obal-multipath-to-individual-faraday-positive.py | 1 - risuclient/hooks/data/9/faraday-to-individual.py | 1 - .../9/rhv-log-collector-analyzer-to-individual.py | 1 - .../hooks/data/9/system/unfail-chronyd-with-ntpd.py | 1 - .../data/9/system/unfail-firewall-with-openstack.py | 1 - .../hooks/data/9/system/unfail-ntpd-with-chronyd.py | 1 - risuclient/hooks/profiles/profiles.py | 1 - risuclient/magui.py | 1 - .../plugins/core/openshift/etcd/certificates.py | 6 ------ risuclient/plugins/core/system/pagetypeinfos.py | 7 ------- risuclient/plugins/core/system/reboot.py | 10 ++-------- .../plugins/core/system/system_lib_overload.py | 10 ++-------- risuclient/plugins/metadata/events/reboots.py | 8 ++------ risuclient/shell.py | 3 --- risuclient/tools/dmidecode.py | 1 - setup.py | 1 - tests/cf-uts/test_cf_is_active.py | 6 ++---- tests/cf-uts/test_cf_is_lineinfile.py | 4 ---- tests/cf-uts/test_cf_is_process.py | 6 ++---- tests/cf-uts/test_cf_is_required_file.py | 4 ---- tests/cf-uts/test_cf_is_required_rpm.py | 6 ++---- tests/cf-uts/test_cf_is_rpm.py | 4 ---- tests/jsons/test_jsons.py | 2 -- tests/plugins-unit-tests/test_all_plugins.py | 4 ---- ...est_all_plugins_for_cf_usage_without_sourcing.py | 4 ---- .../plugins-unit-tests/test_brackets-parenthesis.py | 3 --- .../test_bugzilla_httpd_bug_1406417.py | 4 ---- tests/plugins-unit-tests/test_executable_bit.py | 3 --- .../test_freeradius_incompatible_regex.py | 5 ----- .../test_have_description_longname.py | 3 --- .../plugins-unit-tests/test_keystone_bug_1473713.py | 4 ---- tests/plugins-unit-tests/test_keystone_cleanup.py | 4 ---- tests/plugins-unit-tests/test_no_echo_rc.py | 4 ---- tests/plugins-unit-tests/test_non_ascii_chars.py | 5 ----- .../test_pacemaker_stonith_enabled.py | 5 ----- .../plugins-unit-tests/test_system_lib_overload.py | 5 ----- tests/plugins-unit-tests/test_systemd_detect_su.py | 5 ----- tests/test_dmidecode.py | 2 -- tests/test_magui.py | 2 -- tests/test_risu.py | 2 -- 72 files changed, 17 insertions(+), 203 deletions(-) delete mode 100644 .isort.cfg diff --git a/.isort.cfg b/.isort.cfg deleted file mode 100644 index e5b692825..000000000 --- a/.isort.cfg +++ /dev/null @@ -1,7 +0,0 @@ -[settings] -multi_line_output=3 -include_trailing_comma=True -force_grid_wrap=0 -use_parentheses=True -line_length=88 -known_third_party = pytest,setuptools diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 09a2136d5..4226965d5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -89,11 +89,8 @@ repos: # - id: yaspeller # types: # - markdown - - hooks: - - id: seed-isort-config - repo: https://github.com/asottile/seed-isort-config - rev: v2.2.0 - - hooks: - - id: isort - repo: https://github.com/pre-commit/mirrors-isort - rev: v5.10.1 + + - repo: https://github.com/asottile/reorder-python-imports + rev: v3.13.0 + hooks: + - id: reorder-python-imports diff --git a/citellus.py b/citellus.py index 10a32ab80..af232cbe0 100755 --- a/citellus.py +++ b/citellus.py @@ -1,6 +1,5 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - # Copyright (C) 2017 Robin Černín # Copyright (C) 2017, 2018, 2020, 2021 Pablo Iranzo Gómez import sys diff --git a/doc/templates/template.py b/doc/templates/template.py index dd82ebdcf..1c6604089 100755 --- a/doc/templates/template.py +++ b/doc/templates/template.py @@ -2,18 +2,15 @@ # -*- coding: utf-8 -*- # # Copyright (C) 2017, 2018 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . # @@ -22,12 +19,9 @@ # bugzilla: bz url # priority: 0<>1000 for likelihood to break your environment if this test reports fail # kb: url-to-kbase - # Note a more pythonic way of running 'main' could be implemented by: # Running tests as new functions like: # def check_nova_debug(root=RISU_ROOT) and calling it inside the live or not live checks (or both) - - from __future__ import print_function import os diff --git a/maguiclient/__init__.py b/maguiclient/__init__.py index 51ff7d6a0..94d6fbb53 100755 --- a/maguiclient/__init__.py +++ b/maguiclient/__init__.py @@ -1,4 +1,3 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - # Copyright (C) 2018, 2020 Pablo Iranzo Gómez diff --git a/maguiclient/hooks/data/0/fail-faraday.py b/maguiclient/hooks/data/0/fail-faraday.py index afa0fa5c2..dd6bfdf7b 100644 --- a/maguiclient/hooks/data/0/fail-faraday.py +++ b/maguiclient/hooks/data/0/fail-faraday.py @@ -3,9 +3,7 @@ # # Description: Hook for making as failed faraday plugins # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) - # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/maguiclient/magui.py b/maguiclient/magui.py index 76134c154..ebd37fd7c 100755 --- a/maguiclient/magui.py +++ b/maguiclient/magui.py @@ -14,15 +14,12 @@ # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - from __future__ import print_function import argparse diff --git a/maguiclient/plugins/core/faraday-magui.py b/maguiclient/plugins/core/faraday-magui.py index 9e1946c59..d2a45b934 100755 --- a/maguiclient/plugins/core/faraday-magui.py +++ b/maguiclient/plugins/core/faraday-magui.py @@ -2,7 +2,6 @@ # -*- coding: utf-8 -*- # Description: Plugin for reporting failed affinity on the faraday risu plugin # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/maguiclient/plugins/core/metadata-outputs.py b/maguiclient/plugins/core/metadata-outputs.py index edc97c65f..8a81027fe 100755 --- a/maguiclient/plugins/core/metadata-outputs.py +++ b/maguiclient/plugins/core/metadata-outputs.py @@ -1,10 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # Description: Plugin for reporting back risu metadata from all sosreports - # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - - from __future__ import print_function import os diff --git a/maguiclient/plugins/core/risu-outputs.py b/maguiclient/plugins/core/risu-outputs.py index 786384e0e..5d5f43020 100755 --- a/maguiclient/plugins/core/risu-outputs.py +++ b/maguiclient/plugins/core/risu-outputs.py @@ -1,10 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # Description: Plugin for reporting back risu data from all sosreports# - # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - - from __future__ import print_function import os diff --git a/maguiclient/plugins/openstack/mysql/seqno.py b/maguiclient/plugins/openstack/mysql/seqno.py index 720f7679e..2fb66f79c 100755 --- a/maguiclient/plugins/openstack/mysql/seqno.py +++ b/maguiclient/plugins/openstack/mysql/seqno.py @@ -1,9 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - # Description: Plugin for checking galera/mysql sequence number across servers # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function try: diff --git a/maguiclient/plugins/system/mtu.py b/maguiclient/plugins/system/mtu.py index d2188708d..b88275bd4 100755 --- a/maguiclient/plugins/system/mtu.py +++ b/maguiclient/plugins/system/mtu.py @@ -3,8 +3,6 @@ # # Description: Plugin for reporting non equal mtu values # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - - from __future__ import print_function import os diff --git a/maguiclient/plugins/system/multipathluns.py b/maguiclient/plugins/system/multipathluns.py index 65c4b135e..1b0b865f2 100755 --- a/maguiclient/plugins/system/multipathluns.py +++ b/maguiclient/plugins/system/multipathluns.py @@ -3,8 +3,6 @@ # # Description: Plugin for reporting non equal mpath values # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - - from __future__ import print_function import os diff --git a/maguiclient/plugins/system/release.py b/maguiclient/plugins/system/release.py index 983e8e4c3..e2be27ea3 100755 --- a/maguiclient/plugins/system/release.py +++ b/maguiclient/plugins/system/release.py @@ -3,8 +3,6 @@ # # Description: Plugin for checking RH Release across hosts # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - - from __future__ import print_function try: diff --git a/refresh-contributors.py b/refresh-contributors.py index 0c13a9ec1..cbf59dfc0 100755 --- a/refresh-contributors.py +++ b/refresh-contributors.py @@ -3,16 +3,12 @@ # # Description: Script to update contributors for each plugin # Copyright (C) 2018-2023 Pablo Iranzo Gómez - # Find files that misses the header: # for file in $(find . -type f|grep -v .git|grep -v pyc|grep -v .risu_tests|grep -E '(.py|.txt|.yml|.sh)$'); do grep -q "^# Modifications" $file|| echo $file;done - # How to use: # python setup.py sdist # To create AUTHORS # ./refresh-contributors.py # Check results on your git repo and commit a new PR - - import os import re import shutil diff --git a/risu.py b/risu.py index 266152a64..29e56c6e8 100755 --- a/risu.py +++ b/risu.py @@ -1,6 +1,5 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - # Copyright (C) 2021 Pablo Iranzo Gómez import sys diff --git a/risu/magui.py b/risu/magui.py index 93f2328e6..4a0966e1a 100755 --- a/risu/magui.py +++ b/risu/magui.py @@ -2,7 +2,6 @@ # -*- coding: utf-8 -*- # Copyright (C) 2017 Robin Černín # Copyright (C) 2017-2022 Pablo Iranzo Gómez - import os import sys diff --git a/risu/risu.py b/risu/risu.py index e42a8171c..73b1d6a5a 100755 --- a/risu/risu.py +++ b/risu/risu.py @@ -3,7 +3,6 @@ # Copyright (C) 2017 Robin Černín # Copyright (C) 2017 Lars Kellogg-Stedman # Copyright (C) 2017-2022 Pablo Iranzo Gómez - import os import sys diff --git a/risuclient/extensions/ansible.py b/risuclient/extensions/ansible.py index 5554c227b..f740d1bc5 100644 --- a/risuclient/extensions/ansible.py +++ b/risuclient/extensions/ansible.py @@ -4,7 +4,6 @@ # Description: Extension for processing ansible playbooks # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2017-2022 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/extensions/core.py b/risuclient/extensions/core.py index 2e30878dc..f7473f1b4 100644 --- a/risuclient/extensions/core.py +++ b/risuclient/extensions/core.py @@ -4,7 +4,6 @@ # Description: Extension for processing core Risu plugins # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2017-2022 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/extensions/faraday-exec.py b/risuclient/extensions/faraday-exec.py index 7d71d2fe5..b0afd76dd 100644 --- a/risuclient/extensions/faraday-exec.py +++ b/risuclient/extensions/faraday-exec.py @@ -7,7 +7,6 @@ # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018 Robin Černín # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/extensions/faraday.py b/risuclient/extensions/faraday.py index ad31abeb0..935db4ebc 100644 --- a/risuclient/extensions/faraday.py +++ b/risuclient/extensions/faraday.py @@ -6,7 +6,6 @@ # # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import hashlib diff --git a/risuclient/extensions/golang.py b/risuclient/extensions/golang.py index 183d2c7c4..20d08d124 100644 --- a/risuclient/extensions/golang.py +++ b/risuclient/extensions/golang.py @@ -4,7 +4,6 @@ # Description: Extension for processing GOlang Risu plugins # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2020, 2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/extensions/metadata.py b/risuclient/extensions/metadata.py index 56693a8c1..b5fa5222e 100644 --- a/risuclient/extensions/metadata.py +++ b/risuclient/extensions/metadata.py @@ -4,7 +4,6 @@ # Description: Extension for running and reporting metadata # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/extensions/nagios.py b/risuclient/extensions/nagios.py index ed2a42122..9222dfcd4 100644 --- a/risuclient/extensions/nagios.py +++ b/risuclient/extensions/nagios.py @@ -4,7 +4,6 @@ # Description: Extension for processing nagios Risu plugins # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/extensions/node-problem-detector.py b/risuclient/extensions/node-problem-detector.py index 80126f943..6a5812110 100644 --- a/risuclient/extensions/node-problem-detector.py +++ b/risuclient/extensions/node-problem-detector.py @@ -5,7 +5,6 @@ # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2019-2021, 2023 Pablo Iranzo Gómez # - from __future__ import print_function import json diff --git a/risuclient/extensions/rhv-log-collector-analyzer.py b/risuclient/extensions/rhv-log-collector-analyzer.py index 7ebcd0fa1..05b53ae22 100644 --- a/risuclient/extensions/rhv-log-collector-analyzer.py +++ b/risuclient/extensions/rhv-log-collector-analyzer.py @@ -4,8 +4,6 @@ # Description: Extension for processing rhv-log-collector-analizer # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - - from __future__ import print_function import os diff --git a/risuclient/extensions/tripleo-common-healthcheck.py b/risuclient/extensions/tripleo-common-healthcheck.py index a1452d8dc..6012cc21b 100644 --- a/risuclient/extensions/tripleo-common-healthcheck.py +++ b/risuclient/extensions/tripleo-common-healthcheck.py @@ -4,7 +4,6 @@ # Description: Extension for processing tripleo-common-healthcheck playbooks # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/extensions/winston.py b/risuclient/extensions/winston.py index 8e92dd515..d95976e99 100644 --- a/risuclient/extensions/winston.py +++ b/risuclient/extensions/winston.py @@ -6,7 +6,6 @@ # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez # # https://en.wikipedia.org/wiki/Winston_Smith - from __future__ import print_function import os diff --git a/risuclient/hooks/data/0/faraday-exec/merge-with-faraday.py b/risuclient/hooks/data/0/faraday-exec/merge-with-faraday.py index e8a61c65b..6e84dea4a 100644 --- a/risuclient/hooks/data/0/faraday-exec/merge-with-faraday.py +++ b/risuclient/hooks/data/0/faraday-exec/merge-with-faraday.py @@ -5,7 +5,6 @@ # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018 Robin Černín # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/hooks/data/0/insights-core-unifier-merge-loader/insights-json.py b/risuclient/hooks/data/0/insights-core-unifier-merge-loader/insights-json.py index d392a8284..4556204de 100644 --- a/risuclient/hooks/data/0/insights-core-unifier-merge-loader/insights-json.py +++ b/risuclient/hooks/data/0/insights-core-unifier-merge-loader/insights-json.py @@ -4,7 +4,6 @@ # Description: Hook for integrating insights execution json into risu results # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2020, 2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import glob diff --git a/risuclient/hooks/data/0/network/move-global-mtu-to-individual-faraday-positive.py b/risuclient/hooks/data/0/network/move-global-mtu-to-individual-faraday-positive.py index b33b1ed98..e27957b55 100644 --- a/risuclient/hooks/data/0/network/move-global-mtu-to-individual-faraday-positive.py +++ b/risuclient/hooks/data/0/network/move-global-mtu-to-individual-faraday-positive.py @@ -4,7 +4,6 @@ # Description: Hook for moving MTU global results to individual tests results # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/hooks/data/0/system/move-global-multipath-to-individual-faraday-positive.py b/risuclient/hooks/data/0/system/move-global-multipath-to-individual-faraday-positive.py index d70170afc..0907f6ff9 100644 --- a/risuclient/hooks/data/0/system/move-global-multipath-to-individual-faraday-positive.py +++ b/risuclient/hooks/data/0/system/move-global-multipath-to-individual-faraday-positive.py @@ -4,7 +4,6 @@ # Description: Hook for moving Mpath global results to individual tests results # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/hooks/data/9/faraday-to-individual.py b/risuclient/hooks/data/9/faraday-to-individual.py index a71a63c98..2244ca92a 100644 --- a/risuclient/hooks/data/9/faraday-to-individual.py +++ b/risuclient/hooks/data/9/faraday-to-individual.py @@ -4,7 +4,6 @@ # Description: Hook for moving faraday results to individual ones # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/hooks/data/9/rhv-log-collector-analyzer-to-individual.py b/risuclient/hooks/data/9/rhv-log-collector-analyzer-to-individual.py index 98d4c1e53..a2a2b2c37 100644 --- a/risuclient/hooks/data/9/rhv-log-collector-analyzer-to-individual.py +++ b/risuclient/hooks/data/9/rhv-log-collector-analyzer-to-individual.py @@ -3,7 +3,6 @@ # # Description: Hook for moving rhv-log-collector-analyzer results to individual tests results # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import json diff --git a/risuclient/hooks/data/9/system/unfail-chronyd-with-ntpd.py b/risuclient/hooks/data/9/system/unfail-chronyd-with-ntpd.py index ad8096063..60a1ae278 100644 --- a/risuclient/hooks/data/9/system/unfail-chronyd-with-ntpd.py +++ b/risuclient/hooks/data/9/system/unfail-chronyd-with-ntpd.py @@ -4,7 +4,6 @@ # Description: Hook for removing failed chronyd status when ntpd is ok # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/hooks/data/9/system/unfail-firewall-with-openstack.py b/risuclient/hooks/data/9/system/unfail-firewall-with-openstack.py index 9b00e3f34..1c633ff6a 100644 --- a/risuclient/hooks/data/9/system/unfail-firewall-with-openstack.py +++ b/risuclient/hooks/data/9/system/unfail-firewall-with-openstack.py @@ -4,7 +4,6 @@ # Description: Hook for removing failed firewall status when node is openstack # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/hooks/data/9/system/unfail-ntpd-with-chronyd.py b/risuclient/hooks/data/9/system/unfail-ntpd-with-chronyd.py index d54912871..0b9f27862 100644 --- a/risuclient/hooks/data/9/system/unfail-ntpd-with-chronyd.py +++ b/risuclient/hooks/data/9/system/unfail-ntpd-with-chronyd.py @@ -4,7 +4,6 @@ # Description: Hook for removing failed ntpd status when chronyd is ok # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import os diff --git a/risuclient/hooks/profiles/profiles.py b/risuclient/hooks/profiles/profiles.py index b4d8756f9..13af9093f 100644 --- a/risuclient/hooks/profiles/profiles.py +++ b/risuclient/hooks/profiles/profiles.py @@ -4,7 +4,6 @@ # Description: Hook for procesing profile definitions and appending results formated to json # Author: Pablo Iranzo Gomez (Pablo.Iranzo@gmail.com) # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez - from __future__ import print_function import json diff --git a/risuclient/magui.py b/risuclient/magui.py index 580e15e20..274c010b9 100755 --- a/risuclient/magui.py +++ b/risuclient/magui.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2018-2020, 2023 Pablo Iranzo Gómez - import os import sys diff --git a/risuclient/plugins/core/openshift/etcd/certificates.py b/risuclient/plugins/core/openshift/etcd/certificates.py index e2fa2da98..2450c7821 100755 --- a/risuclient/plugins/core/openshift/etcd/certificates.py +++ b/risuclient/plugins/core/openshift/etcd/certificates.py @@ -1,25 +1,19 @@ #!/usr/bin/env python # coding=utf-8 # Copyright (C) 2022, 2023 Pablo Iranzo Gómez - # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - # long_name: Validate etcd certificates # description: Verify etcd certificates are valid for this host # priority: 1000 - - from __future__ import print_function import os diff --git a/risuclient/plugins/core/system/pagetypeinfos.py b/risuclient/plugins/core/system/pagetypeinfos.py index 5f28dab09..216f6ee06 100755 --- a/risuclient/plugins/core/system/pagetypeinfos.py +++ b/risuclient/plugins/core/system/pagetypeinfos.py @@ -1,26 +1,19 @@ #!/usr/bin/env python # coding=utf-8 - # Copyright (C) 2022, 2023 Pablo Iranzo Gómez - - # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - # long_name: Page Type Available # description: Display in a human readable format the content of /proc/pagetypeinfo # priority: 0 - # Loading some modules from __future__ import print_function diff --git a/risuclient/plugins/core/system/reboot.py b/risuclient/plugins/core/system/reboot.py index 2741a068e..0c4d401ed 100755 --- a/risuclient/plugins/core/system/reboot.py +++ b/risuclient/plugins/core/system/reboot.py @@ -1,33 +1,27 @@ #!/usr/bin/env python # coding=utf-8 - # Copyright (C) 2022, 2023 Pablo Iranzo Gómez - - # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - # long_name: Reboot Validation # description: We try to guess if the latest reboot(s) were clean or not # priority: 400 - # Loading some modules from __future__ import print_function import os import re import sys -from datetime import datetime, timedelta +from datetime import datetime +from datetime import timedelta # Getting environment global root_path diff --git a/risuclient/plugins/core/system/system_lib_overload.py b/risuclient/plugins/core/system/system_lib_overload.py index 559c31b12..a6bdf4073 100755 --- a/risuclient/plugins/core/system/system_lib_overload.py +++ b/risuclient/plugins/core/system/system_lib_overload.py @@ -1,36 +1,30 @@ #!/usr/bin/env python # coding=utf-8 - # Copyright (C) 2022, 2023 Pablo Iranzo Gómez - - # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - # long_name: System Libraries Overloaded # description: List system libraries that are overloaded # priority: 400 - # Loading some modules from __future__ import print_function -# Import the _() function import gettext import os import re import subprocess import sys +# Import the _() function + localedir = os.environ["TEXTDOMAINDIR"] # This will use system defined LANGUAGE trad = gettext.translation("risu", localedir, fallback=True) diff --git a/risuclient/plugins/metadata/events/reboots.py b/risuclient/plugins/metadata/events/reboots.py index 1857988f2..7b2e27f5b 100755 --- a/risuclient/plugins/metadata/events/reboots.py +++ b/risuclient/plugins/metadata/events/reboots.py @@ -2,31 +2,27 @@ # -*- coding: utf-8 -*- # Based on reboot.py from David Vallee Delisle # Copyright (C) 2019-2021, 2023 Pablo Iranzo Gómez - # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - # long_name: Events printer # description: Parses system for events that might be relevant on issue diagnosis # priority: 400 - # Loading some modules from __future__ import print_function import os import re import sys -from datetime import datetime, timedelta +from datetime import datetime +from datetime import timedelta # Getting environment global root_path diff --git a/risuclient/shell.py b/risuclient/shell.py index 2c2637501..498839e92 100755 --- a/risuclient/shell.py +++ b/risuclient/shell.py @@ -15,15 +15,12 @@ # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - from __future__ import print_function import argparse diff --git a/risuclient/tools/dmidecode.py b/risuclient/tools/dmidecode.py index edad7fcfe..06fe2a2ad 100755 --- a/risuclient/tools/dmidecode.py +++ b/risuclient/tools/dmidecode.py @@ -1,6 +1,5 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - from __future__ import print_function import os diff --git a/setup.py b/setup.py index 3bec85d0f..cd7598053 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2017-2022 Pablo Iranzo Gómez - import os import re import subprocess diff --git a/tests/cf-uts/test_cf_is_active.py b/tests/cf-uts/test_cf_is_active.py index f56bd47ae..a98b3b6ff 100755 --- a/tests/cf-uts/test_cf_is_active.py +++ b/tests/cf-uts/test_cf_is_active.py @@ -4,18 +4,15 @@ # Description: This UT run scripts to validate CF # # Copyright (C) 2017-2021, 2023 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - import os import shutil import subprocess @@ -23,9 +20,10 @@ import tempfile from unittest import TestCase +import risuclient.shell as risu + # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import risuclient.shell as risu sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../")) diff --git a/tests/cf-uts/test_cf_is_lineinfile.py b/tests/cf-uts/test_cf_is_lineinfile.py index 2133d4be4..f0a6fcf21 100755 --- a/tests/cf-uts/test_cf_is_lineinfile.py +++ b/tests/cf-uts/test_cf_is_lineinfile.py @@ -5,21 +5,17 @@ # # Copyright (C) 2017-2021, 2023 Pablo Iranzo Gómez # Copyright (C) 2020 stickler-ci - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - import os import shutil import subprocess diff --git a/tests/cf-uts/test_cf_is_process.py b/tests/cf-uts/test_cf_is_process.py index 34afc382b..ea3ab276d 100755 --- a/tests/cf-uts/test_cf_is_process.py +++ b/tests/cf-uts/test_cf_is_process.py @@ -4,18 +4,15 @@ # Description: This UT run scripts to validate CF # # Copyright (C) 2017-2021, 2023 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - import os import shutil import subprocess @@ -23,9 +20,10 @@ import tempfile from unittest import TestCase +import risuclient.shell as risu + # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import risuclient.shell as risu sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../")) diff --git a/tests/cf-uts/test_cf_is_required_file.py b/tests/cf-uts/test_cf_is_required_file.py index 0c250dc5f..0e2fc2f71 100755 --- a/tests/cf-uts/test_cf_is_required_file.py +++ b/tests/cf-uts/test_cf_is_required_file.py @@ -5,21 +5,17 @@ # # Copyright (C) 2017-2021, 2023 Pablo Iranzo Gómez # Copyright (C) 2020 stickler-ci - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - import os import shutil import subprocess diff --git a/tests/cf-uts/test_cf_is_required_rpm.py b/tests/cf-uts/test_cf_is_required_rpm.py index 75be9901a..dc6720721 100755 --- a/tests/cf-uts/test_cf_is_required_rpm.py +++ b/tests/cf-uts/test_cf_is_required_rpm.py @@ -4,18 +4,15 @@ # Description: This UT run scripts to validate CF # # Copyright (C) 2017-2021, 2023 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - import os import shutil import subprocess @@ -23,9 +20,10 @@ import tempfile from unittest import TestCase +import risuclient.shell as risu + # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import risuclient.shell as risu sys.path.append(os.path.abspath(os.path.dirname(__file__) + "/" + "../")) diff --git a/tests/cf-uts/test_cf_is_rpm.py b/tests/cf-uts/test_cf_is_rpm.py index a4b40c8db..2b4cc4532 100755 --- a/tests/cf-uts/test_cf_is_rpm.py +++ b/tests/cf-uts/test_cf_is_rpm.py @@ -5,21 +5,17 @@ # # Copyright (C) 2017-2021, 2023 Pablo Iranzo Gómez # Copyright (C) 2020 stickler-ci - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - import os import shutil import subprocess diff --git a/tests/jsons/test_jsons.py b/tests/jsons/test_jsons.py index 29fa0ad04..9bcc2a2b4 100644 --- a/tests/jsons/test_jsons.py +++ b/tests/jsons/test_jsons.py @@ -1,8 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - # Copyright (C) 2018-2022 Pablo Iranzo Gómez - from __future__ import print_function import json diff --git a/tests/plugins-unit-tests/test_all_plugins.py b/tests/plugins-unit-tests/test_all_plugins.py index acbe59ad2..91e9f7cba 100644 --- a/tests/plugins-unit-tests/test_all_plugins.py +++ b/tests/plugins-unit-tests/test_all_plugins.py @@ -5,21 +5,17 @@ # # Copyright (C) 2017-2021, 2023 Pablo Iranzo Gómez # Copyright (C) 2020 stickler-ci - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - import os import random import shutil diff --git a/tests/plugins-unit-tests/test_all_plugins_for_cf_usage_without_sourcing.py b/tests/plugins-unit-tests/test_all_plugins_for_cf_usage_without_sourcing.py index 5aecf408a..be4421703 100644 --- a/tests/plugins-unit-tests/test_all_plugins_for_cf_usage_without_sourcing.py +++ b/tests/plugins-unit-tests/test_all_plugins_for_cf_usage_without_sourcing.py @@ -4,21 +4,17 @@ # Description: This UT will check all core scripts to validate that common functions is loaded # # Copyright (C) 2017-2021, 2023 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - import os import re import sys diff --git a/tests/plugins-unit-tests/test_brackets-parenthesis.py b/tests/plugins-unit-tests/test_brackets-parenthesis.py index 1ee704c78..ed3ca1e7e 100644 --- a/tests/plugins-unit-tests/test_brackets-parenthesis.py +++ b/tests/plugins-unit-tests/test_brackets-parenthesis.py @@ -1,9 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - # Copyright (C) 2018-2022 Pablo Iranzo Gómez - - import os import sys from unittest import TestCase diff --git a/tests/plugins-unit-tests/test_bugzilla_httpd_bug_1406417.py b/tests/plugins-unit-tests/test_bugzilla_httpd_bug_1406417.py index e9c89f515..1783495b2 100644 --- a/tests/plugins-unit-tests/test_bugzilla_httpd_bug_1406417.py +++ b/tests/plugins-unit-tests/test_bugzilla_httpd_bug_1406417.py @@ -4,21 +4,17 @@ # Description: This UT run scripts to validate the rules/tests created for risu for $NAME_OF_TEST # # Copyright (C) 2022, 2023 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - import os import shutil import subprocess diff --git a/tests/plugins-unit-tests/test_executable_bit.py b/tests/plugins-unit-tests/test_executable_bit.py index 4577866ae..a20d3f7ba 100644 --- a/tests/plugins-unit-tests/test_executable_bit.py +++ b/tests/plugins-unit-tests/test_executable_bit.py @@ -1,9 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - # Copyright (C) 2017-2022 Pablo Iranzo Gómez - - import os import sys from unittest import TestCase diff --git a/tests/plugins-unit-tests/test_freeradius_incompatible_regex.py b/tests/plugins-unit-tests/test_freeradius_incompatible_regex.py index c15caf233..1045ba65b 100644 --- a/tests/plugins-unit-tests/test_freeradius_incompatible_regex.py +++ b/tests/plugins-unit-tests/test_freeradius_incompatible_regex.py @@ -4,22 +4,17 @@ # Description: This UT run scripts to validate the rules/tests created for risu for $NAME_OF_TEST # # Copyright (C) 2022, 2023 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - - import os import shutil import subprocess diff --git a/tests/plugins-unit-tests/test_have_description_longname.py b/tests/plugins-unit-tests/test_have_description_longname.py index 16dad7df9..6035f33dc 100644 --- a/tests/plugins-unit-tests/test_have_description_longname.py +++ b/tests/plugins-unit-tests/test_have_description_longname.py @@ -1,9 +1,6 @@ #!/usr/bin/env python # encoding: utf-8 - # Copyright (C) 2019, 2022, 2023 Pablo Iranzo Gómez - - import os from unittest import TestCase diff --git a/tests/plugins-unit-tests/test_keystone_bug_1473713.py b/tests/plugins-unit-tests/test_keystone_bug_1473713.py index 5bf148fc8..6c17b1a4c 100644 --- a/tests/plugins-unit-tests/test_keystone_bug_1473713.py +++ b/tests/plugins-unit-tests/test_keystone_bug_1473713.py @@ -4,21 +4,17 @@ # Description: This UT run scripts to validate the rules/tests created for risu for $NAME_OF_TEST # # Copyright (C) 2022, 2023 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - import os import shutil import subprocess diff --git a/tests/plugins-unit-tests/test_keystone_cleanup.py b/tests/plugins-unit-tests/test_keystone_cleanup.py index b4f57e2be..41394f6fb 100644 --- a/tests/plugins-unit-tests/test_keystone_cleanup.py +++ b/tests/plugins-unit-tests/test_keystone_cleanup.py @@ -4,21 +4,17 @@ # Description: This UT run scripts to validate the rules/tests created for risu for $NAME_OF_TEST # # Copyright (C) 2022, 2023 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - import os import shutil import subprocess diff --git a/tests/plugins-unit-tests/test_no_echo_rc.py b/tests/plugins-unit-tests/test_no_echo_rc.py index 1da8139d4..9968f8b0e 100644 --- a/tests/plugins-unit-tests/test_no_echo_rc.py +++ b/tests/plugins-unit-tests/test_no_echo_rc.py @@ -5,21 +5,17 @@ # # Copyright (C) 2018-2021, 2023 Pablo Iranzo Gómez # Copyright (C) 2020 stickler-ci - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - import os import random import sys diff --git a/tests/plugins-unit-tests/test_non_ascii_chars.py b/tests/plugins-unit-tests/test_non_ascii_chars.py index 720cb15e5..4fe6ac55a 100644 --- a/tests/plugins-unit-tests/test_non_ascii_chars.py +++ b/tests/plugins-unit-tests/test_non_ascii_chars.py @@ -4,22 +4,17 @@ # Description: This UT run scripts to validate the rules/tests created for risu for $NAME_OF_TEST # # Copyright (C) 2022, 2023 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - - import os import shutil import subprocess diff --git a/tests/plugins-unit-tests/test_pacemaker_stonith_enabled.py b/tests/plugins-unit-tests/test_pacemaker_stonith_enabled.py index 4f81a2892..3170d15ed 100644 --- a/tests/plugins-unit-tests/test_pacemaker_stonith_enabled.py +++ b/tests/plugins-unit-tests/test_pacemaker_stonith_enabled.py @@ -4,22 +4,17 @@ # Description: This UT run scripts to validate the rules/tests created for risu for $NAME_OF_TEST # # Copyright (C) 2022, 2023 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - - import os import shutil import subprocess diff --git a/tests/plugins-unit-tests/test_system_lib_overload.py b/tests/plugins-unit-tests/test_system_lib_overload.py index f2b504269..6ae8e67d5 100644 --- a/tests/plugins-unit-tests/test_system_lib_overload.py +++ b/tests/plugins-unit-tests/test_system_lib_overload.py @@ -4,22 +4,17 @@ # Description: This UT run scripts to validate the rules/tests created for risu for $NAME_OF_TEST # # Copyright (C) 2022, 2023 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - - import os import shutil import subprocess diff --git a/tests/plugins-unit-tests/test_systemd_detect_su.py b/tests/plugins-unit-tests/test_systemd_detect_su.py index 653000f2b..d34876589 100644 --- a/tests/plugins-unit-tests/test_systemd_detect_su.py +++ b/tests/plugins-unit-tests/test_systemd_detect_su.py @@ -4,22 +4,17 @@ # Description: This UT run scripts to validate the rules/tests created for risu for $NAME_OF_TEST # # Copyright (C) 2022, 2023 Pablo Iranzo Gómez - # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - # You should have received a copy of the GNU General Public License # along with this program. If not, see . - - import os import shutil import subprocess diff --git a/tests/test_dmidecode.py b/tests/test_dmidecode.py index 6ca80084a..000b5b785 100644 --- a/tests/test_dmidecode.py +++ b/tests/test_dmidecode.py @@ -1,8 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - # Copyright (C) 2021, 2023 Pablo Iranzo Gómez - import os import sys from unittest import TestCase diff --git a/tests/test_magui.py b/tests/test_magui.py index 548fd3c59..620003b9c 100644 --- a/tests/test_magui.py +++ b/tests/test_magui.py @@ -1,8 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - # Copyright (C) 2017-2022 Pablo Iranzo Gómez - import os import sys from unittest import TestCase diff --git a/tests/test_risu.py b/tests/test_risu.py index ef6e97eae..de24976f2 100644 --- a/tests/test_risu.py +++ b/tests/test_risu.py @@ -1,9 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - # Copyright (C) 2017 Lars Kellogg-Stedman # Copyright (C) 2017-2022 Pablo Iranzo Gómez - import os import sys from unittest import TestCase