Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ozdoganoguzhan committed Sep 26, 2023
1 parent 7869917 commit 06475ee
Showing 1 changed file with 36 additions and 22 deletions.
58 changes: 36 additions & 22 deletions schema/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,28 +627,42 @@ async fn operation_pull_messages() {

let transport = FakeTransport {
response: r#"
<wsnt:Message>
<tt:Message
UtcTime="2023-09-26T07:55:05Z"
PropertyOperation="Initialized">
<tt:Source>
<tt:SimpleItem
Name="VideoSourceConfigurationToken"
Value="00000"/>
<tt:SimpleItem
Name="VideoAnalyticsConfigurationToken"
Value="00000"/>
<tt:SimpleItem
Name="Rule"
Value="00000"/>
</tt:Source>
<tt:Data>
<tt:SimpleItem
Name="IsMotion"
Value="true"/>
</tt:Data>
</tt:Message>
</wsnt:Message>
<tev:PullMessagesResponse>
<tev:CurrentTime>
2023-09-26T07:55:11Z
</tev:CurrentTime>
<tev:TerminationTime>
2023-09-26T07:56:05Z
</tev:TerminationTime>
<wsnt:NotificationMessage>
<wsnt:Topic
Dialect="http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet">
tns1:RuleEngine/CellMotionDetector/Motion
</wsnt:Topic>
<wsnt:Message>
<tt:Message
UtcTime="2023-09-26T07:55:05Z"
PropertyOperation="Initialized">
<tt:Source>
<tt:SimpleItem
Name="VideoSourceConfigurationToken"
Value="00000"/>
<tt:SimpleItem
Name="VideoAnalyticsConfigurationToken"
Value="00000"/>
<tt:SimpleItem
Name="Rule"
Value="00000"/>
</tt:Source>
<tt:Data>
<tt:SimpleItem
Name="IsMotion"
Value="true"/>
</tt:Data>
</tt:Message>
</wsnt:Message>
</wsnt:NotificationMessage>
</tev:PullMessagesResponse>
"#
.into(),
};
Expand Down

0 comments on commit 06475ee

Please sign in to comment.