Skip to content

Commit a699716

Browse files
committed
refactor: simplify CGEN feature identifier from CGEN.S.F00(TC) to CGEN.S.F00
- Update PICS.yaml and ci-pics-values to use simplified feature ID - Update Python test files to use new feature identifier - Improve error messaging when commissioning feature check fails - Affected test files: TC_CGEN_2_5 through TC_CGEN_2_11
1 parent 5ca1f54 commit a699716

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -3638,7 +3638,7 @@ PICS:
36383638
- label:
36393639
"Does the device implement the General Commissioning cluster's terms
36403640
and conditions feature?"
3641-
id: CGEN.S.F00(TC)
3641+
id: CGEN.S.F00
36423642

36433643
- label: "The device's failsafe expiration limit."
36443644
id: PIXIT.CGEN.FailsafeExpiryLengthSeconds

src/app/tests/suites/certification/ci-pics-values

+1-1
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ CGEN.S.C04.Rsp=1
744744
CGEN.S.C05.Tx=1
745745

746746
#Feature
747-
CGEN.S.F00(TC)=1
747+
CGEN.S.F00=1
748748

749749
#PIXIT
750750
PIXIT.CGEN.FailsafeExpiryLengthSeconds=0

src/python_testing/TC_CGEN_2_10.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def desc_TC_CGEN_2_10(self) -> str:
4848

4949
def pics_TC_CGEN_2_10(self) -> list[str]:
5050
""" This function returns a list of PICS for this test case that must be True for the test to be run"""
51-
return ["CGEN.S", "CGEN.S.F00(TC)"]
51+
return ["CGEN.S", "CGEN.S.F00"]
5252

