aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_subscriber.vty.sql
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-01-11 15:41:29 +0100
committerHarald Welte <laforge@gnumonks.org>2019-01-24 15:29:08 +0000
commit02078b7d917fc7c8cd019d5ed357cf3110905e9b (patch)
tree0f5d1f56a7af1ba114d638bb0e12eda89a844622 /tests/test_subscriber.vty.sql
parentef64b231dc4a385c471754440d89d35f091fea27 (diff)
VTY: integrate IMEI
Display the IMEI in "subscriber ... show", allow showing and modifying subscribers by their IMEI with: "subscriber imei ...". For debug purposes (and to have proper VTY tests), make it possible to change the IMEI with "subscriber ... update imei". IMEIs are saved in the database without the 15th checksum number. When the checksum gets passed, verify it and cut it off. Related: OS#2541 Depends: I02b54cf01a674a1911c5c897fbec02240f88b521 (libosmocore) Change-Id: I1af7b573ca2a1cb22497052665012d9c1acf3b30
Diffstat (limited to 'tests/test_subscriber.vty.sql')
-rw-r--r--tests/test_subscriber.vty.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_subscriber.vty.sql b/tests/test_subscriber.vty.sql
index ff167aa..e2c1af2 100644
--- a/tests/test_subscriber.vty.sql
+++ b/tests/test_subscriber.vty.sql
@@ -1,3 +1,6 @@
+-- Subscriber with invalid IMEI length
+INSERT INTO subscriber (id, imsi, imei) VALUES(99, '000000000000099', '12345');
+
-- Dummy entry with ID=100 gives all subscribers created in the VTY test an
-- ID > 100, so we can pre-fill the database with IDs < 100.
INSERT INTO subscriber (id, imsi) VALUES(100, '000000000000100');