From 1b5efbdd82ca71f91c8f207e53a2f9abf0082355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=C4=9Fuzhan=20Emre=20=C3=96zdo=C4=9Fan?= Date: Thu, 28 Sep 2023 18:57:41 +0300 Subject: [PATCH] !fixup test xml --- schema/src/tests.rs | 146 ++++++++++++++++++++++++++++---------------- 1 file changed, 95 insertions(+), 51 deletions(-) diff --git a/schema/src/tests.rs b/schema/src/tests.rs index 391261b..0c827db 100644 --- a/schema/src/tests.rs +++ b/schema/src/tests.rs @@ -627,42 +627,64 @@ async fn operation_pull_messages() { let transport = FakeTransport { response: r#" - - - 2023-09-26T07:55:11Z - - - 2023-09-26T07:56:05Z - - - - tns1:RuleEngine/CellMotionDetector/Motion - - - - - - - - - - - - - - - + + + + + http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/PullMessagesResponse + + + http://192.168.88.108/onvif/Subscription?Idx=5 + + + + + + 2023-09-28T16:01:15Z + + + 2023-09-28T16:11:15Z + + + + tns1:RuleEngine/CellMotionDetector/Motion + + + + + + + + + + + + + + + + + "# .into(), }; @@ -683,7 +705,7 @@ async fn operation_pull_messages() { ); assert_eq!( resp.notification_message[0].message.msg.data.simple_item[0].value, - "true" + "false" ); } @@ -693,19 +715,41 @@ async fn operation_create_pullpoint_subscription() { let transport = FakeTransport { response: r#" - - - - http://192.168.88.108/onvif/Subscription?Idx=162 - - - - 2023-09-26T07:55:05Z - - - 2023-09-26T07:56:05Z - - + + + + + http://www.onvif.org/ver10/events/wsdl/EventPortType/CreatePullPointSubscriptionResponse + + + http://192.168.88.108/onvif/event_service + + + + + + + http://192.168.88.108/onvif/Subscription?Idx=5 + + + + 2023-09-28T16:01:15Z + + + 2023-09-28T16:11:15Z + + + + "# .into(), }; @@ -716,6 +760,6 @@ async fn operation_create_pullpoint_subscription() { assert_eq!( resp.subscription_reference.address, - "http://192.168.88.108/onvif/Subscription?Idx=162" + "http://192.168.88.108/onvif/Subscription?Idx=5" ); }