@@ -112,7 +112,7 @@ describe('MQTT: Measure reception ', function () {
112112 contextBrokerMock
113113 . matchHeader ( 'fiware-service' , 'smartgondor' )
114114 . matchHeader ( 'fiware-servicepath' , '/gardens' )
115- . post (
115+ . patch (
116116 '/v2/entities/Second%20MQTT%20Device/attrs' ,
117117 utils . readExampleFile ( './test/unit/ngsiv2/contextRequests/multipleMeasuresJsonTypes.json' )
118118 )
@@ -122,7 +122,7 @@ describe('MQTT: Measure reception ', function () {
122122 contextBrokerMock
123123 . matchHeader ( 'fiware-service' , 'smartgondor' )
124124 . matchHeader ( 'fiware-servicepath' , '/gardens' )
125- . post (
125+ . patch (
126126 '/v2/entities/Second%20MQTT%20Device/attrs' ,
127127 utils . readExampleFile ( './test/unit/ngsiv2/contextRequests/multipleMeasuresJsonTypes2.json' )
128128 )
@@ -215,7 +215,7 @@ describe('MQTT: Measure reception ', function () {
215215 contextBrokerUnprovMock
216216 . matchHeader ( 'fiware-service' , 'smartgondor' )
217217 . matchHeader ( 'fiware-servicepath' , '/gardens' )
218- . post (
218+ . patch (
219219 '/v2/entities/TheLightType:JSON_UNPROVISIONED/attrs' ,
220220 utils . readExampleFile ( './test/unit/ngsiv2/contextRequests/unprovisionedDevice.json' )
221221 )
@@ -225,7 +225,7 @@ describe('MQTT: Measure reception ', function () {
225225 contextBrokerUnprovMock
226226 . matchHeader ( 'fiware-service' , 'smartgondor' )
227227 . matchHeader ( 'fiware-servicepath' , '/gardens' )
228- . post (
228+ . patch (
229229 '/v2/entities/TheLightType:JSON_UNPROVISIONED/attrs' ,
230230 utils . readExampleFile ( './test/unit/ngsiv2/contextRequests/unprovisionedDevice2.json' )
231231 )
@@ -288,7 +288,7 @@ describe('MQTT: Measure reception ', function () {
288288 contextBrokerMock
289289 . matchHeader ( 'fiware-service' , 'smartgondor' )
290290 . matchHeader ( 'fiware-servicepath' , '/gardens' )
291- . post (
291+ . patch (
292292 '/v2/entities/Second%20MQTT%20Device/attrs' ,
293293 utils . readExampleFile ( './test/unit/ngsiv2/contextRequests/unknownMeasures.json' )
294294 )
@@ -298,7 +298,7 @@ describe('MQTT: Measure reception ', function () {
298298 contextBrokerMock
299299 . matchHeader ( 'fiware-service' , 'smartgondor' )
300300 . matchHeader ( 'fiware-servicepath' , '/gardens' )
301- . post (
301+ . patch (
302302 '/v2/entities/Second%20MQTT%20Device/attrs' ,
303303 utils . readExampleFile ( './test/unit/ngsiv2/contextRequests/unknownMeasures2.json' )
304304 )
@@ -350,7 +350,7 @@ describe('MQTT: Measure reception ', function () {
350350 contextBrokerMock
351351 . matchHeader ( 'fiware-service' , 'smartgondor' )
352352 . matchHeader ( 'fiware-servicepath' , '/gardens' )
353- . post (
353+ . patch (
354354 '/v2/entities/Second%20MQTT%20Device/attrs' ,
355355 utils . readExampleFile ( './test/unit/ngsiv2/contextRequests/timestampMeasure.json' )
356356 )
@@ -360,7 +360,7 @@ describe('MQTT: Measure reception ', function () {
360360 contextBrokerMock
361361 . matchHeader ( 'fiware-service' , 'smartgondor' )
362362 . matchHeader ( 'fiware-servicepath' , '/gardens' )
363- . post (
363+ . patch (
364364 '/v2/entities/Second%20MQTT%20Device/attrs' ,
365365 utils . readExampleFile ( './test/unit/ngsiv2/contextRequests/timestampMeasure2.json' )
366366 )
0 commit comments