diff options
author | Peter Andersson <[email protected]> | 2015-03-05 15:06:44 +0100 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2015-03-05 15:25:45 +0100 |
commit | 9d1dfb7ec91b9d0ce8357ff4953b3b2dd75c0661 (patch) | |
tree | 04f67590c4ebf2b4ae51b17a555c5c2222ee9700 /lib/common_test/test/ct_netconfc_SUITE_data/ns.erl | |
parent | 801b09af301a872170e44c215e274425c46f8d24 (diff) | |
download | otp-9d1dfb7ec91b9d0ce8357ff4953b3b2dd75c0661.tar.gz otp-9d1dfb7ec91b9d0ce8357ff4953b3b2dd75c0661.tar.bz2 otp-9d1dfb7ec91b9d0ce8357ff4953b3b2dd75c0661.zip |
Handle {ok,Data} in RPC reply (decode_rpc_reply)
OTP-12491
Diffstat (limited to 'lib/common_test/test/ct_netconfc_SUITE_data/ns.erl')
-rw-r--r-- | lib/common_test/test/ct_netconfc_SUITE_data/ns.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/common_test/test/ct_netconfc_SUITE_data/ns.erl b/lib/common_test/test/ct_netconfc_SUITE_data/ns.erl index fb0734d48e..f503825c4e 100644 --- a/lib/common_test/test/ct_netconfc_SUITE_data/ns.erl +++ b/lib/common_test/test/ct_netconfc_SUITE_data/ns.erl @@ -540,8 +540,13 @@ make_msg({hello,SessionId,Stuff}) -> SessionIdXml/binary,"</hello>">>); make_msg(ok) -> xml(rpc_reply("<ok/>")); + +make_msg({ok,Data}) -> + xml(rpc_reply(from_simple({ok,Data}))); + make_msg({data,Data}) -> xml(rpc_reply(from_simple({data,Data}))); + make_msg(event) -> xml(<<"<notification xmlns=\"",?NETCONF_NOTIF_NAMESPACE,"\">" "<eventTime>2012-06-14T14:50:54+02:00</eventTime>" |