ric-plt/sdlpy.git
4 years agoRelease ricsdl new version 2.0.2 09/2209/1 2.0.2
Timo Tietavainen [Mon, 13 Jan 2020 22:40:57 +0000 (00:40 +0200)]
Release ricsdl new version 2.0.2

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I175cf69bb29ffb449e46103c09919c0a39c2acfe

4 years agoVersion bump to version 2.0.2 07/2207/1
Timo Tietavainen [Mon, 13 Jan 2020 22:01:37 +0000 (00:01 +0200)]
Version bump to version 2.0.2

Version bump is needed to do to get ricsdl released out
properly to [test]pypi.org.

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ie5f863495932aec8cdc705b6e0d1c2ae20093e5a

4 years agoFix fake SDL database backend to support multiple set calls 02/2202/1
Timo Tietavainen [Mon, 13 Jan 2020 16:32:29 +0000 (18:32 +0200)]
Fix fake SDL database backend to support multiple set calls

Old fake SDL database backend implementation overwrote the whole fake
database (dictionary) with new key-values what were given in set() API
call. Fixed this to append received key-values in a set() API call to
the old values in the dictionary.

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I8000ed86a1976951270c40d4d2358077ecc3785b

4 years agoImplement a fake SDL database backend 72/2172/2
Timo Tietavainen [Wed, 8 Jan 2020 14:49:11 +0000 (16:49 +0200)]
Implement a fake SDL database backend

Implement a fake SDL database backend what can be used only for
local testing purposes, when SDL client does not need real DBAAS
database services. An SDL client can activate fake SDL database
backend usage when SDL instance is initiated with optional
'fake_db_backend' parameter:
  sdl_instance = SyncStorage(fake_db_backend='dict')
Value 'dict' is only supported.

Change-Id: I2ee7474175d0923617e026c306ec684b117dab60
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
4 years agoRelease ricsdl new version 2.0.0 48/2148/1 2.0.0
Timo Tietavainen [Fri, 3 Jan 2020 16:40:39 +0000 (18:40 +0200)]
Release ricsdl new version 2.0.0

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I07434242c72e194f375563c3adb4d6b8d20e6365

4 years agoImplement regular expression support for key searching 27/2027/8
Timo Tietavainen [Sun, 15 Dec 2019 18:16:23 +0000 (20:16 +0200)]
Implement regular expression support for key searching

There is a use case to use only some part of the full key as a
searching criterion, as an example of such a criterion could be gNBID,
arp or qci. That's why change find_keys() and find_and_get() API
functions to take in a key search pattern instead of a key prefix.
A pattern can contain glob-style regular expression to match a key.

Removed also 'atomic' parameter of find_and_get(), because only
reasonable selection would be to use non-atomic option, which does not
block the whole Redis for a long time as atomic option could do.

Returned dictionary of matched key values are now sorted by key values
in alphabetical order.

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I870089f51b1ce4d72c7984220af0f770b562563f

4 years agoRelease ricsdl new version 1.0.2 56/2056/1 1.0.2
Timo Tietavainen [Wed, 18 Dec 2019 12:08:04 +0000 (14:08 +0200)]
Release ricsdl new version 1.0.2

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: If2eca37bf6d4d2c85d9eceb23bc840bf20aa4686

4 years agoTake Hiredis into use in Redis backend 25/2025/3
Timo Tietavainen [Sat, 7 Dec 2019 18:09:31 +0000 (20:09 +0200)]
Take Hiredis into use in Redis backend

Add dependency to Hiredis package to take it into use in ricsdl
Redis backend, because Hiredis provides better performance for
Redis server response handling than pure build-in implementation
of Redis client in python.

Add new unit tests for configuration reading from environment
variables.

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I43227df9df4f3a84a2646d0aaa71552d0105c9d5

4 years agoAdd ricsdl release file for version 1.0.1 52/1952/3 1.0.1
Timo Tietavainen [Thu, 5 Dec 2019 19:24:24 +0000 (21:24 +0200)]
Add ricsdl release file for version 1.0.1

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I02b868c574f0b84b558e7004e9a104468a897784

4 years agoVersion bump to version 1.0.1 56/1956/2
Timo Tietavainen [Fri, 6 Dec 2019 14:35:09 +0000 (16:35 +0200)]
Version bump to version 1.0.1

Version 1.0.1 does not include any ricsdl code changes compared
to the previous version 1.0.0. Version bump is needed to do to get
ricsdl released out properly to [test]pypi.org.

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ibc8167dfd46cf6673f9f1d6cb1c2a61e39869e92

4 years agoAdd implementation of SDL in python 43/1943/3
Timo Tietavainen [Wed, 27 Nov 2019 09:50:01 +0000 (11:50 +0200)]
Add implementation of SDL in python

Added implementation for the SDL API functions:
* Functions to set, get and remove synchronously key-values from
  SDL storage.
* Functions to set, get and remove synchronously group members from
  SDL storage.
* Functions to acquire, manipulate and release a lock.

Added also simple examples how to use SDL API functions.

Added configuration file for the tox tool to run unittests.

Added configuration file for the tox tool to generate documents.

Added sonar pom and tox hooks to verify code coverage.

Change-Id: I1f12879f725d903397ee8f9e788edf7890db381d
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
4 years agoAdd python shareddatalayer API and public exceptions. 42/1942/1
Timo Tietavainen [Fri, 8 Nov 2019 10:39:24 +0000 (12:39 +0200)]
Add python shareddatalayer API and public exceptions.

Added synchronous API functions:
* To read, write and remove from SDL storage.
* To read, write and remove from SDL group.
* To acquire, release and control an SDL lock entry.

Defined a set of SDL exceptions what SDL python implementation
will raise when there happens an error either in SDL or in
the backend database (Redis) what SDL utilizes.

Change-Id: Iaf0f4b3052d2cf189feadf2eb506b7e9a8463409
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
4 years agoAdd empty README file 41/1941/1
Timo Tietavainen [Fri, 8 Nov 2019 07:50:00 +0000 (09:50 +0200)]
Add empty README file

Change-Id: I363a6394a170a7b291d6cff3a804a6363584b98f
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
4 years agoAdd license file 40/1940/1
Timo Tietavainen [Fri, 8 Nov 2019 07:43:22 +0000 (09:43 +0200)]
Add license file

Change-Id: I11a27acb01015ce69ea447158c7fdc7af91a6965
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
4 years agoAdd initial versions of Git Control files 39/1939/1
Timo Tietavainen [Fri, 8 Nov 2019 06:23:21 +0000 (08:23 +0200)]
Add initial versions of Git Control files

Change-Id: I17d0a89182c9eac712d840b42e90cbdd045e0c08
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
4 years agoAutomation adds INFO.yaml 43/1443/2
Aric Gardner [Fri, 8 Nov 2019 16:02:36 +0000 (16:02 +0000)]
Automation adds INFO.yaml

Change-Id: Ibf7c872253a8a6b030276307a70db74c76620542
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
5 years agoInitial empty repository
Andrew Grimberg [Mon, 8 Apr 2019 19:44:49 +0000 (19:44 +0000)]
Initial empty repository