Fix black and cover errors
Change-Id: Iba36b40a4b313391c750ef182ea8e3be23e997b4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
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 @@
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 @@
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 @@
# 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 @@
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 @@
[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 @@
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]