This repository was archived by the owner on Feb 3, 2019. It is now read-only.
File tree 3 files changed +20
-2
lines changed
3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ TestDataloggerController::TestDataloggerController() : TestClass("TestDatalogger
15
15
addTest (" GetValues" , &TestDataloggerController::GetValues);
16
16
addTest (" WrongSearch" , &TestDataloggerController::WrongSearch);
17
17
addTest (" WrongPOST" , &TestDataloggerController::WrongPOST);
18
+ addTest (" WaitTimeout" , &TestDataloggerController::WaitTimeout);
18
19
}
19
20
20
21
TestDataloggerController::~TestDataloggerController ()
@@ -78,3 +79,19 @@ bool TestDataloggerController::WrongPOST()
78
79
assert (500 ==response.GetStatut ());
79
80
return true ;
80
81
}
82
+
83
+ bool TestDataloggerController::WaitTimeout ()
84
+ {
85
+ Request request;
86
+ Response response;
87
+
88
+ request.ParseRequest (" GET /Datalogger?search=devices&start=20990101&end=20991231 HTTP/1.1" );
89
+ m_DataloggerController.Controller (request, &response);
90
+ assert (504 ==response.GetStatut ());
91
+
92
+ request.ParseRequest (" GET /Datalogger?search=values&device=fragxpl-modulezzz.default:device1&start=20100101&end=20101231 HTTP/1.1" );
93
+ m_DataloggerController.Controller (request, &response);
94
+ assert (504 ==response.GetStatut ());
95
+
96
+ return true ;
97
+ }
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class TestDataloggerController : public TestClass<TestDataloggerController>
16
16
bool GetValues ();
17
17
bool WrongSearch ();
18
18
bool WrongPOST ();
19
+ bool WaitTimeout ();
19
20
20
21
private:
21
22
DataloggerController m_DataloggerController;
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ bool TestxPLWebApi::AnswerCoverage()
112
112
SimpleSockUDP::SetNextRecv (msg);
113
113
114
114
xPL::SchemaObject schHb (xPL::SchemaObject::stat, " hbeat" , " basic" );
115
- msg = schHb.ToMessage (" fragxpl-modulone .default" , " fragxpl-test.default" );
115
+ msg = schHb.ToMessage (" fragxpl-modultwo .default" , " fragxpl-test.default" );
116
116
SimpleSockUDP::SetNextRecv (msg);
117
117
118
118
msg = SimpleSockUDP::GetLastSend (10 ); // Pass SchemaConfigListRequest
@@ -122,7 +122,7 @@ bool TestxPLWebApi::AnswerCoverage()
122
122
msg = SimpleSockUDP::GetLastSend (10 ); // Pass SchemaAdvanceConfigCurrentCmnd
123
123
124
124
schHb.SetType (" end" );
125
- msg = schHb.ToMessage (" fragxpl-modulone .default" , " fragxpl-test.default" );
125
+ msg = schHb.ToMessage (" fragxpl-modultwo .default" , " fragxpl-test.default" );
126
126
SimpleSockUDP::SetNextRecv (msg);
127
127
128
128
xPL::SchemaObject schDL (xPL::SchemaObject::stat, " datalogger" , " basic" );
You can’t perform that action at this time.
0 commit comments