Skip to content

Commit ff8ca4c

Browse files
Update of the Yaml tests, removed tests on LastConfiguredBy
1 parent df0aae5 commit ff8ca4c

13 files changed

+33
-174
lines changed

src/app/clusters/scenes-server/scenes-server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ void AddSceneParse(CommandHandlerInterface::HandlerContext & ctx, const CommandD
392392
storageData.SetName(req.sceneName);
393393
}
394394

395-
auto fieldSetIter = req.extensionFieldSets.begin();
395+
auto fieldSetIter = req.extensionFieldSetStructs.begin();
396396
uint8_t EFSCount = 0;
397397
// Goes through all EFS in command
398398
while (fieldSetIter.Next() && EFSCount < scenes::kMaxClustersPerScene)

src/app/tests/suites/TestScenesFabricRemoval.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ tests:
249249
value: 0x0001
250250
- name: "SceneName"
251251
value: "Scene1"
252-
- name: "ExtensionFieldSets"
252+
- name: "ExtensionFieldSetStructs"
253253
value: []
254254
response:
255255
values:
@@ -272,7 +272,7 @@ tests:
272272
value: 0x0000
273273
- name: "SceneName"
274274
value: "Scene2"
275-
- name: "ExtensionFieldSets"
275+
- name: "ExtensionFieldSetStructs"
276276
value: []
277277
response:
278278
values:
@@ -296,7 +296,7 @@ tests:
296296
value: 1000
297297
- name: "SceneName"
298298
value: "Scene1"
299-
- name: "ExtensionFieldSets"
299+
- name: "ExtensionFieldSetStructs"
300300
value: []
301301
response:
302302
values:
@@ -320,7 +320,7 @@ tests:
320320
value: 0x0000
321321
- name: "SceneName"
322322
value: "Scene2"
323-
- name: "ExtensionFieldSets"
323+
- name: "ExtensionFieldSetStructs"
324324
value: []
325325
response:
326326
values:

