summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-07-09 19:09:55 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-07-09 19:09:55 +0200
commite2a0d9c74a1e5316727c67c60d896678aff7d602 (patch)
tree70713353400bdc81e4c95b34493afaf1bda3e567 /test
parente6aae167f2c650028e702f933a85b44be03f5de0 (diff)
test: remove useragent password for un-authenticated tests
Diffstat (limited to 'test')
-rw-r--r--test/call.c4
-rw-r--r--test/message.c2
-rw-r--r--test/ua.c8
3 files changed, 7 insertions, 7 deletions
diff --git a/test/call.c b/test/call.c
index 95ec8ac..0cd0394 100644
--- a/test/call.c
+++ b/test/call.c
@@ -67,10 +67,10 @@ struct fixture {
mock_aucodec_register(); \
\
err = ua_alloc(&f->a.ua, \
- "A <sip:a:xxx@127.0.0.1>;regint=0" prm); \
+ "A <sip:a@127.0.0.1>;regint=0" prm); \
TEST_ERR(err); \
err = ua_alloc(&f->b.ua, \
- "B <sip:b:xxx@127.0.0.1>;regint=0" prm); \
+ "B <sip:b@127.0.0.1>;regint=0" prm); \
TEST_ERR(err); \
\
f->a.peer = &f->b; \
diff --git a/test/message.c b/test/message.c
index c4ca053..ddad3ce 100644
--- a/test/message.c
+++ b/test/message.c
@@ -134,7 +134,7 @@ static int endpoint_alloc(struct endpoint **epp, struct test *test,
ep->test = test;
if (re_snprintf(aor, sizeof(aor),
- "%s <sip:%s:xxx@127.0.0.1;transport=%s>;regint=0",
+ "%s <sip:%s@127.0.0.1;transport=%s>;regint=0",
name, name,
sip_transp_name(transp)) < 0) {
err = ENOMEM;
diff --git a/test/ua.c b/test/ua.c
index 236a580..86bb876 100644
--- a/test/ua.c
+++ b/test/ua.c
@@ -169,7 +169,7 @@ int test_ua_alloc(void)
/* make sure we dont have that UA already */
ASSERT_TRUE(NULL == uag_find_aor("sip:user@127.0.0.1"));
- err = ua_alloc(&ua, "Foo <sip:user:pass@127.0.0.1>;regint=0");
+ err = ua_alloc(&ua, "Foo <sip:user@127.0.0.1>;regint=0");
if (err)
return err;
@@ -199,8 +199,8 @@ int test_uag_find_param(void)
ASSERT_TRUE(NULL == uag_find_param("not", "found"));
- err = ua_alloc(&ua1, "<sip:x:x@127.0.0.1>;regint=0;abc");
- err |= ua_alloc(&ua2, "<sip:x:x@127.0.0.1>;regint=0;def=123");
+ err = ua_alloc(&ua1, "<sip:x@127.0.0.1>;regint=0;abc");
+ err |= ua_alloc(&ua2, "<sip:x@127.0.0.1>;regint=0;def=123");
if (err)
goto out;
@@ -685,7 +685,7 @@ int test_ua_options(void)
err = sip_transp_laddr(uag_sip(), &laddr, SIP_TRANSP_UDP, NULL);
TEST_ERR(err);
- err = ua_alloc(&t.ua, "Foo <sip:user:pass@127.0.0.1>;regint=0");
+ err = ua_alloc(&t.ua, "Foo <sip:user@127.0.0.1>;regint=0");
TEST_ERR(err);
n = re_snprintf(uri, sizeof(uri),