aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-03-20 02:03:31 +0100
committerAnders Svensson <[email protected]>2015-03-24 11:02:05 +0100
commit35f564094033ea2eb4c5b01d0d0b1c0d629ea5b1 (patch)
tree3c03cce0511a58276153da3a339e0fdf049b2852 /lib/diameter/test
parentb7d8668ea5a4215da900bfcd2a1dbd51384cb0c7 (diff)
downloadotp-35f564094033ea2eb4c5b01d0d0b1c0d629ea5b1.tar.gz
otp-35f564094033ea2eb4c5b01d0d0b1c0d629ea5b1.tar.bz2
otp-35f564094033ea2eb4c5b01d0d0b1c0d629ea5b1.zip
Reject transport=udp;protocol=diameter at DiameterURI encode
Both RFC 3588 and 6733 disallow the combination. Make its encode fail.
Diffstat (limited to 'lib/diameter/test')
-rw-r--r--lib/diameter/test/diameter_codec_test.erl11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/diameter/test/diameter_codec_test.erl b/lib/diameter/test/diameter_codec_test.erl
index 472755c62a..854b71ba93 100644
--- a/lib/diameter/test/diameter_codec_test.erl
+++ b/lib/diameter/test/diameter_codec_test.erl
@@ -356,8 +356,15 @@ values('DiameterURI') ->
Tr <- ["" | [";transport=" ++ X
|| X <- ["tcp", "sctp", "udp"]]],
Pr <- ["" | [";protocol=" ++ X
- || X <- ["diameter","radius","tacacs+"]]]],
- []};
+ || X <- ["diameter","radius","tacacs+"]]],
+ Tr /= ";transport=udp"
+ orelse (Pr /= ";protocol=diameter" andalso Pr /= "")],
+ ["aaa://diameter.se;transport=udp;protocol=diameter",
+ "aaa://diameter.se;transport=udp",
+ "aaa://:3868",
+ "aaax://diameter.se",
+ "aaa://diameter.se;transport=tcpx",
+ "aaa://diameter.se;transport=tcp;protocol=diameter "]};
values(T)
when T == 'IPFilterRule';