diff options
author | Siri Hansen <[email protected]> | 2013-06-17 13:20:44 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2013-06-25 11:33:01 +0200 |
commit | 38b37419d7a35cb3d5950f9365d59f6a8b4f2304 (patch) | |
tree | ba6617165aa3c2172af9f4594a00b795a2898905 /lib/common_test/test | |
parent | 4c3b306184d886678d08949bcbe0186af8f984b1 (diff) | |
download | otp-38b37419d7a35cb3d5950f9365d59f6a8b4f2304.tar.gz otp-38b37419d7a35cb3d5950f9365d59f6a8b4f2304.tar.bz2 otp-38b37419d7a35cb3d5950f9365d59f6a8b4f2304.zip |
[ct_netconfc] Allow multiple elements inside filter in create_subscription
ct_netconfc:create_subscription only allows one XML element inside the
'filter' element. According to RFC5277 it should be allowed to add any
number of elements inside the filter, so this is now corrected.
Diffstat (limited to 'lib/common_test/test')
-rw-r--r-- | lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl b/lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl index 0535eb924b..6ee7fdd6f6 100644 --- a/lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl +++ b/lib/common_test/test/ct_netconfc_SUITE_data/netconfc1_SUITE.erl @@ -886,6 +886,19 @@ create_subscription(Config) -> ?NS:expect_do_reply('close-session',close,ok), ?ok = ct_netconfc:close_session(Client8), + %% Multiple filters + {ok,Client9} = open_success(DataDir), + ?NS:expect_reply({'create-subscription',[stream,filter]},ok), + MultiFilters = [{event,[{xmlns,"http://my.namespaces.com/event"}], + [{eventClass,["fault"]}, + {severity,["critical"]}]}, + {event,[{xmlns,"http://my.namespaces.com/event"}], + [{eventClass,["fault"]}, + {severity,["major"]}]}], + ?ok = ct_netconfc:create_subscription(Client9,MultiFilters), + ?NS:expect_do_reply('close-session',close,ok), + ?ok = ct_netconfc:close_session(Client9), + ok. receive_event(Config) -> |