Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit c76820a

Browse files
fix bad date format in the big update in the modele3
1 parent 51ffe38 commit c76820a

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

cepheus-cep/src/main/java/com/orange/cepheus/cep/controller/NgsiController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ public UpdateContextResponse updateContext(final UpdateContext update) throws Ty
8080
complexEventProcessor.processEvent(event);
8181
statusCode = new StatusCode(CodeEnum.CODE_200);
8282
} catch (EventProcessingException e) {
83-
logger.error("updateContext incoming request: failed to process event {}", e.toString());
84-
statusCode = new StatusCode(CodeEnum.CODE_472, "");
83+
logger.error("updateContext incoming request: failed to process event {}", e);
84+
statusCode = new StatusCode(CodeEnum.CODE_472);
8585
statusCode.setDetail(e.getMessage());
8686
}
8787
responses.add(new ContextElementResponse(element, statusCode));

cepheus-cep/src/test/jmeter/TestPlan.jmx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,31 +2213,31 @@ return &quot;BeanShell executed&quot;;</stringProp>
22132213
{ &#xd;
22142214
&quot;type&quot;: &quot;Room&quot;, &#xd;
22152215
&quot;isPattern&quot;: &quot;false&quot;, &#xd;
2216-
&quot;id&quot;: &quot;&apos;room${FLOOR}${ROOM}&apos;&quot;, &#xd;
2216+
&quot;id&quot;: &quot;room${FLOOR}${ROOM}&quot;, &#xd;
22172217
&quot;attributes&quot;: [ &#xd;
22182218
{ &#xd;
22192219
&quot;name&quot;: &quot;temperature&quot;, &#xd;
22202220
&quot;type&quot;: &quot;double&quot;, &#xd;
22212221
&quot;value&quot;: &quot;${TEMPVALUE}&quot;, &#xd;
22222222
&quot;metadatas&quot;: [&#xd;
22232223
{ &quot;name&quot;:&quot;unit&quot;, &quot;type&quot;:&quot;string&quot; , &quot;value&quot;:&quot;celsius&quot;}, &#xd;
2224-
{ &quot;name&quot;:&quot;time&quot;, &quot;type&quot;:&quot;date&quot;, &quot;value&quot;:&quot;&apos;${__time(YYYY-MM-dd)}T${__time(HH:MM:ss)}Z&apos;&quot; }, &#xd;
2225-
{ &quot;name&quot;:&quot;location&quot;, &quot;type&quot;:&quot;geo:point&quot;, &quot;value&quot;:&quot;46.2323,1.023&quot; } &#xd;
2224+
{ &quot;name&quot;:&quot;time&quot;, &quot;type&quot;:&quot;date&quot;, &quot;value&quot;:&quot;${__time(YYYY-MM-dd)}T${__time(HH:MM:ss)}Z&quot;}, &#xd;
2225+
{ &quot;name&quot;:&quot;location&quot;, &quot;type&quot;:&quot;geo:point&quot;, &quot;value&quot;:&quot;46.2323,1.023&quot;} &#xd;
22262226
] &#xd;
22272227
}, &#xd;
22282228
{ &#xd;
22292229
&quot;name&quot;: &quot;floor&quot;, &#xd;
22302230
&quot;type&quot;: &quot;string&quot;, &#xd;
2231-
&quot;value&quot;: &quot;&apos;floor${FLOOR}&apos;&quot; &#xd;
2231+
&quot;value&quot;: &quot;floor${FLOOR}&quot; &#xd;
22322232
},&#xd;
22332233
{ &#xd;
22342234
&quot;name&quot;: &quot;pressure&quot;, &#xd;
22352235
&quot;type&quot;: &quot;double&quot;, &#xd;
22362236
&quot;value&quot;: ${varPressureValue}.0, &#xd;
22372237
&quot;metadatas&quot;: [&#xd;
22382238
{ &quot;name&quot;:&quot;unit&quot;, &quot;type&quot;:&quot;string&quot; , &quot;value&quot;:&quot;bar&quot;},&#xd;
2239-
{ &quot;name&quot;:&quot;time&quot;, &quot;type&quot;:&quot;date&quot;, &quot;value&quot;:&quot;&apos;${__time(YYYY-MM-dd)}T${__time(HH:MM:ss)}Z&apos;&quot; }, &#xd;
2240-
{ &quot;name&quot;:&quot;location&quot;, &quot;type&quot;:&quot;geo:point&quot;, &quot;value&quot;:&quot;46.2323,1.023&quot; } &#xd;
2239+
{ &quot;name&quot;:&quot;time&quot;, &quot;type&quot;:&quot;date&quot;, &quot;value&quot;:&quot;${__time(YYYY-MM-dd)}T${__time(HH:MM:ss)}Z&quot;}, &#xd;
2240+
{ &quot;name&quot;:&quot;location&quot;, &quot;type&quot;:&quot;geo:point&quot;, &quot;value&quot;:&quot;46.2323,1.023&quot;} &#xd;
22412241
] &#xd;
22422242
}, &#xd;
22432243
{ &#xd;
@@ -2246,7 +2246,7 @@ return &quot;BeanShell executed&quot;;</stringProp>
22462246
&quot;value&quot;: ${varHumidityValue}.0, &#xd;
22472247
&quot;metadatas&quot;: [&#xd;
22482248
{ &quot;name&quot;:&quot;unit&quot;, &quot;type&quot;:&quot;string&quot; , &quot;value&quot;:&quot;percent&quot;},&#xd;
2249-
{ &quot;name&quot;:&quot;time&quot;, &quot;type&quot;:&quot;date&quot;, &quot;value&quot;:&quot;&apos;${__time(YYYY-MM-dd)}T${__time(HH:MM:ss)}Z&apos;&quot; }, &#xd;
2249+
{ &quot;name&quot;:&quot;time&quot;, &quot;type&quot;:&quot;date&quot;, &quot;value&quot;:&quot;${__time(YYYY-MM-dd)}T${__time(HH:MM:ss)}Z&quot;}, &#xd;
22502250
{ &quot;name&quot;:&quot;location&quot;, &quot;type&quot;:&quot;geo:point&quot;, &quot;value&quot;:&quot;46.2323,1.023&quot; } &#xd;
22512251
] &#xd;
22522252
},&#xd;

0 commit comments

Comments
 (0)