5353
def steps_TC_CGEN_2_10(self) -> list[TestStep]:
5454
return [
@@ -68,8 +68,8 @@ async def test_TC_CGEN_2_10(self):
6868
commissioner: ChipDeviceCtrl.ChipDeviceController = self.default_controller
6969

7070
self.step(0)
71-
if not self.pics_guard(self.check_pics("CGEN.S.F00(TC)")):
72-
self.skip_all_remaining_steps(1)
71+
if not self.check_pics("CGEN.S.F00"):
72+
asserts.skip('Root endpoint does not support the [commissioning] feature under test')
7373
return
7474

7575
# Step 1: Begin commissioning with PASE and failsafe

src/python_testing/TC_CGEN_2_11.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def desc_TC_CGEN_2_11(self) -> str:
4949

5050
def pics_TC_CGEN_2_11(self) -> list[str]:
5151
""" This function returns a list of PICS for this test case that must be True for the test to be run"""
52-
return ["CGEN.S", "CGEN.S.F00(TC)"]
52+
return ["CGEN.S", "CGEN.S.F00"]
5353

5454
def steps_TC_CGEN_2_11(self) -> list[TestStep]:
5555
return [
@@ -71,8 +71,8 @@ async def test_TC_CGEN_2_11(self):
7171
tc_user_response_to_simulate = self.matter_test_config.global_test_params['PIXIT.CGEN.RequiredTCAcknowledgements']
7272

7373
self.step(0)
74-
if not self.pics_guard(self.check_pics("CGEN.S.F00(TC)")):
75-
self.skip_all_remaining_steps(1)
74+
if not self.check_pics("CGEN.S.F00"):
75+
asserts.skip('Root endpoint does not support the [commissioning] feature under test')
7676
return
7777

7878
# Step 1: Begin commissioning with PASE and failsafe

src/python_testing/TC_CGEN_2_5.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def desc_TC_CGEN_2_5(self) -> str:
5151

5252
def pics_TC_CGEN_2_5(self) -> list[str]:
5353
""" This function returns a list of PICS for this test case that must be True for the test to be run"""
54-
return ["CGEN.S", "CGEN.S.F00(TC)"]
54+
return ["CGEN.S", "CGEN.S.F00"]
5555

5656
def steps_TC_CGEN_2_5(self) -> list[TestStep]:
5757
return [
@@ -79,8 +79,8 @@ async def test_TC_CGEN_2_5(self):
7979
tc_user_response_to_simulate = self.matter_test_config.global_test_params['PIXIT.CGEN.RequiredTCAcknowledgements']
8080

8181
self.step(0)
82-
if not self.pics_guard(self.check_pics("CGEN.S.F00(TC)")):
83-
self.skip_all_remaining_steps(1)
82+
if not self.check_pics("CGEN.S.F00"):
83+
asserts.skip('Root endpoint does not support the [commissioning] feature under test')
8484
return
8585

8686
# Step 1: Begin commissioning with PASE and failsafe

src/python_testing/TC_CGEN_2_6.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def desc_TC_CGEN_2_6(self) -> str:
4646

4747
def pics_TC_CGEN_2_6(self) -> list[str]:
4848
""" This function returns a list of PICS for this test case that must be True for the test to be run"""
49-
return ["CGEN.S", "CGEN.S.F00(TC)"]
49+
return ["CGEN.S", "CGEN.S.F00"]
5050

5151
def steps_TC_CGEN_2_6(self) -> list[TestStep]:
5252
return [
@@ -60,8 +60,8 @@ async def test_TC_CGEN_2_6(self):
6060
commissioner: ChipDeviceCtrl.ChipDeviceController = self.default_controller
6161

6262
self.step(0)
63-
if not self.pics_guard(self.check_pics("CGEN.S.F00(TC)")):
64-
self.skip_all_remaining_steps(1)
63+
if not self.check_pics("CGEN.S.F00"):
64+
asserts.skip('Root endpoint does not support the [commissioning] feature under test')
6565
return
6666

6767
# Step 1: Commission device without setting TC acknowledgements

src/python_testing/TC_CGEN_2_7.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def desc_TC_CGEN_2_7(self) -> str:
4949

5050
def pics_TC_CGEN_2_7(self) -> list[str]:
5151
""" This function returns a list of PICS for this test case that must be True for the test to be run"""
52-
return ["CGEN.S", "CGEN.S.F00(TC)"]
52+
return ["CGEN.S", "CGEN.S.F00"]
5353

5454
def steps_TC_CGEN_2_7(self) -> list[TestStep]:
5555
return [
@@ -71,8 +71,8 @@ async def test_TC_CGEN_2_7(self):
7171
tc_user_response_to_simulate = self.matter_test_config.global_test_params['PIXIT.CGEN.RequiredTCAcknowledgements']
7272

7373
self.step(0)
74-
if not self.pics_guard(self.check_pics("CGEN.S.F00(TC)")):
75-
self.skip_all_remaining_steps(1)
74+
if not self.check_pics("CGEN.S.F00"):
75+
asserts.skip('Root endpoint does not support the [commissioning] feature under test')
7676
return
7777

7878
# Step 1: Begin commissioning with PASE and failsafe

src/python_testing/TC_CGEN_2_8.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def desc_TC_CGEN_2_8(self) -> str:
4949

5050
def pics_TC_CGEN_2_8(self) -> list[str]:
5151
""" This function returns a list of PICS for this test case that must be True for the test to be run"""
52-
return ["CGEN.S", "CGEN.S.F00(TC)"]
52+
return ["CGEN.S", "CGEN.S.F00"]
5353

5454
def steps_TC_CGEN_2_8(self) -> list[TestStep]:
5555
return [
@@ -72,8 +72,8 @@ async def test_TC_CGEN_2_8(self):
7272
tc_user_response_to_simulate = self.matter_test_config.global_test_params['PIXIT.CGEN.RequiredTCAcknowledgements']
7373

7474
self.step(0)
75-
if not self.pics_guard(self.check_pics("CGEN.S.F00(TC)")):
76-
self.skip_all_remaining_steps(1)
75+
if not self.check_pics("CGEN.S.F00"):
76+
asserts.skip('Root endpoint does not support the [commissioning] feature under test')
7777
return
7878

7979
# Step 1: Begin commissioning with PASE and failsafe

src/python_testing/TC_CGEN_2_9.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def desc_TC_CGEN_2_9(self) -> str:
7272

7373
def pics_TC_CGEN_2_9(self) -> list[str]:
7474
""" This function returns a list of PICS for this test case that must be True for the test to be run"""
75-
return ["CGEN.S", "CGEN.S.F00(TC)"]
75+
return ["CGEN.S", "CGEN.S.F00"]
7676

7777
def steps_TC_CGEN_2_9(self) -> list[TestStep]:
7878
return [
@@ -95,8 +95,8 @@ async def test_TC_CGEN_2_9(self):
9595
tc_user_response_to_simulate = self.matter_test_config.global_test_params['PIXIT.CGEN.RequiredTCAcknowledgements']
9696

9797
self.step(0)
98-
if not self.pics_guard(self.check_pics("CGEN.S.F00(TC)")):
99-
self.skip_all_remaining_steps(1)
98+
if not self.check_pics("CGEN.S.F00"):
99+
asserts.skip('Root endpoint does not support the [commissioning] feature under test')
100100
return
101101

102102
# Step 1: Begin commissioning with PASE and failsafe

0 commit comments

Comments
 (0)