From e9795318c10224753ef70ac4071ee88283a9dd12 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 29 Mar 2023 00:17:42 +0200 Subject: [PATCH] Fix black and cover errors Change-Id: Iba36b40a4b313391c750ef182ea8e3be23e997b4 Signed-off-by: garciadeblas --- osm_policy_module/common/mon_client.py | 1 - osm_policy_module/core/agent.py | 1 - requirements-dev.in | 2 +- requirements-dev.txt | 2 +- tox.ini | 6 +++--- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/osm_policy_module/common/mon_client.py b/osm_policy_module/common/mon_client.py index 1d498c2..f9a51cd 100644 --- a/osm_policy_module/common/mon_client.py +++ b/osm_policy_module/common/mon_client.py @@ -174,7 +174,6 @@ class MonClient: operation: str, action: str, ): - alarm_create_request = { "correlation_id": cor_id, "alarm_name": "osm_alarm_{}_{}_{}_{}".format( diff --git a/osm_policy_module/core/agent.py b/osm_policy_module/core/agent.py index 56caecd..2daebde 100644 --- a/osm_policy_module/core/agent.py +++ b/osm_policy_module/core/agent.py @@ -75,7 +75,6 @@ class PolicyModuleAgent: log.debug("_process_msg topic=%s key=%s msg=%s", topic, key, msg) try: if key in ALLOWED_KAFKA_KEYS: - if key == "instantiated": await self._handle_instantiated(msg) diff --git a/requirements-dev.in b/requirements-dev.in index 43d075c..8010545 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -13,5 +13,5 @@ # See the License for the specific language governing permissions and # limitations under the License. -git+https://osm.etsi.org/gerrit/osm/common.git@master#egg=osm-common +git+https://osm.etsi.org/gerrit/osm/common.git@v13.0#egg=osm-common -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=v13.0 diff --git a/requirements-dev.txt b/requirements-dev.txt index 3d56590..1c89a18 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -22,7 +22,7 @@ kafka-python==2.0.2 # via # -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=v13.0 # aiokafka -osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@master +osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@v13.0 # via -r requirements-dev.in pycrypto==2.6.1 # via -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=v13.0 diff --git a/tox.ini b/tox.ini index 845312d..167f9e9 100644 --- a/tox.ini +++ b/tox.ini @@ -50,7 +50,7 @@ commands = coverage report --omit='*tests*' coverage html -d ./cover --omit='*tests*' coverage xml -o coverage.xml --omit=*tests* -whitelist_externals = sh +allowlist_externals = sh ####################################################################################### @@ -85,7 +85,7 @@ commands = [testenv:pip-compile] deps = pip-tools==6.6.2 skip_install = true -whitelist_externals = bash +allowlist_externals = bash [ commands = - bash -c "for file in requirements*.in ; do \ @@ -109,7 +109,7 @@ commands = python3 setup.py --command-packages=stdeb.command sdist_dsc sh -c 'cd deb_dist/osm-policy-module*/ && dpkg-buildpackage -rfakeroot -uc -us' sh -c 'rm osm_policy_module/requirements.txt' -whitelist_externals = sh +allowlist_externals = sh ####################################################################################### [flake8] -- 2.25.1