src/app/tests/suites/TestScenesFabricSceneInfo.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ tests:
202202
value: 1000
203203
- name: "SceneName"
204204
value: "Scene1"
205-
- name: "ExtensionFieldSets"
205+
- name: "ExtensionFieldSetStructs"
206206
value:
207207
[
208208
{
@@ -303,7 +303,7 @@ tests:
303303
value: 0x01
304304
- name: "TransitionTime"
305305
value: 1000
306-
- name: "ExtensionFieldSets"
306+
- name: "ExtensionFieldSetStructs"
307307
value:
308308
[
309309
{
@@ -414,7 +414,7 @@ tests:
414414
value: 2000
415415
- name: "SceneName"
416416
value: "Scene1"
417-
- name: "ExtensionFieldSets"
417+
- name: "ExtensionFieldSetStructs"
418418
value:
419419
[
420420
{
@@ -447,7 +447,7 @@ tests:
447447
value: 0x01
448448
- name: "TransitionTime"
449449
value: 2000
450-
- name: "ExtensionFieldSets"
450+
- name: "ExtensionFieldSetStructs"
451451
value:
452452
[
453453
{

src/app/tests/suites/TestScenesMaxCapacity.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# !!!!!!!!!! TEST INFORMATION !!!!!!!!!!!!!!!!!!
16-
# This test covers multi fabric support for scenes cluster attributes such as LastConfiguredBy and FabricSceneInfo
16+
# This test covers multi fabric support for scenes cluster attributes such as FabricSceneInfo
1717

1818
name: Scenes Multi-fabric testing
1919

src/app/tests/suites/TestScenesMultiFabric.yaml

+3-133
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# !!!!!!!!!! TEST INFORMATION !!!!!!!!!!!!!!!!!!
16-
# This test covers multi fabric support for scenes cluster attributes such as LastConfiguredBy and FabricSceneInfo
16+
# This test covers multi fabric support for scenes cluster attributes such as FabricSceneInfo
1717

1818
name: Scenes Multi-fabric testing
1919

@@ -314,19 +314,6 @@ tests:
314314
- name: "GroupID"
315315
value: G1
316316

317-
- label: "TH1 Reads LastConfiguredBy attribute"
318-
command: "readAttribute"
319-
attribute: "LastConfiguredBy"
320-
response:
321-
value: null
322-
323-
- label: "TH2 reads LastConfiguredBy attribute"
324-
identity: "beta"
325-
command: "readAttribute"
326-
attribute: "LastConfiguredBy"
327-
response:
328-
value: null
329-
330317
- label: "TH1 sends an AddScene command to DUT for Scene 1 G1"
331318
command: "AddScene"
332319
arguments:
@@ -339,7 +326,7 @@ tests:
339326
value: 1000
340327
- name: "SceneName"
341328
value: "Scene1"
342-
- name: "ExtensionFieldSets"
329+
- name: "ExtensionFieldSetStructs"
343330
value:
344331
[
345332
{
@@ -419,19 +406,6 @@ tests:
419406
value: []
420407
# TODO : Have FabricSceneInfo initialized on adding a new fabric
421408

422-
- label: "TH1 reads LastConfiguredBy attribute, should be TH1's nodeId"
423-
command: "readAttribute"
424-
attribute: "LastConfiguredBy"
425-
response:
426-
value: commissionerNodeIdAlpha
427-
428-
- label: "TH2 reads LastConfiguredBy attribute, should be TH1's nodeId"
429-
identity: "beta"
430-
command: "readAttribute"
431-
attribute: "LastConfiguredBy"
432-
response:
433-
value: commissionerNodeIdAlpha
434-
435409
- label: "TH2 sends an AddScene command to DUT for Scene 1 G1"
436410
identity: "beta"
437411
command: "AddScene"
@@ -445,7 +419,7 @@ tests:
445419
value: 1000
446420
- name: "SceneName"
447421
value: "Scene1"
448-
- name: "ExtensionFieldSets"
422+
- name: "ExtensionFieldSetStructs"
449423
value:
450424
[
451425
{
@@ -468,19 +442,6 @@ tests:
468442
- name: "SceneID"
469443
value: 0x01
470444

471-
- label: "TH1 reads LastConfiguredBy attribute, should be TH2's nodeId"
472-
command: "readAttribute"
473-
attribute: "LastConfiguredBy"
474-
response:
475-
value: commissionerNodeIdBeta
476-
477-
- label: "TH2 reads LastConfiguredBy attribute, should be TH2's nodeId"
478-
identity: "beta"
479-
command: "readAttribute"
480-
attribute: "LastConfiguredBy"
481-
response:
482-
value: commissionerNodeIdBeta
483-
484445
- label: "TH2 sends a RecallScene command for Scene 1 Group 1"
485446
identity: "beta"
486447
command: "RecallScene"
@@ -548,19 +509,6 @@ tests:
548509
- name: "SceneIdentifierFrom"
549510
value: 0x01
550511

551-
- label: "TH1 reads LastConfiguredBy attribute, should be TH1's nodeId"
552-
command: "readAttribute"
553-
attribute: "LastConfiguredBy"
554-
response:
555-
value: commissionerNodeIdAlpha
556-
557-
- label: "TH2 reads LastConfiguredBy attribute, should be TH1's nodeId"
558-
identity: "beta"
559-
command: "readAttribute"
560-
attribute: "LastConfiguredBy"
561-
response:
562-
value: commissionerNodeIdAlpha
563-
564512
- label: "TH2 confirms the FabricSceneInfo didn't change"
565513
identity: "beta"
566514
command: "readAttribute"
@@ -614,19 +562,6 @@ tests:
614562
- name: "SceneID"
615563
value: 0x01
616564

617-
- label: "TH1 reads LastConfiguredBy attribute, should be TH2's nodeId"
618-
command: "readAttribute"
619-
attribute: "LastConfiguredBy"
620-
response:
621-
value: commissionerNodeIdBeta
622-
623-
- label: "TH2 reads LastConfiguredBy attribute, should be TH2's nodeId"
624-
identity: "beta"
625-
command: "readAttribute"
626-
attribute: "LastConfiguredBy"
627-
response:
628-
value: commissionerNodeIdBeta
629-
630565
- label: "TH2 confirms the FabricSceneInfo's update"
631566
identity: "beta"
632567
command: "readAttribute"
@@ -683,19 +618,6 @@ tests:
683618
- name: "SceneIdentifierFrom"
684619
value: 0x00
685620

686-
- label: "TH1 reads LastConfiguredBy attribute, should be TH1's nodeId"
687-
command: "readAttribute"
688-
attribute: "LastConfiguredBy"
689-
response:
690-
value: commissionerNodeIdAlpha
691-
692-
- label: "TH2 reads LastConfiguredBy attribute, should be TH1's nodeId"
693-
identity: "beta"
694-
command: "readAttribute"
695-
attribute: "LastConfiguredBy"
696-
response:
697-
value: commissionerNodeIdAlpha
698-
699621
- label: "TH2 confirms its FabricSceneInfo remained unchanged"
700622
identity: "beta"
701623
command: "readAttribute"
@@ -789,19 +711,6 @@ tests:
789711
- name: "SceneID"
790712
value: 0x02
791713

792-
- label: "TH1 reads LastConfiguredBy attribute, should be TH2's nodeId"
793-
command: "readAttribute"
794-
attribute: "LastConfiguredBy"
795-
response:
796-
value: commissionerNodeIdBeta
797-
798-
- label: "TH2 reads LastConfiguredBy attribute, should be TH2's nodeId"
799-
identity: "beta"
800-
command: "readAttribute"
801-
attribute: "LastConfiguredBy"
802-
response:
803-
value: commissionerNodeIdBeta
804-
805714
- label: "TH2 confirms its FabricSceneInfo was updated"
806715
identity: "beta"
807716
command: "readAttribute"
@@ -849,19 +758,6 @@ tests:
849758
- name: "GroupID"
850759
value: G1
851760

852-
- label: "TH1 reads LastConfiguredBy attribute, should be TH1's nodeId"
853-
command: "readAttribute"
854-
attribute: "LastConfiguredBy"
855-
response:
856-
value: commissionerNodeIdAlpha
857-
858-
- label: "TH2 reads LastConfiguredBy attribute, should be TH1's nodeId"
859-
identity: "beta"
860-
command: "readAttribute"
861-
attribute: "LastConfiguredBy"
862-
response:
863-
value: commissionerNodeIdAlpha
864-
865761
- label: "TH2 confirms its FabricSceneInfo remained unchanged"
866762
identity: "beta"
867763
command: "readAttribute"
@@ -915,19 +811,6 @@ tests:
915811
- name: "SceneID"
916812
value: 0x02
917813

918-
- label: "TH1 reads LastConfiguredBy attribute, should be TH2's nodeId"
919-
command: "readAttribute"
920-
attribute: "LastConfiguredBy"
921-
response:
922-
value: commissionerNodeIdBeta
923-
924-
- label: "TH2 reads LastConfiguredBy attribute, should be TH2's nodeId"
925-
identity: "beta"
926-
command: "readAttribute"
927-
attribute: "LastConfiguredBy"
928-
response:
929-
value: commissionerNodeIdBeta
930-
931814
- label: "TH2 confirms its FabricSceneInfo was updated"
932815
identity: "beta"
933816
command: "readAttribute"
@@ -974,19 +857,6 @@ tests:
974857
- name: "GroupID"
975858
value: G2
976859

977-
- label: "TH1 reads LastConfiguredBy attribute, should be TH2's nodeId"
978-
command: "readAttribute"
979-
attribute: "LastConfiguredBy"
980-
response:
981-
value: commissionerNodeIdAlpha
982-
983-
- label: "TH2 reads LastConfiguredBy attribute, should be TH2's nodeId"
984-
identity: "beta"
985-
command: "readAttribute"
986-
attribute: "LastConfiguredBy"
987-
response:
988-
value: commissionerNodeIdAlpha
989-
990860
- label: "TH2 confirms its FabricSceneInfo remained unchanged"
991861
identity: "beta"
992862
command: "readAttribute"

src/app/tests/suites/certification/PICS.yaml

+2-4
Original file line numberDiff line numberDiff line change
@@ -5924,14 +5924,12 @@ PICS:
59245924
#
59255925
# server / attributes
59265926
#
5927-
- label: "Does the device implement the LastConfiguredBy attribute?"
5928-
id: S.S.A0000
59295927

59305928
- label: "Does the device implement the SceneTableSize attribute?"
5931-
id: S.S.A0001
5929+
id: S.S.A0000
59325930

59335931
- label: "Does the device implement the FabricSceneInfo attribute?"
5934-
id: S.S.A0002
5932+
id: S.S.A0001
59355933

59365934
#
59375935
# server / commandsReceived

src/app/tests/suites/certification/Test_TC_LVL_9_1.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ tests:
175175

176176
- label: "Step 4: TH sends a AddScene command to DUT with the GroupID field
177177
set to G1, the SceneID field set to 0x02, the TransitionTime field set
178-
to 0 and the ExtensionFieldSets set to: '[{ ClusterID: 0x0008,
178+
to 0 and the ExtensionFieldSetStructs set to: '[{ ClusterID: 0x0008,
179179
AttributeValueList: [{ AttributeID: 0x0000, ValueUnsigned8: 0x64 }]}]'
180180
"
181181
command: "AddScene"
@@ -189,7 +189,7 @@ tests:
189189
value: 0
190190
- name: "SceneName"
191191
value: "Scene1"
192-
- name: "ExtensionFieldSets"
192+
- name: "ExtensionFieldSetStructs"
193193
value:
194194
[
195195
{

src/app/tests/suites/certification/Test_TC_OO_2_7.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ tests:
162162

163163
- label: "Step 4: TH sends a AddScene command to DUT with the GroupID field
164164
set to G1, the SceneID field set to 0x02, the TransitionTime field set
165-
to 1000 (1s) and the ExtensionFieldSets set to: '[{ ClusterID: 0x0006,
165+
to 1000 (1s) and the ExtensionFieldSetStructs set to: '[{ ClusterID: 0x0006,
166166
AttributeValueList: [{ AttributeID: 0x0000, ValueUnsigned8: 0x01 }]}]'
167167
"
168168
command: "AddScene"
@@ -176,7 +176,7 @@ tests:
176176
value: 1000
177177
- name: "SceneName"
178178
value: "Scene1"
179-
- name: "ExtensionFieldSets"
179+
- name: "ExtensionFieldSetStructs"
180180
value:
181181
[
182182
{

src/app/tests/suites/certification/Test_TC_S_2_1.yaml

+2-10
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,16 @@ tests:
3232
- name: "nodeId"
3333
value: nodeId
3434

35-
- label: "Step 2: TH reads from the DUT the LastConfiguredBy attribute"
36-
PICS: S.S.A0000
37-
command: "readAttribute"
38-
attribute: "LastConfiguredBy"
39-
response:
40-
constraints:
41-
type: node_id
42-
4335
- label: "Step 3: TH reads from the DUT the SceneTableSize attribute"
44-
PICS: S.S.A0001
36+
PICS: S.S.A0000
4537
command: "readAttribute"
4638
attribute: "SceneTableSize"
4739
response:
4840
constraints:
4941
type: int16u
5042

5143
- label: "Step 4: TH reads from the DUT the FabricSceneInfo attribute"
52-
PICS: S.S.A0002
44+
PICS: S.S.A0001
5345
command: "readAttribute"
5446
attribute: "FabricSceneInfo"
5547
response:

0 commit comments

Comments
 (0)