osmo-gbproxy/openbsc/tests
Holger Hans Peter Freyther 2fb8ebf8a7 expiration: Allow to disable the periodic location updating procedure
Disable the periodic LU using "no periodic location update" VTY
command. In that case set the expire_lu to 0 which will then be
translated to a NULL in the database layer. This leads to a bit of
copy and paste in the db_sync_subscriber method but I don't see
how we could easily use 'datetime(%i, 'unixepoch')' and 'NULL'
at the same time.

Change the query to find expired queries to check for NOT NULL
and the time being in the past. This means if there are still
old subscribers in the database they might not be expired. One
would need to execute a query like "UPATE Subscriber SET expire_lu
= 0 WHERE expire_lu is null". The same applies when disabling the
periodic LU. One would need to update the database by hand.

Manual tests executed/passed:

1.) periodic LU enabled:

  * use gst LUTest.st to do a LU
  * UPDATE Subscriber SET expire_lu=datetime('now');
  * observe the subscriber being expired (it was)

2.) periodic LU disabled:

  * use gst LUTest.st to do a LU
  * verify that the expire_lu is NULL in the database
2013-07-27 22:02:24 +02:00
..
abis Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
bsc-nat nat: The second call didn't really add anything to the test. 2013-07-04 20:19:44 +02:00
channel expiration: Speculative fixes for the periodic expiring handling 2013-07-27 21:39:13 +02:00
db Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
gprs Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
gsm0408 Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
mgcp Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
si Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
smpp smpp: Move the coding/mode detection into a utils file 2013-07-27 20:03:10 +02:00
Makefile.am smpp: Move the coding/mode detection into a utils file 2013-07-27 20:03:10 +02:00
atlocal.in smpp: Move the coding/mode detection into a utils file 2013-07-27 20:03:10 +02:00
sms.txt move openbsc into its own subdirectory 2009-06-10 05:40:52 +08:00
testsuite.at smpp: Move the coding/mode detection into a utils file 2013-07-27 20:03:10 +02:00
vty_test_runner.py expiration: Allow to disable the periodic location updating procedure 2013-07-27 22:02:24 +02:00