New function del_pair() is a copy of del() but it does not delete call counters
on db central. Useful if we want to clean pair db without changing db central.
Change-Id: I936bbb99ce9d5698273d8f72e0f032358bd341cd
run_tests.sh: don't use arguments to define output filename
We are getting errors in the new version of lua-unit
> lua5.1: /usr/share/lua/5.1/luaunit.lua:2205: With Junit, an output filename must be supplied with --name!
Change-Id: I0ebd585907f00c3e02f3cf794239c328b0ab202d
The following scenario disclouse an issue with "ngcp_clean" lua
function in case of callee peer:
- A is a local subscriber with Peer_auth set and
force_outbound_call_to_peer set;
- B is a local subscriber with Peer_auth set and
force_outbound_call_to_peer set;
A calls B.
We clean and load callee preferences of B.
Call is detected as forced to PSTN.
We clean and load peer preferences.
When we set outbound peer_auth* values, the $xavp(callee_prefs)
still contains values from B (instead of peering preferences).
When we clean preferences for the callee peer, we only
clean "callee_peer_prefs" and not "callee_prefs".
"callee_prefs" are clean only in case of 'usr' or 'dom'
preferences.
This patch try to fix this problem in order to fix this
scenario with outbound user authentication.
Change-Id: I76dfa6f9e074b3d83ac67bd818e59233ca50492c
Added a new list element named "joined", which store a value
of 1 when the app register after the push in order to record
that the app has joined. Otherwise it contain a value of 0.
lua-redis >= 2.0.5~git20141117.880dda9-7~ is needed
Change-Id: Ie8121eaa5c1ce4a82b1c086b4b34c25213e8d4e8
We were using a mix of .new() and :new() and
that lead us to errors when calling new with parameters
Just be consistent and choose one
Change-Id: Icc2078efb377b80942b2fb518db52df339ecda6a
Unify redis interaction in a class
* allow passing partial config via new()
config will be merged using defined defaults so
missing keys will be appended using values from defaults
Change-Id: I486637e99e0e36fbe1f5a06c703c6b7d2fa77d77
The new function behaves like NGCPDlgCounters:is_in_set but
it uses a regex match to see if the key is contained in the list
Additionally added the helper function 'contains_regex' in the
utils.lua
* ignore vscode files
Change-Id: Iee89f5298ced10c2a9cdf7ebc19a4c0945b8cc9d
Running the test suite on bullseye/sid generates the following warning:
,---
====================================================================== warnings summary ================================================================>
/usr/lib/python3/dist-packages/_pytest/junitxml.py:446
/usr/lib/python3/dist-packages/_pytest/junitxml.py:446: PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest 6>
https://docs.pytest.org/en/stable/deprecations.html#junit-family-default-value-change-to-xunit2
for more information.
_issue_warning_captured(deprecated.JUNIT_XML_DEFAULT_FAMILY, config.hook, 2)
-- Docs: https://docs.pytest.org/en/stable/warnings.html
`---
Adding a config file and setting the junit family explicitly fixes
silences the warning.
Change-Id: I929b0c4630769ed263be0aeb8776a0233954e599
* simple POST via request function
* interface to store/retrieve/delete values from a list
at central redis
Change-Id: Ibae0f9b5c04dec3004b6d33e271866c722da3182