Skip to content

Commit

Permalink
Restyled by prettier-yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and mkardous-silabs committed Jul 21, 2023
1 parent 396da7a commit 4271c9f
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 59 deletions.
35 changes: 21 additions & 14 deletions src/app/tests/suites/certification/Test_TC_IDM_4_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# limitations under the License.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default

name: 3.4.2. [TC-IDM-4.2] Subscription Response Messages from DUT Test Cases.
name:
3.4.2. [TC-IDM-4.2] Subscription Response Messages from DUT Test Cases.
[{DUT_Server}]

PICS:
Expand All @@ -32,20 +33,22 @@ tests:
disabled: true

- label:
If the device is has the ICD Management cluster, TH reads from the DUT the IdleModeInterval attribute
and sets the SubscriptionMaxIntervalPublisherLimit to the value read.
If the device does not have the ICD Management cluster, set the SubscriptionMaxIntervalPublisherLimit
to 60 minutes.
If the device is has the ICD Management cluster, TH reads from the DUT
the IdleModeInterval attribute and sets the
SubscriptionMaxIntervalPublisherLimit to the value read. If the device
does not have the ICD Management cluster, set the
SubscriptionMaxIntervalPublisherLimit to 60 minutes.
verification: |
The cluster used in the below command is an example,
icdmanagement read idle-mode-interval 12344321 0
disabled: true

- label: "TH sends a subscription message to the DUT with MaxIntervalCeiling
- label:
"TH sends a subscription message to the DUT with MaxIntervalCeiling
set to a value greater than the SubscriptionMaxIntervalPublisherLimit.
DUT sends a report data action to the TH. TH sends a success status
response to the DUT. DUT sends a Subscribe Response Message
to the TH to activate the subscription."
response to the DUT. DUT sends a Subscribe Response Message to the TH
to activate the subscription."
verification: |
The cluster used in the below command is an example, User can use any supported chip cluster/attribute/command.
Expand Down Expand Up @@ -104,11 +107,12 @@ tests:
MaxInterval and MaxIntervalCeiling are different parameters. One is sent from the TH the other from DUT, verify MaxInterval <= MaxIntervalCeiling
disabled: true

- label: "TH sends a subscription message to the DUT with MaxIntervalCeiling
- label:
"TH sends a subscription message to the DUT with MaxIntervalCeiling
set to a value less than the SubscriptionMaxIntervalPublisherLimit.
DUT sends a report data action to the TH. TH sends a success status
response to the DUT. DUT sends a Subscribe Response Message to
the TH to activate the subscription."
response to the DUT. DUT sends a Subscribe Response Message to the TH
to activate the subscription."
verification: |
The cluster used in the below command is an example, User can use any supported chip cluster/attribute/command.
Expand Down Expand Up @@ -167,7 +171,8 @@ tests:
MaxInterval and MaxIntervalCeiling are different parameters. One is sent from the TH the other from DUT, verify MaxInterval <= MaxIntervalCeiling
disabled: true

