From: czichy Date: Mon, 12 Dec 2022 10:39:24 +0000 (+0200) Subject: G release step 1 of 2 and whitespace fix X-Git-Tag: 3.2.1~1 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=ric-plt%2Fxapp-frame-py.git;a=commitdiff_plain;h=01b9a4ace4e9c7df9b55eb9caee3047868b8041d G release step 1 of 2 and whitespace fix Signed-off-by: czichy Change-Id: Ic15a3a8f8751148ff484f87679ad4bad2accc616 Signed-off-by: czichy --- diff --git a/docs/release-notes.rst b/docs/release-notes.rst index 1c0db07..2601205 100644 --- a/docs/release-notes.rst +++ b/docs/release-notes.rst @@ -10,6 +10,10 @@ All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `__ and this project adheres to `Semantic Versioning `__. +[3.2.1] - 2022-12-12 +-------------------- +* small permission fix in python init files + [3.2.0] - 2022-06-16 -------------------- * Added REST E2 subscription support diff --git a/ricxappframe/logger/mdclogger.py b/ricxappframe/logger/mdclogger.py index 526b065..06da5e3 100644 --- a/ricxappframe/logger/mdclogger.py +++ b/ricxappframe/logger/mdclogger.py @@ -192,15 +192,15 @@ class MDCLogger(): severity_level = Level.ERROR - if(level == ""): + if (level == ""): print("Invalid Log Level defined in ConfigMap") - elif((level.upper() == "ERROR") or (level.upper() == "ERR")): + elif ((level.upper() == "ERROR") or (level.upper() == "ERR")): severity_level = Level.ERROR - elif((level.upper() == "WARNING") or (level.upper() == "WARN")): + elif ((level.upper() == "WARNING") or (level.upper() == "WARN")): severity_level = Level.WARNING - elif(level.upper() == "INFO"): + elif (level.upper() == "INFO"): severity_level = Level.INFO - elif(level.upper() == "DEBUG"): + elif (level.upper() == "DEBUG"): severity_level = Level.DEBUG self.set_level(severity_level) diff --git a/setup.py b/setup.py index 199c370..6d43f90 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ def _long_descr(): setup( name="ricxappframe", - version="3.2.0", + version="3.2.1", packages=find_packages(exclude=["tests.*", "tests"]), author="O-RAN Software Community", description="Xapp and RMR framework for Python", diff --git a/tests/test_rmr.py b/tests/test_rmr.py index bd3f4f3..70d1c34 100644 --- a/tests/test_rmr.py +++ b/tests/test_rmr.py @@ -165,7 +165,7 @@ def test_rcv_timeout(): summary = rmr.message_summary(sbuf_rcv) assert summary[rmr.RMR_MS_MSG_STATE] == rmr.RMR_ERR_TIMEOUT assert summary[rmr.RMR_MS_MSG_STATUS] == "RMR_ERR_TIMEOUT" - assert(time.time() - start_rcv_sec > 0.5) # test duration should be longer than the timeout + assert (time.time() - start_rcv_sec > 0.5) # test duration should be longer than the timeout def test_send_rcv(): @@ -325,12 +325,12 @@ def test_rcv_all(): start_rcv_sec = time.time() bundle = helpers.rmr_rcvall_msgs(MRC_RCV, timeout=1001) # non-zero timeout means wait assert len(bundle) == 0 # we should get none - assert(time.time() - start_rcv_sec > 1) # test duration should be longer than 1 second + assert (time.time() - start_rcv_sec > 1) # test duration should be longer than 1 second start_rcv_sec = time.time() bundle = helpers.rmr_rcvall_msgs_raw(MRC_RCV, timeout=1002) # non-zero timeout means wait assert len(bundle) == 0 # we should get none - assert(time.time() - start_rcv_sec > 1) # test duration should be longer than 1 second + assert (time.time() - start_rcv_sec > 1) # test duration should be longer than 1 second def test_bad_buffer():