Victor Seva
0162899f04
TT#6226 fix avp:all()
...
* on real environment sr.pv.get(t.id_all) returns a string not
a list
* add tests/use_cases.lua
Change-Id: I22e50faa3423f2069a8deb6be44e33af166cb72b
9 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
31dd6f2b81
TT#4657 avp: add del(value)
...
Change-Id: I41309ffff4f1a9335911f7d48f6295ea123c7d25
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
7a52fc6ad5
MT#12025 clean luacheck error
...
Change-Id: I247be4018189e393c1a8d7ee9fa7b455cc38f1a7
10 years ago
Victor Seva
65dba89ade
MT#7679 avp: allow tables values in set. utils: add table.suffle() function.
11 years ago
Victor Seva
97e9453a69
Added copyright in all lua. Removed unused script.
12 years ago
Victor Seva
ef435a20a8
Fix log_var function.
...
Add _str_var and __tostring functions to be able to test the results.
(cherry picked from commit 1fdf196a30
)
13 years ago
Victor Seva
6e76b4c466
Added avp.log function
13 years ago
Victor Seva
6e34e31655
Added helper function to set avp from xavp.
...
Added tests
13 years ago
Victor Seva
78e6c3ad1f
Fix avp
13 years ago
Victor Seva
f05b29144e
Move vars to tests_v dir
...
fixed NGCPAvp
Updated vars require
13 years ago
Victor Seva
01f9289910
Added NGCPAvp class. WIP
13 years ago