Victor Seva
2b57bbe5bb
TT#78651 migrate to new KEMI pvx interface
...
Change-Id: I1a5c4cb887276c363ba1158ec72525c70dc17901
6 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
6 years ago
Marco Capetta
280c58fad2
TT#62001 Fix tests after update of LuaUnit
...
In the new version of LuaUnit assertTrue() and assertFalse()
functions are changed to striclty evaluate that the data is
True or false.
Where necessary the fuctions have been substituted in the test
with the new assertEvalToTrue() or assertNil().
Change-Id: I0c728323752a4458e93f516c7529670433c516d1
6 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
b8832fd77a
MT#12937 fix tests after 9a28c0496c
...
Change-Id: Id5ca0f6c458bd2e3bd48fcea749977509a9a85fd
10 years ago
Victor Seva
9afb7095d7
MT#12025 move NGCPConfig to new config.lua file
...
Change-Id: I5ce296dd8cd77317b642e0b5988487bf8922d3b3
10 years ago
Victor Seva
c1c423688e
MT#12937 order by id when selecting user preferences
...
Change-Id: Id754cee5e208f570bd0f8f93ca485c6a6751b47d
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
0abf856f7d
Remove creation of avps. Fix default creation.
12 years ago
Victor Seva
9a3a80834a
Added __tostring() properly to ngcp, xavp and prefs
13 years ago
Victor Seva
b81560a634
Move ?Fetch classes to tests_v files
13 years ago
Victor Seva
4acb0d5131
Initializate dummy vars just in the creation.
...
On clear... create them.
13 years ago
Victor Seva
0cb72f63e7
Return empty table instead of error if load is called with empty params
13 years ago
Victor Seva
4101e6ada0
Test empty parameters on load.
13 years ago
Victor Seva
a3908d5456
No index
13 years ago
Victor Seva
746e5bbe2f
Fix clean. Test it.
13 years ago
Victor Seva
d93e7d2a04
return keys when in load functions.
...
Don't use internal key for xavp
13 years ago
Victor Seva
4fb417a5f6
Use new API.
...
Fix test.
13 years ago
Victor Seva
d10eb3a14b
Fixed load preferences from DDBB.
...
Added logging.
Fixed test
13 years ago
Victor Seva
af52bc1471
Fix lemock use on NGCPUserPrefs test
13 years ago
Victor Seva
5daf6d3aeb
move utils to ngcp dir
13 years ago
Victor Seva
f05b29144e
Move vars to tests_v dir
...
fixed NGCPAvp
Updated vars require
13 years ago
Victor Seva
86ff015f82
using xavps.
...
using lemock the right way
13 years ago