Victor Seva
99f73edc7c
MT#56753 mocks.pvx: add xavp_is_null
...
Change-Id: Ifc49347f7f6d507396ab852bd31454ecd7dbe71d
2 years ago
Victor Seva
a1c80262d4
MT#56753 mocks.pv: pv name can have ':' char
...
Change-Id: I4ecd5ad7b02165405eb319afd18597efb1d54165
2 years ago
Victor Seva
a06903a0e3
TT#165251 use consistently :new()
...
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
3 years ago
Victor Seva
c18b9e025f
TT#159002 pv: support dash in names/keys
...
Change-Id: I0838332d31d46750ff8e3071873cbe9d4a16357f
3 years ago
Victor Seva
89f1788676
TT#159002 pv: add support for pv_headers
...
* x_hdr support only for now
Change-Id: I85728b637fc66ff6ff52fa235545bc5f3c33671f
3 years ago
Victor Seva
bc30cbe499
TT#159002 ksrMock: obey RESULTS environment variable for logs
...
Change-Id: I94695e6d99b654d8bed9d7ad26938137c483c1e7
3 years ago
Victor Seva
4bcecbd709
TT#159002 add support for $sht
...
Change-Id: Ic4164f2da17d51f09facbe5e119418318d24e50d
3 years ago
Victor Seva
fafde2b034
TT#159002 mock: support xavi variables
...
Change-Id: I5fb74e954b8d82960f6b0aab28ebac86b0b34972
3 years ago
Victor Seva
fca1e982e1
TT#95650 mocks/pv: add missing KSR.pv.get* functions
...
* add some more fake pv vars
Change-Id: I187835a6b3c055493e498e921ebae19bdddc093e
5 years ago
Victor Seva
48b0d4d018
TT#78651 Refactor code
...
* use proper class inherance
Change-Id: I69c9b14c64762ec1a1e17267961830f4794f2246
5 years ago
Victor Seva
2b57bbe5bb
TT#78651 migrate to new KEMI pvx interface
...
Change-Id: I1a5c4cb887276c363ba1158ec72525c70dc17901
5 years ago
Victor Seva
dc1ba69f3f
TT#78651 migrate to new KEMI interface
...
We are going to use both modules app_lua and app_lua_sr until we
solve the missing pieces on KEMI:
* KSR.pvx.xavp_get() returns a string like '<<xavp:%p>>' not a table like
sr.xavp.get()
* KEMI lacks of something like sr.xavp.get_keys() funtion
So, migrate everything that we can to KEMI and keep using sr approach
for just that two cases
- mocks/sr.lua: use same objects for same behaviour
Change-Id: I475ff8f820586cdc94c75bff7466238215e05673
5 years ago
Victor Seva
b09db92994
TT#5034 fix avp:clean()
...
* fix pv mock to align kamailio behavior with pv_unset() for avps.
It removes only the first value not all, only when using '[*]'
pv_unset("$avp(name)") != pv_unset("$(avp(name)[*])")
pv_unset("$avp(name)") == pv_unset("$(avp(name)[0])")
pv_unset("$(avp(name)[1])") == pv_unset("$(avp(name)[0])")
Change-Id: I1aab2150d288da546b144388adb7b2f87ecfb069
9 years ago
Victor Seva
51a8be0b69
MT#12025 code refactoring with luacheck help
...
- don't leak globals, libs should return metatable
- fix requires
- remove unnecessary declarations of variables
- split mocks/sr
- remove unused tests
- fix tests
Change-Id: I2bda46410cf62c61c38ce1a9bf4b96f1a7a961bc
9 years ago
Victor Seva
cf064365b6
MT#15389 $dlg_var support
...
Change-Id: I7408a639ee63e055c8030acdff9cf926c01fa2cb
10 years ago
Victor Seva
abf574241d
MT#7679 fix mock, allow [*] at kindx
11 years ago
Victor Seva
16cc950d5c
MT#7679 fix MockSR. default behaviour of sr.xavp.get is get all values.
11 years ago
Victor Seva
aea1c657ca
mock sr: xavp seconf key is a stack.
12 years ago
Victor Seva
97e9453a69
Added copyright in all lua. Removed unused script.
12 years ago
Victor Seva
fbfd97c680
Fix error if level is nil
12 years ago
Victor Seva
ce2de78890
Refresh new app_lua xavp api
12 years ago
Victor Seva
7a23bb3296
Added some pseudovariables to pv Mock. This is just the base part.
12 years ago
Victor Seva
dd89f9aa88
Added hdr mock
12 years ago
Victor Seva
a84fc65879
Fix get unset without index/keys
12 years ago
Victor Seva
203374de7a
Fixed is_xavp index with no key. Added test to check it.
...
Distinguish between not existing and deleted on index.
12 years ago
Victor Seva
877a7d0583
Fix behaviour on unset. Tested on real kamailio.
12 years ago
Victor Seva
06e87977fe
xavp can be access without key.
...
xavp inside xavps are _not_ inplemented. We don't need right now.
12 years ago
Victor Seva
718b17fc31
Fix get
12 years ago
Victor Seva
a5f9d77b65
Mock sr reworked.
...
NGCPXAvp just for caller/callee
12 years ago
Victor Seva
0cde0e7e15
Added log for sr.pv
...
Fix set id with [*]
12 years ago
Victor Seva
c4c1c0978b
Added logging.file to sr mock.
...
sr.log in tests is now saved to reports/sr_%Y-%m-%d.log file
12 years ago
Victor Seva
85985ea8fc
Fix xavp set id with no index
12 years ago
Victor Seva
5daf6d3aeb
move utils to ngcp dir
12 years ago
Victor Seva
86ff015f82
using xavps.
...
using lemock the right way
12 years ago
Victor Seva
4c0ca5a943
- Added Stack class in utils
...
- Added real functionality to sr.pv Kamailio Mock module.
sr.pv vars are processed like avps
12 years ago
Victor Seva
9b07ff8e33
- Added kam_utils test
...
- Updated kam_utils
- Added more tests to ngcp
12 years ago
Victor Seva
4f4f571709
- Added lemock library ( Debian package needed )
...
- Added Mock for kamailio sr module
- Added NGCP, NGCPPrefs, NGCPConfig, NGCPPeerPrefs and NGCPDomainPref classes.
This is just a playground to figure out how can we organize the code. WIP
12 years ago