From e24de6868030747438e7c9c33bbd953f4f687474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Mon, 12 Dec 2022 19:19:30 +0200 Subject: [PATCH] test/: typos a/an --- test/unit/12.cfg | 4 ++-- test/unit/12.sh | 2 +- test/unit/19.sh | 2 +- test/unit/20.sh | 2 +- test/unit/21.cfg | 2 +- test/unit/21.sh | 2 +- test/unit/25.sh | 2 +- test/unit/35.sh | 2 +- test/unit/40.sh | 2 +- test/unit/41.sh | 2 +- test/unit/45.sh | 2 +- test/unit/46.sh | 2 +- test/unit/5.cfg | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/test/unit/12.cfg b/test/unit/12.cfg index 7560b6eb65b..ad24cb0dc3a 100644 --- a/test/unit/12.cfg +++ b/test/unit/12.cfg @@ -44,7 +44,7 @@ request_route { if(is_present_hf("Expires")) { xlog("Expires header field present\n"); if($(hdr(Expires){s.int}) > 0) { - xlog("this is an registration\n"); + xlog("this is a registration\n"); } if($(hdr(Expires){s.int}) == 0) { xlog("this is an unregistration\n"); @@ -53,7 +53,7 @@ request_route { if(is_present_hf("Contact")) { xlog("Contact header field present\n"); if ($(hdr(Contact){param.value,expires}{s.int}) > 0) { - xlog("this is an registration\n"); + xlog("this is a registration\n"); } if ($(ct{param.value,expires}{s.int}) == 0) { xlog("this is an unregistration\n"); diff --git a/test/unit/12.sh b/test/unit/12.sh index adde1d7138c..2f4456fae08 100755 --- a/test/unit/12.sh +++ b/test/unit/12.sh @@ -75,7 +75,7 @@ if [ "$ret" -eq 0 ] ; then grep "Contact header field present" $TMPFILE > /dev/null ret=$? if [ "$ret" -eq 0 ] ; then - grep "this is an registration" $TMPFILE > /dev/null + grep "this is a registration" $TMPFILE > /dev/null ret=$? if [ "$ret" -eq 0 ] ; then grep "this is an unregistration" $TMPFILE > /dev/null diff --git a/test/unit/19.sh b/test/unit/19.sh index f9bd07b09be..04ac1b7d79b 100755 --- a/test/unit/19.sh +++ b/test/unit/19.sh @@ -33,7 +33,7 @@ UAS=5070 UAC=5080 -# add an registrar entry to the db; +# add a registrar entry to the db; $MYSQL "DELETE FROM location WHERE ruid=\"kamailio-unit-uid\"" $MYSQL "INSERT INTO location (ruid,username,contact,socket,user_agent,cseq,q) VALUES (\"kamailio-unit-uid\", \"foo\",\"sip:foo@localhost:$UAS\",\"udp:127.0.0.1:$UAS\",\"kamailio_test\",1,-1);" diff --git a/test/unit/20.sh b/test/unit/20.sh index d8d04059006..b635ba82d72 100755 --- a/test/unit/20.sh +++ b/test/unit/20.sh @@ -30,7 +30,7 @@ fi ; CFG="20.cfg" TMPFILE=`mktemp -t kamailio-test.XXXXXXXXXX` -# add an registrar entry to the db; +# add a registrar entry to the db; $MYSQL "INSERT INTO location (ruid, username,contact,socket,user_agent,cseq,q) VALUES (\"kamailio-test-uid\",\"foo\",\"sip:foo@127.0.0.1\",\"udp:127.0.0.1:5060\",\"kamailio_test\",1,-1);" sipp -sn uas -bg -i 127.0.0.1 -m 1 -f 10 -p 5060 > /dev/null 2>&1 diff --git a/test/unit/21.cfg b/test/unit/21.cfg index dc52f14ba75..7f6e7f61c5b 100644 --- a/test/unit/21.cfg +++ b/test/unit/21.cfg @@ -1,7 +1,7 @@ # # simple quick-start config script # Please refer to the Core CookBook at http://www.kamailio.org/wiki/ -# for a explanation of possible statements, functions and parameters. +# for an explanation of possible statements, functions and parameters. # # ----------- global configuration parameters ------------------------ diff --git a/test/unit/21.sh b/test/unit/21.sh index 8b6ed16d277..4db328bee2b 100755 --- a/test/unit/21.sh +++ b/test/unit/21.sh @@ -30,7 +30,7 @@ fi ; CFG=21.cfg -# add an registrar entry to the db; +# add a registrar entry to the db; $MYSQL "INSERT INTO subscriber (username, domain, password) VALUES (\"alice\",\"localhost\",\"alice\");" $BIN -L $MOD_DIR -Y $RUN_DIR -P $PIDFILE -w . -f $CFG -E -e -dd > /dev/null 2>&1 diff --git a/test/unit/25.sh b/test/unit/25.sh index 48ca931c983..765d6af8ee2 100755 --- a/test/unit/25.sh +++ b/test/unit/25.sh @@ -46,7 +46,7 @@ fi ; CFG=25.cfg -# add an registrar entry to the db; +# add a registrar entry to the db; $MYSQL "insert into location (ruid,username,contact,socket,user_agent,cseq,q) values (\"ul-ruid-aa\",\"49721123456789\",\"sip:123456789@127.0.0.1\",\"udp:127.0.0.1:5060\",\"kamailio_test\",1,-1);" $MYSQL "insert into location (ruid,username,contact,socket,user_agent,cseq,q) values (\"ul-ruid-bb\",\"49721123456788\",\"sip:123456788@127.0.0.1\",\"udp:127.0.0.1:5060\",\"kamailio_test\",1,-1);" diff --git a/test/unit/35.sh b/test/unit/35.sh index d8d47ba64be..dad5063bd07 100755 --- a/test/unit/35.sh +++ b/test/unit/35.sh @@ -34,7 +34,7 @@ UAC=5080 IP="127.0.0.31" MASK=27 -# add an registrar entry to the db; +# add a registrar entry to the db; $MYSQL "INSERT INTO location (username,contact,socket,user_agent,cseq,q) VALUES (\"foo\",\"sip:foo@localhost:$UAS\",\"udp:127.0.0.1:$UAS\",\"ser_test\",1,-1);" $MYSQL "INSERT INTO trusted (src_ip, proto) VALUES (\"127.0.0.1\",\"any\");" diff --git a/test/unit/40.sh b/test/unit/40.sh index c0f86a081bf..b3d0447b1f3 100755 --- a/test/unit/40.sh +++ b/test/unit/40.sh @@ -34,7 +34,7 @@ if ! (check_sipp && check_kamailio && check_module "db_mysql" && check_mysql); t exit 0 fi ; -# add an registrar entry to the db; +# add a registrar entry to the db; $MYSQL "INSERT INTO location (username,contact,socket,user_agent,cseq,q) VALUES (\"foo\",\"sip:foo@127.0.0.1:$UAS\",\"udp:127.0.0.1:$UAS\",\"ser_test\",1,-1);" # start diff --git a/test/unit/41.sh b/test/unit/41.sh index 573e999d847..9f871df8fb0 100755 --- a/test/unit/41.sh +++ b/test/unit/41.sh @@ -37,7 +37,7 @@ if ! (check_sipp && check_kamailio && check_module "db_mysql" && check_mysql); t exit 0 fi ; -# add an registrar entry to the db; +# add a registrar entry to the db; $MYSQL "INSERT INTO location (username,contact,socket,user_agent,cseq,q) VALUES (\"foo\",\"sip:foo@127.0.0.1:$UAS\",\"udp:127.0.0.1:$UAS\",\"ser_test\",1,-1);" $MYSQL "INSERT INTO usr_preferences (uuid, attribute, type, value) VALUES (\"foobar\", \"679\", 0, \"foobar!!!!!\");" diff --git a/test/unit/45.sh b/test/unit/45.sh index 5a3ec18589f..330a28d3ca5 100755 --- a/test/unit/45.sh +++ b/test/unit/45.sh @@ -33,7 +33,7 @@ UAS=5070 UAC=5080 -# add an registrar entry to the db; +# add a registrar entry to the db; $MYSQL "INSERT INTO location (username,contact,socket,user_agent,cseq,q) VALUES (\"foo\",\"sip:foo@127.0.0.1:$UAS\",\"udp:127.0.0.1:$UAS\",\"ser_test\",1,-1);" $BIN -L $MOD_DIR -Y $RUN_DIR -P $PIDFILE -w . -f $CFG &> /dev/null diff --git a/test/unit/46.sh b/test/unit/46.sh index d9548d8141f..73961a3fb7e 100755 --- a/test/unit/46.sh +++ b/test/unit/46.sh @@ -64,7 +64,7 @@ test_module_int() return $ret } -# add an registrar entry to the db +# add a registrar entry to the db cp $CFG ${CFG}.bak echo "loadmodule \"db_mysql/db_mysql.so\"" >>$CFG diff --git a/test/unit/5.cfg b/test/unit/5.cfg index 33c971ceade..53d2db671b7 100644 --- a/test/unit/5.cfg +++ b/test/unit/5.cfg @@ -5,7 +5,7 @@ # by Anca Vamanu # # Please refer to the Core CookBook at http://www.kamailio.org/dokuwiki/doku.php -# for a explanation of possible statements, functions and parameters. +# for an explanation of possible statements, functions and parameters. #