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
9afb7095d7
MT#12025 move NGCPConfig to new config.lua file
...
Change-Id: I5ce296dd8cd77317b642e0b5988487bf8922d3b3
10 years ago
Victor Seva
530a07f2af
MT#9067 fix tests
11 years ago
Victor Seva
e0d2b5b3b7
MT#9067 update tests
11 years ago
Victor Seva
6f8b67f4d5
MT#9067 use one MySQL connection only on NGCP
...
Don't close the connection, just the cursor.
We may need a ping function to test the connection.
https://github.com/keplerproject/luasql/pull/12
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
e252a72278
I don't know why I'm saying fix. Defaults!!
12 years ago
Victor Seva
97e9453a69
Added copyright in all lua. Removed unused script.
12 years ago
Victor Seva
e6439d5a18
Fixing default prefs.
...
default dict has only peer, dom and usr keys.
You should check for a default on real level always. It is always
created even if you load only dom prefs.
12 years ago
Victor Seva
0abf856f7d
Remove creation of avps. Fix default creation.
12 years ago
Victor Seva
9a3a80834a
Added __tostring() properly to ngcp, xavp and prefs
12 years ago
Victor Seva
b81560a634
Move ?Fetch classes to tests_v files
12 years ago
Victor Seva
4acb0d5131
Initializate dummy vars just in the creation.
...
On clear... create them.
12 years ago
Victor Seva
0cb72f63e7
Return empty table instead of error if load is called with empty params
12 years ago
Victor Seva
4101e6ada0
Test empty parameters on load.
12 years ago
Victor Seva
a3908d5456
No index
12 years ago
Victor Seva
95f48ec09c
Fix copy&paste error
12 years ago
Victor Seva
746e5bbe2f
Fix clean. Test it.
12 years ago
Victor Seva
52e55ef7a0
Use new API.
...
Fix tests.
12 years ago
Victor Seva
d10eb3a14b
Fixed load preferences from DDBB.
...
Added logging.
Fixed test
12 years ago
Victor Seva
9b1aba0d66
Fix lemock use on NGCPPeerPrefs test
12 years ago
Victor Seva
5daf6d3aeb
move utils to ngcp dir
12 years ago
Victor Seva
f05b29144e
Move vars to tests_v dir
...
fixed NGCPAvp
Updated vars require
12 years ago
Victor Seva
86ff015f82
using xavps.
...
using lemock the right way
12 years ago