@@ -591,6 +591,77 @@ const testCases = [
591591 }
592592 ]
593593 } ,
594+ {
595+ describeName : '0021c - Simple group with active attributes with special names in object_id' ,
596+ provision : {
597+ url : 'http://localhost:' + config . iota . server . port + '/iot/services' ,
598+ method : 'POST' ,
599+ json : {
600+ services : [
601+ {
602+ resource : '/iot/json' ,
603+ apikey : globalEnv . apikey ,
604+ entity_type : globalEnv . entity_type ,
605+ commands : [ ] ,
606+ lazy : [ ] ,
607+ attributes : [
608+ {
609+ object_id : 'fdt' ,
610+ name : 'fireDetectionThreshold' ,
611+ type : 'Number'
612+ } ,
613+ {
614+ object_id : 'fireDetectionThreshold3' ,
615+ name : 'fireDetectionThreshold3' ,
616+ type : 'Number'
617+ }
618+ ] ,
619+ static_attributes : [ ]
620+ }
621+ ]
622+ } ,
623+ headers : {
624+ 'fiware-service' : globalEnv . service ,
625+ 'fiware-servicepath' : globalEnv . servicePath
626+ }
627+ } ,
628+ should : [
629+ {
630+ shouldName :
631+ 'A - WHEN sending defined object_ids with special format names in attributes through http IT should send measures to Context Broker preserving value types, name mappings and metadatas' ,
632+ type : 'single' ,
633+ measure : {
634+ url : 'http://localhost:' + config . http . port + '/iot/json' ,
635+ method : 'POST' ,
636+ qs : {
637+ i : globalEnv . deviceId ,
638+ k : globalEnv . apikey
639+ } ,
640+ json : {
641+ fdt : 10 ,
642+ fireDetectionThreshold2 : 20 ,
643+ fireDetectionThreshold3 : 30
644+ }
645+ } ,
646+ expectation : {
647+ id : globalEnv . entity_name ,
648+ type : globalEnv . entity_type ,
649+ fireDetectionThreshold : {
650+ type : 'Number' ,
651+ value : 10
652+ } ,
653+ fireDetectionThreshold2 : {
654+ type : 'Text' ,
655+ value : 20
656+ } ,
657+ fireDetectionThreshold3 : {
658+ type : 'Number' ,
659+ value : 30
660+ }
661+ }
662+ }
663+ ]
664+ } ,
594665 {
595666 describeName : '0022 - Simple group with active attributes and multimeasures' ,
596667 provision : {
0 commit comments