diff options
author | Anders Svensson <[email protected]> | 2017-04-27 22:09:59 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2017-06-13 13:50:06 +0200 |
commit | cfbe969341068623e609fd25c9c5f56b1fdc9458 (patch) | |
tree | 6c7844a9913ea7b8529314295d57c2056ed6707e /lib/diameter/test/diameter_codec_SUITE_data | |
parent | 2e222053c23054dafcbd9ced1072667a3d7f065a (diff) | |
download | otp-cfbe969341068623e609fd25c9c5f56b1fdc9458.tar.gz otp-cfbe969341068623e609fd25c9c5f56b1fdc9458.tar.bz2 otp-cfbe969341068623e609fd25c9c5f56b1fdc9458.zip |
Adapt test suites to modified encode/decode
Diffstat (limited to 'lib/diameter/test/diameter_codec_SUITE_data')
-rw-r--r-- | lib/diameter/test/diameter_codec_SUITE_data/diameter_test_unknown.erl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/diameter/test/diameter_codec_SUITE_data/diameter_test_unknown.erl b/lib/diameter/test/diameter_codec_SUITE_data/diameter_test_unknown.erl index 50cc6e7eef..700910878c 100644 --- a/lib/diameter/test/diameter_codec_SUITE_data/diameter_test_unknown.erl +++ b/lib/diameter/test/diameter_codec_SUITE_data/diameter_test_unknown.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2010-2016. All Rights Reserved. +%% Copyright Ericsson AB 2010-2017. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -59,7 +59,7 @@ enc(M, #diameter_packet{msg = Vs} = P) -> P#diameter_packet{msg = [M|Vs]}). run(M, Pkt) -> - dec(M, diameter_codec:decode(diameter_test_recv, Pkt)). + dec(M, diameter_codec:decode(diameter_test_recv, opts(M), Pkt)). %% Note that the recv dictionary defines neither XXX nor YYY. dec('AR', #diameter_packet @@ -75,3 +75,10 @@ dec('BR', #diameter_packet errors = [{5001, ?MANDATORY_XXX}, {5008, ?NOT_MANDATORY_YYY}]}) -> ok. + +opts(Mod) -> + #{dictionary => Mod, + string_decode => true, + strict_mbit => true, + rfc => 6733, + failed_avp => false}. |