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
10 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
13 years ago
Victor Seva
ce2de78890
Refresh new app_lua xavp api
13 years ago
Victor Seva
7a23bb3296
Added some pseudovariables to pv Mock. This is just the base part.
13 years ago
Victor Seva
dd89f9aa88
Added hdr mock
13 years ago
Victor Seva
a84fc65879
Fix get unset without index/keys
13 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.
13 years ago
Victor Seva
877a7d0583
Fix behaviour on unset. Tested on real kamailio.
13 years ago
Victor Seva
06e87977fe
xavp can be access without key.
...
xavp inside xavps are _not_ inplemented. We don't need right now.
13 years ago
Victor Seva
718b17fc31
Fix get
13 years ago
Victor Seva
a5f9d77b65
Mock sr reworked.
...
NGCPXAvp just for caller/callee
13 years ago
Victor Seva
0cde0e7e15
Added log for sr.pv
...
Fix set id with [*]
13 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
13 years ago
Victor Seva
85985ea8fc
Fix xavp set id with no index
13 years ago
Victor Seva
5daf6d3aeb
move utils to ngcp dir
13 years ago
Victor Seva
86ff015f82
using xavps.
...
using lemock the right way
13 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
13 years ago
Victor Seva
9b07ff8e33
- Added kam_utils test
...
- Updated kam_utils
- Added more tests to ngcp
13 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
13 years ago