Skip to content

Commit 158e1d6

Browse files
fgalanedwinvautier
andauthored
Apply suggestions from code review
Co-authored-by: Edwin Vautier <[email protected]>
1 parent 2f7adc7 commit 158e1d6

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

test/functional/testCases.js

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -606,14 +606,18 @@ const testCases = [
606606
lazy: [],
607607
attributes: [
608608
{
609-
object_id: 'fdt',
610-
name: 'fireDetectionThreshold',
611-
type: 'Number'
609+
name: 'mainDoorEvent',
610+
type: 'Boolean'
612611
},
613612
{
614-
object_id: 'fireDetectionThreshold3',
615-
name: 'fireDetectionThreshold3',
616-
type: 'Number'
613+
name: 'psSMDUHPower14',
614+
type: 'Text',
615+
object_id: '.1.3.6.1.4.1.6302.2.1.2.17.1.1.15.1702'
616+
},
617+
{
618+
name: 'psSMDUHPower17',
619+
type: 'Number',
620+
object_id: '.1.3.6.1.4.1.6302.2.1.2.17.1.1.18.1702'
617621
}
618622
],
619623
static_attributes: []
@@ -638,25 +642,25 @@ const testCases = [
638642
k: globalEnv.apikey
639643
},
640644
json: {
641-
fdt: 10,
642-
fireDetectionThreshold2: 20,
643-
fireDetectionThreshold3: 30
645+
'.1.3.6.1.4.1.6302.2.1.2.17.1.1.18.1702': 3,
646+
mainDoorEvent: 1,
647+
psSMDUHPower14: 2
644648
}
645649
},
646650
expectation: {
647651
id: globalEnv.entity_name,
648652
type: globalEnv.entity_type,
649-
fireDetectionThreshold: {
653+
mainDoorEvent: {
654+
type: 'Boolean',
655+
value: 1
656+
},
657+
psSMDUHPower17: {
650658
type: 'Number',
651-
value: 10
659+
value: 3
652660
},
653-
fireDetectionThreshold2: {
661+
psSMDUHPower14: {
654662
type: 'Text',
655-
value: 20
656-
},
657-
fireDetectionThreshold3: {
658-
type: 'Number',
659-
value: 30
663+
value: 2
660664
}
661665
}
662666
}

0 commit comments

Comments
 (0)