- label: "Setup TH2 such that it does not have access to an attribute on a
- label:
"Setup TH2 such that it does not have access to an attribute on a
specific cluster and endpoint. TH2 sends a subscription message to
subscribe to an attribute for which it does not have access.
AttributePath = [[Attribute = Attribute, Cluster = ClusterID, Endpoint
Expand All @@ -178,7 +183,8 @@ tests:
https://github.com/CHIP-Specifications/chip-test-plans/issues/2366
disabled: true

- label: "Setup TH2 such that it does not have access to all attributes on a
- label:
"Setup TH2 such that it does not have access to all attributes on a
specific cluster and endpoint. TH2 sends a subscription request to
subscribe to all attributes for which it does not have access.
AttributePath = [[Cluster = ClusterID, Endpoint = EndpointID ]]."
Expand Down Expand Up @@ -597,7 +603,8 @@ tests:
[1661754615.089927][103654:103659] CHIP:EM: Piggybacking Ack for MessageCounter:223396916 on exchange: 6193i
disabled: true

- label: "TH sends a subscription request to subscribe to a specific global
- label:
"TH sends a subscription request to subscribe to a specific global
attribute from all clusters on all endpoints. AttributePath =
[[Attribute = Global Attribute]]. +"
verification: |
Expand Down
6 changes: 4 additions & 2 deletions src/app/tests/suites/certification/Test_TC_SC_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# limitations under the License.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default

name: 14.2.1. [TC-SC-2.1] Session Establishment - Passcode Authenticated Session
name:
14.2.1. [TC-SC-2.1] Session Establishment - Passcode Authenticated Session
Establishment (PASE)

PICS:
Expand All @@ -25,7 +26,8 @@ config:
endpoint: 0

tests:
- label: "Initiator constructs and sends a TLV-encoded PBKDFParamRequest
- label:
"Initiator constructs and sends a TLV-encoded PBKDFParamRequest
message"
verification: |
Verify that the responder receives the PBKDFParamRequest message. Verify that the protocol header is properly constructed: Message Flags: S Flag is set to 0, and DSIZ field is set to 0 Session ID is set to 0 Security Flags: Session Type bits are set to 0 Exchange Flags: I Flag is set to 1 Protocol Opcode is set to 32 (0x20) Protocol ID is set to 0 Verify, if possible in a debug mode, that the PBKDFParamRequest message contains: initiatorRandom - randomly generated 32-bit octet string initiatorSessionId - max size 16-bits unsigned integer that does not overlap with existing initiator session identifiers passcodeId - max size 16-bits unsigned integer hasPBKDFParameters - boolean If hasPBKDFParameters is set to true then PBKDF parameters are not known for the given passcodeId If hasPBKDFParameters is set to false then PBKDF parameters are known for the given passcodeId initiatorSessionParams - optional session-parameter-struct which contains SESSION_IDLE_INTERVAL - max size 32-bits unsigned integer SESSION_ACTIVE_INTERVAL - max size 32-bits unsigned integer SESSION_ACTIVE_THRESHOLD - max size 16-bits unsigned integer
Expand Down
6 changes: 4 additions & 2 deletions src/app/tests/suites/certification/Test_TC_SC_3_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ config:
endpoint: 0

tests:
- label: "Initiator constructs and sends a TLV-encoded Sigma1 message to
- label:
"Initiator constructs and sends a TLV-encoded Sigma1 message to
Responder with resumption containing initiatorRandom
initiatorSessionId destinationId resumptionID initiatorResumeMIC
initiatorEphPubKey initiatorSessionParams"
Expand Down Expand Up @@ -66,7 +67,8 @@ tests:
[1683884120.042819][5117:5117] CHIP:SC: Peer assigned session key ID 44794
disabled: true

- label: "Initiator receives the Sigma2_Resume message and extracts the
- label:
"Initiator receives the Sigma2_Resume message and extracts the
following values resumptionID responderSessionID sigma2ResumeMIC
responderMRPParams"
verification: |
Expand Down
9 changes: 6 additions & 3 deletions src/app/tests/suites/certification/Test_TC_SC_3_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,24 @@ config:
endpoint: 0

tests:
- label: "Responder receives the Sigma1 message and extracts the following
- label:
"Responder receives the Sigma1 message and extracts the following
initiatorRandom initiatorSessionId destinationId resumptionID
initiatorResumeMIC initiatorEphPubKey initiatorSessionParams"
verification: |
Verify that the message is properly formatted: I Flag is set to 1 S flag and DIZ fields of message flags are set to 0 Encryption Type of security flags is set to 0 The Session Key Type field is set to 0 The Protocol ID field is set to 0x0000 and The Protocol Opcode field is set to 0x30 Verify that the initiatorRandom is of Octet String maximum of length 32 bytes Verify that the initiatorSessionId is of uint16 Verify that the destinationId is of Octet string Verify that the resumptionID from the Initiator matches with the precondition Verify that the resumptionID is of Octet String maximum of length 16 bytes Verify that the initiatorEphPubKey is of Octet string Verify that the initiatorResumeMIC is of Octet string Verify that the responderSessionParams is from any one of the following: SESSION_IDLE_INTERVAL Verify that it is of uint32 SESSION_ACTIVE_INTERVAL Verify that it is of uint32 SESSION_ACTIVE_THRESHOLD - Verify that it is of uint16
disabled: true

- label: "Responder sends a TLV-encoded Sigma2_Resume message to Initiator
- label:
"Responder sends a TLV-encoded Sigma2_Resume message to Initiator
containing resumptionID responderSessionID sigma2ResumeMIC
responderMRPParams"
verification: |
Verify that the Initiator receives the Sigma2_Resume message
disabled: true

- label: "Responder receives the SigmaFinished message and extracts the
- label:
"Responder receives the SigmaFinished message and extracts the
following ProtcolId ProtocolCode"
verification: |
Verify that the SigmaFinished Status report with the following GeneralCode as SUCCESS ProtcolId as SECURE_CHANNEL ProtocolCode as SESSION_ESTABLISHMENT_SUCCESS
Expand Down
Loading

0 comments on commit 4271c9f

Please sign in to comment.