Fix black and cover errors 11/13111/2 v13.0 v13.0.1 v13.0.2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 28 Mar 2023 22:17:42 +0000 (00:17 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 31 Mar 2023 19:39:29 +0000 (21:39 +0200)
Change-Id: Iba36b40a4b313391c750ef182ea8e3be23e997b4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_policy_module/common/mon_client.py
osm_policy_module/core/agent.py
requirements-dev.in
requirements-dev.txt
tox.ini

index 1d498c2..f9a51cd 100644 (file)
@@ -174,7 +174,6 @@ class MonClient:
         operation: str,
         action: str,
     ):
-
         alarm_create_request = {
             "correlation_id": cor_id,
             "alarm_name": "osm_alarm_{}_{}_{}_{}".format(
index 56caecd..2daebde 100644 (file)
@@ -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)
 
index 43d075c..8010545 100644 (file)
@@ -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
index 3d56590..1c89a18 100644 (file)
@@ -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 (file)
--- 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]