Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump third_party/libwebsockets/repo from c57c239 to 457a186 #239

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
107 changes: 107 additions & 0 deletions src/app/tests/suites/certification/TEST_TC_TBRM_2.2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@

# Copyright (c) 2024 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: "[TC-TBRM-2.2] Initial Dataset configuration of Thread Border Router"

PICS:
- TBRM.S

config:
nodeId: 0x12344321
cluster: Thread Border Router Management
endpoint: 1
PIXIT.TBRM.THREAD_ACTIVE_DATASET:
type: octet_string
defaultValue: "hex:0e080000000000010000000300001235060004001fffe002082ad51c02fe8f64f20708fddb8af85255f93a051083e2b9b2cc609b00125adbf823ea2ab20102c4d904100a133626c411d7de02a570ca3c3d80470c0402a0f7f8031054687265616441637469766554657374"
## DATASET VALUE:
# Active Timestamp: 1
# Channel: 18
# Channel Mask: 0x07fff800
# Ext PAN ID: 2ad51c02fe8f64f2
# Mesh Local Prefix: fddb:8af8:5255:f93a::/64
# Network Key: 83e2b9b2cc609b00125adbf823ea2ab2
# Network Name: ThreadActiveTest
# PAN ID: 0xc4d9
# PSKc: 0a133626c411d7de02a570ca3c3d8047
# Security Policy: 672 onrc 0


tests:
# pre-requisis ??
# - label: "Wait for the commissioned device to be retrieved"
# cluster: DelayCommands
# command: WaitForCommissionee
# arguments:
# values:
# - name: nodeId
# value: nodeId

- label: "TH reads the ActiveDatasetTimestamp attribute from the DUT"
command: readAttribute
attribute: ActiveDatasetTimestamp
response:
value: null
constraints:
type: int64u

- label: "TH reads the PendingDatasetTimestamp attribute from the DUT"
command: readAttribute
attribute: PendingDatasetTimestamp
response:
value: null
constraints:
type: int64u

- label: "TH sends an invalid ActiveDatasetRequest command to the DUT"
command: SetActiveDatasetRequest
arguments:
values :
- name: "ActiveDataset"
value: PIXIT.TBRM.THREAD_INVALID_DATASET
response:
error: INVALID_COMMAND

- label: "TH sends a valid ActiveDatasetRequest command to the DUT"
command: SetActiveDatasetRequest
arguments:
values :
- name: "ActiveDataset"
value: PIXIT.TBRM.THREAD_ACTIVE_DATASET
response:
constraints:
contains: [0x00]

- label: "TH reads the InterfaceEnabled attribute from the DUT"
command: readAttribute
attribute: InterfaceEnabled
response:
constraints:
type: boolean
hasValue: true

- label: "TH reads the ActiveDatasetTimestamp attribute from the DUT"
command: readAttribute
attribute: ActiveDatasetTimestamp
response:
constraints:
type: int64u

- label: "TH sends a valid GetActiveDatasetRequest command to the DUT"
command: GetActiveDatasetRequest
response:
constraints:
type: octet_string
hasValue: true
value: PIXIT.TBRM.THREAD_ACTIVE_DATASET
107 changes: 107 additions & 0 deletions src/app/tests/suites/certification/TEST_TC_TBRM_2.3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@

# Copyright (c) 2024 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: "[TC-TBRM-2.3] Change dataset configuration of Thread Border Router"

PICS:
- TBRM.S

config:
nodeId: 0x12344321
cluster: Thread Border Router Management
endpoint: 1
PIXIT.TBRM.THREAD_PENDING_DATASET:
type: octet_string
defaultValue: "hex:0e08000000000001000035060004001fffe002082ad51c02fe8f64f20708fddb8af85255f93a051083e2b9b2cc609b00125adbf823ea2ab20102c4d904100a133626c411d7de02a570ca3c3d80470c0402a0f7f8030d54687265616450656e64696e6734040000dd36000300000c33080000000000010000"
## DATASET VALUE:
# Active Timestamp: 1
# Channel: 12
# Channel Mask: 0x07fff800
# Delay: 60000
# Ext PAN ID: 2ad51c02fe8f64f2
# Mesh Local Prefix: fddb:8af8:5255:f93a::/64
# Network Key: 83e2b9b2cc609b00125adbf823ea2ab2
# Network Name: ThreadPending
# PAN ID: 0xc4d9
# PSKc: 0a133626c411d7de02a570ca3c3d8047
# Security Policy: 672 onrc 0
## The name of the Thread Network anb channel MUST change before 1 min (limited duration to reduce the test time)

