Skip to content

Commit

Permalink
Update TestDiscovery.yaml by enabling a few more steps (#25276)
Browse files Browse the repository at this point in the history
* Update TestDiscovery.yaml by enabling a few more steps

* Update generated tests code
  • Loading branch information
vivien-apple authored and pull[bot] committed Jan 12, 2024
1 parent 97b74b9 commit 1793012
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@

// Allows app options (ports) to be configured on launch of app
#define CHIP_DEVICE_ENABLE_PORT_PARAMS 1

// Expose the device type in the advertisement for CI testing.
#define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DEVICE_TYPE 1
17 changes: 4 additions & 13 deletions src/app/tests/suites/TestDiscovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ config:
defaultValue: 32769
deviceType:
type: int16u
defaultValue: 5
defaultValue: 65535

tests:
- label: "Stop target device"
Expand Down Expand Up @@ -105,23 +105,19 @@ tests:

- label: "Check Hostname"
PICS: "(MCORE.COM.WIFI || MCORE.COM.ETH) && !MCORE.COM.THR"
# On macOS the hostname is the device name and because of it this test is disabled for now.
disabled: true
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "hostName"
constraints:
minLength: 12
maxLength: 12
maxLength: 16
isUpperCase: true
isHexString: true

- label: "Check Hostname"
PICS: "(!MCORE.COM.WIFI && !MCORE.COM.ETH) && MCORE.COM.THR"
# On macOS the hostname is the device name and because of it this test is disabled for now.
disabled: true
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
Expand Down Expand Up @@ -165,8 +161,6 @@ tests:
value: vendorId

- label: "Check Device Type ID (_T)"
# The device type is not broadcasted by the accessory under CI.
disabled: true
PICS: MCORE.SC.DEVTYPE_SUBTYPE
cluster: "DiscoveryCommands"
command: "FindCommissionableByDeviceType"
Expand Down Expand Up @@ -217,6 +211,7 @@ tests:
values:
- name: "mrpRetryIntervalIdle"
constraints:
minValue: 0
maxValue: 3600000

- label: "Optional TXT key for MRP Sleepy Active Interval (SAI)"
Expand All @@ -227,6 +222,7 @@ tests:
values:
- name: "mrpRetryIntervalActive"
constraints:
minValue: 0
maxValue: 3600000

- label: "TXT key for commissioning mode (CM)"
Expand All @@ -238,18 +234,13 @@ tests:
value: 1

- label: "Optional TXT key for device type (DT)"
disabled: true
PICS: MCORE.SC.DT_KEY
cluster: "DiscoveryCommands"
command: "FindCommissionable"
response:
values:
- name: "deviceType"
value: deviceType
constraints:
# The specification says this is a number expressed as <ddd>, but it seems like it can goes
# up to 0xBFFF (49151).
maxValue: 999

- label: "Optional TXT key for device name (DN)"
PICS: MCORE.SC.DN_KEY
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/ci-pics-values
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ MCORE.SC.DEVTYPE_SUBTYPE=1
MCORE.SC.VP_KEY=1
MCORE.SC.DT_KEY=1
MCORE.SC.DN_KEY=1
MCORE.SC.RI_KEY=1
MCORE.SC.RI_KEY=0
MCORE.SC.PH_KEY=1
MCORE.SC.PI_KEY=1
MCORE.SC.EXTENDED_DISCOVERY=1
Expand Down
Loading

0 comments on commit 1793012

Please sign in to comment.