tests:
# pre-requisis ??
# - label: "Wait for the commissioned device to be retrieved"
# cluster: DelayCommands
# command: WaitForCommissionee
# arguments:
# values:
# - name: nodeId
# value: nodeId

- label: "TH reads the PendingDatasetTimestamp attribute from the DUT"
command: readAttribute
attribute: PendingDatasetTimestamp
response:
## TODO : do we need to check if the value is null :
# value: null
saveAs: initialPendingTimestamp
constraints:
type: int64u
hasValue: true

- label: "TH sends a SetPendingDatasetRequest command to the DUT"
command: SetPendingDatasetRequest
arguments:
values :
- name: "PendingDataset"
value: PIXIT.TBRM.THREAD_PENDING_DATASET
response:
constraints:
contains: [0x00]

- label: "TH sends a GetPendingDatasetRequest command to the DUT"
command: GetPendingDatasetRequest
response:
constraints:
type: octet_string
hasValue: true
value: PIXIT.TBRM.THREAD_PENDING_DATASET

- label: "TH reads the PendingDatasetTimestamp attribute from the DUT"
command: readAttribute
attribute: PendingDatasetTimestamp
response:
constraints:
type: int16u
hasValue: true
exclude: [initialPendingTimestamp]

- label: "TH subscribes to the ActiveDatasetTimestamp attribute from the DUT"
command: subscribeAttribute
attribute: ActiveDatasetTimestamp
minInterval: 1
maxInterval: 70
# We wait up to 70 seconds (60 sec of delay timer defined in the PIXIT.TBRM.THREAD_PENDING_DATASET + 10 sec of margin)
response:
constraints:
type: boolean
hasValue: true

- label: "TH reads the InterfaceEnabled attribute from the DUT"
command: readAttribute
attribute: InterfaceEnabled
response:
constraints:
type: boolean
hasValue: true
60 changes: 60 additions & 0 deletions src/app/tests/suites/certification/TEST_TC_TBRM_2.4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@

# Copyright (c) 2024 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: "[TC-TBRM-2.4] FAILSAFE_REQUIRED message Validation for SetActiveDatasetRequest"

PICS:
- TBRM.S

config:
nodeId: 0x12344321
cluster: Thread Border Router Management
endpoint: 1
PIXIT.TBRM.THREAD_ACTIVE_DATASET:
type: octet_string
defaultValue: "hex:0e080000000000010000000300001235060004001fffe002082ad51c02fe8f64f20708fddb8af85255f93a051083e2b9b2cc609b00125adbf823ea2ab20102c4d904100a133626c411d7de02a570ca3c3d80470c0402a0f7f8031054687265616441637469766554657374"
## DATASET VALUE:
# Active Timestamp: 1
# Channel: 18
# Channel Mask: 0x07fff800
# Ext PAN ID: 2ad51c02fe8f64f2
# Mesh Local Prefix: fddb:8af8:5255:f93a::/64
# Network Key: 83e2b9b2cc609b00125adbf823ea2ab2
# Network Name: ThreadActiveTest
# PAN ID: 0xc4d9
# PSKc: 0a133626c411d7de02a570ca3c3d8047
# Security Policy: 672 onrc 0

test:
# pre-requisis ??
# - label: "Wait for the commissioned device to be retrieved"
# cluster: DelayCommands
# command: WaitForCommissionee
# arguments:
# values:
# - name: nodeId
# value: nodeId

- label: "TH sends an SetActiveDatasetRequest command to the DUT with ActiveDataset field set to PIXIT.TBRM.THREAD_ACTIVE_DATASET and Breadcrumb field set to 1"
PICS: TBRM.S.C03.Rsp
command: SetActiveDatasetRequest
arguments:
values :
- name: "ActiveDataset"
value: PIXIT.TBRM.THREAD_ACTIVE_DATASET
- name: "Breadcrumb"
value: 1
response:
error: FAILSAFE_REQUIRED
Empty file.