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 kvikrambhat committed Apr 28, 2022
1 parent f063505 commit d74e97e
Show file tree
Hide file tree
Showing 13 changed files with 1,347 additions and 1,295 deletions.
99 changes: 53 additions & 46 deletions src/app/tests/suites/certification/Test_TC_DD_1_11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,60 +12,67 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: 3.1.11. [TC-DD-1.11] Concatenation - QR Code Onboarding Payload Verification [DUT - Commissioner]
name:
3.1.11. [TC-DD-1.11] Concatenation - QR Code Onboarding Payload Verification
[DUT - Commissioner]
config:
nodeId: '0x12344321'
nodeId: "0x12344321"
cluster: "Basic"
endpoint: 0
tests:
- label: 'Test Step'
verification: |
Chip-tool Verification Steps
disabled: true
- label: 'If (PICS_DT_CTRL_CONCATENATED_QR_CODE_1), scan larger QR code that will support the commissioning
of all the devices'
verification: |+
"sudo ./chip-all-clusters-app
- label: "Test Step"
verification: |
Chip-tool Verification Steps
disabled: true
- label:
"If (PICS_DT_CTRL_CONCATENATED_QR_CODE_1), scan larger QR code that
will support the commissioning of all the devices"
verification: |+
"sudo ./chip-all-clusters-app
[1646286638.375844][11651:11651] CHIP:DL: Device Configuration:
[1646286638.375960][11651:11651] CHIP:DL: Serial Number: TEST_SN
[1646286638.376016][11651:11651] CHIP:DL: Vendor Id: 65521 (0xFFF1)
[1646286638.376066][11651:11651] CHIP:DL: Product Id: 32769 (0x8001)
[1646286638.376153][11651:11651] CHIP:DL: Hardware Version: 0
[1646286638.377458][11651:11651] CHIP:DL: Setup Pin Code: 20202021
[1646286638.377541][11651:11651] CHIP:DL: Setup Discriminator: 3840 (0xF00)
[1646286638.377611][11651:11651] CHIP:DL: Manufacturing Date: (not set)
[1646286638.377664][11651:11651] CHIP:DL: Device Type: 65535 (0xFFFF)
[1646286638.377771][11651:11651] CHIP:SVR: SetupQRCode: [MT:-24J042C00KA0648G00]
[1646286638.377865][11651:11651] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code:
[1646286638.377915][11651:11651] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00
[1646286638.377986][11651:11651] CHIP:SVR: Manual pairing code: [34970112332]
[1646286638.378089][11651:11651] CHIP:SVR: Long manual pairing code: [749701123365521327694]
[1646286638.375844][11651:11651] CHIP:DL: Device Configuration:
[1646286638.375960][11651:11651] CHIP:DL: Serial Number: TEST_SN
[1646286638.376016][11651:11651] CHIP:DL: Vendor Id: 65521 (0xFFF1)
[1646286638.376066][11651:11651] CHIP:DL: Product Id: 32769 (0x8001)
[1646286638.376153][11651:11651] CHIP:DL: Hardware Version: 0
[1646286638.377458][11651:11651] CHIP:DL: Setup Pin Code: 20202021
[1646286638.377541][11651:11651] CHIP:DL: Setup Discriminator: 3840 (0xF00)
[1646286638.377611][11651:11651] CHIP:DL: Manufacturing Date: (not set)
[1646286638.377664][11651:11651] CHIP:DL: Device Type: 65535 (0xFFFF)
[1646286638.377771][11651:11651] CHIP:SVR: SetupQRCode: [MT:-24J042C00KA0648G00]
[1646286638.377865][11651:11651] CHIP:SVR: Copy/paste the below URL in a browser to see the QR Code:
[1646286638.377915][11651:11651] CHIP:SVR: https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00
[1646286638.377986][11651:11651] CHIP:SVR: Manual pairing code: [34970112332]
[1646286638.378089][11651:11651] CHIP:SVR: Long manual pairing code: [749701123365521327694]
./chip-tool payload parse-setup-payload MT:-24J042C00KA0648G00
[1646287790.029238][8190:8190] CHIP:SPL: Parsing base38Representation: MT:-24J042C00KA0648G00
[1646287790.029368][8190:8190] CHIP:SPL: CommissioningFlow: 0
[1646287790.029393][8190:8190] CHIP:SPL: VendorID: 65521
[1646287790.029413][8190:8190] CHIP:SPL: Version: 0
[1646287790.029432][8190:8190] CHIP:SPL: ProductID: 32769
[1646287790.029451][8190:8190] CHIP:SPL: Discriminator: 3840
[1646287790.029469][8190:8190] CHIP:SPL: SetUpPINCode: 20202021
[1646287790.029488][8190:8190] CHIP:SPL: RendezvousInformation: 2
./chip-tool payload parse-setup-payload MT:-24J042C00KA0648G00
[1646287790.029238][8190:8190] CHIP:SPL: Parsing base38Representation: MT:-24J042C00KA0648G00
[1646287790.029368][8190:8190] CHIP:SPL: CommissioningFlow: 0
[1646287790.029393][8190:8190] CHIP:SPL: VendorID: 65521
[1646287790.029413][8190:8190] CHIP:SPL: Version: 0
[1646287790.029432][8190:8190] CHIP:SPL: ProductID: 32769
[1646287790.029451][8190:8190] CHIP:SPL: Discriminator: 3840
[1646287790.029469][8190:8190] CHIP:SPL: SetUpPINCode: 20202021
[1646287790.029488][8190:8190] CHIP:SPL: RendezvousInformation: 2
disabled: true
- label: 'If (PICS_DT_CTRL_CONCATENATED_QR_CODE_1)'
verification: |
Vendor specific field testcase
disabled: true
- label: 'If !(PICS_DT_CTRL_CONCATENATED_QR_CODE_1) && PICS_DT_CTRL_CONCATENATED_QR_CODE_2'
verification: |
Vendor specific field testcase
disabled: true
- label: 'If !(PICS_DT_CTRL_CONCATENATED_QR_CODE_1) && !(PICS_DT_CTRL_CONCATENATED_QR_CODE_2)'
verification: |
Vendor specific field testcase
disabled: true
disabled: true
- label: "If (PICS_DT_CTRL_CONCATENATED_QR_CODE_1)"
verification: |
Vendor specific field testcase
disabled: true
- label:
"If !(PICS_DT_CTRL_CONCATENATED_QR_CODE_1) &&
PICS_DT_CTRL_CONCATENATED_QR_CODE_2"
verification: |
Vendor specific field testcase
disabled: true
- label:
"If !(PICS_DT_CTRL_CONCATENATED_QR_CODE_1) &&
!(PICS_DT_CTRL_CONCATENATED_QR_CODE_2)"
verification: |
Vendor specific field testcase
disabled: true
150 changes: 76 additions & 74 deletions src/app/tests/suites/certification/Test_TC_DD_1_12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,84 +14,86 @@

name: 3.1.12. [TC-DD-1.12] Onboarding Payload Verification - Custom Flow = 0
config:
nodeId: '0x12344321'
nodeId: "0x12344321"
cluster: "Basic"
endpoint: 0
tests:
- label: 'Test Step'
verification: |
Chip-tool Verification Steps
disabled: true
- label: 'Scan the DUTs QR code using a QR code reader'
verification: |
1. Get the QR code from the DUT
16-MacBook-Pro:connectedhomeip liam$ ./out/lighting-app/chip-lighting-app
[1641836544619] [16162:695667] CHIP: [DL] _Init
[1641836544619] [16162:695667] CHIP: [DL] Device Configuration:
[1641836544619] [16162:695667] CHIP: [DL] Serial Number: TEST_SN
[1641836544619] [16162:695667] CHIP: [DL] Vendor Id: 9050 (0x235A)
[1641836544619] [16162:695667] CHIP: [DL] Product Id: 65279 (0xFEFF)
[1641836544619] [16162:695667] CHIP: [DL] Hardware Version: 0
[1641836544619] [16162:695667] CHIP: [DL] Setup Pin Code: 20202021
[1641836544619] [16162:695667] CHIP: [DL] Setup Discriminator: 3840 (0xF00)
[1641836544619] [16162:695667] CHIP: [DL] Manufacturing Date: (not set)
[1641836544619] [16162:695667] CHIP: [DL] Device Type: 257 (0x101)
[1641836544619] [16162:695667] CHIP: [SVR] SetupQRCode: [MT:YNJV7VSC00KA0648G00]
[1641836544619] [16162:695667] CHIP: [SVR] Copy/paste the below URL in a browser to see the QR Code:
[1641836544619] [16162:695667] CHIP: [SVR] https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3AYNJV7VSC00KA0648G00
[1641836544619] [16162:695667] CHIP: [SVR] Manual pairing code: [34970112332]
- label: "Test Step"
verification: |
Chip-tool Verification Steps
disabled: true
- label: "Scan the DUTs QR code using a QR code reader"
verification: |
1. Get the QR code from the DUT
16-MacBook-Pro:connectedhomeip liam$ ./out/lighting-app/chip-lighting-app
[1641836544619] [16162:695667] CHIP: [DL] _Init
[1641836544619] [16162:695667] CHIP: [DL] Device Configuration:
[1641836544619] [16162:695667] CHIP: [DL] Serial Number: TEST_SN
[1641836544619] [16162:695667] CHIP: [DL] Vendor Id: 9050 (0x235A)
[1641836544619] [16162:695667] CHIP: [DL] Product Id: 65279 (0xFEFF)
[1641836544619] [16162:695667] CHIP: [DL] Hardware Version: 0
[1641836544619] [16162:695667] CHIP: [DL] Setup Pin Code: 20202021
[1641836544619] [16162:695667] CHIP: [DL] Setup Discriminator: 3840 (0xF00)
[1641836544619] [16162:695667] CHIP: [DL] Manufacturing Date: (not set)
[1641836544619] [16162:695667] CHIP: [DL] Device Type: 257 (0x101)
[1641836544619] [16162:695667] CHIP: [SVR] SetupQRCode: [MT:YNJV7VSC00KA0648G00]
[1641836544619] [16162:695667] CHIP: [SVR] Copy/paste the below URL in a browser to see the QR Code:
[1641836544619] [16162:695667] CHIP: [SVR] https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3AYNJV7VSC00KA0648G00
[1641836544619] [16162:695667] CHIP: [SVR] Manual pairing code: [34970112332]
2. Parse the DUT's QR Code using the TH commissioner: chip-tool
16-MacBook-Pro:connectedhomeip liam$ ./examples/chip-tool/out/debug/chip-tool payload parse-setup-payload MT:YNJV7VSC00KA0648G00
[1641836844939] [16334:698889] CHIP: [SPL] Parsing base38Representation: MT:YNJV7VSC00KA0648G00
[1641836844940] [16334:698889] CHIP: [SPL] CommissioningFlow: 0
[1641836844940] [16334:698889] CHIP: [SPL] VendorID: 9050
[1641836844940] [16334:698889] CHIP: [SPL] Version: 0
[1641836844940] [16334:698889] CHIP: [SPL] ProductID: 65279
[1641836844940] [16334:698889] CHIP: [SPL] Discriminator: 3840
[1641836844940] [16334:698889] CHIP: [SPL] SetUpPINCode: 20202021
[1641836844940] [16334:698889] CHIP: [SPL] RendezvousInformation: 2
disabled: true
- label: 'Verify Custom payload support'
verification: |
1. Custom Flow bit in the Onboarding Payload QR Code is set to 0 (Standard Flow)
2. Parse the DUT's QR Code using the TH commissioner: chip-tool
16-MacBook-Pro:connectedhomeip liam$ ./examples/chip-tool/out/debug/chip-tool payload parse-setup-payload MT:YNJV7VSC00KA0648G00
[1641836844939] [16334:698889] CHIP: [SPL] Parsing base38Representation: MT:YNJV7VSC00KA0648G00
[1641836844940] [16334:698889] CHIP: [SPL] CommissioningFlow: 0
[1641836844940] [16334:698889] CHIP: [SPL] VendorID: 9050
[1641836844940] [16334:698889] CHIP: [SPL] Version: 0
[1641836844940] [16334:698889] CHIP: [SPL] ProductID: 65279
[1641836844940] [16334:698889] CHIP: [SPL] Discriminator: 3840
[1641836844940] [16334:698889] CHIP: [SPL] SetUpPINCode: 20202021
[1641836844940] [16334:698889] CHIP: [SPL] RendezvousInformation: 2
disabled: true
- label: "Verify Custom payload support"
verification: |
1. Custom Flow bit in the Onboarding Payload QR Code is set to 0 (Standard Flow)
16-MacBook-Pro:connectedhomeip liam$ ./examples/chip-tool/out/debug/chip-tool payload parse-setup-payload MT:YNJV7VSC00KA0648G00
[1641836844939] [16334:698889] CHIP: [SPL] Parsing base38Representation: MT:YNJV7VSC00KA0648G00
[1641836844940] [16334:698889] CHIP: [SPL] CommissioningFlow: 0
[1641836844940] [16334:698889] CHIP: [SPL] VendorID: 9050
[1641836844940] [16334:698889] CHIP: [SPL] Version: 0
[1641836844940] [16334:698889] CHIP: [SPL] ProductID: 65279
[1641836844940] [16334:698889] CHIP: [SPL] Discriminator: 3840
[1641836844940] [16334:698889] CHIP: [SPL] SetUpPINCode: 20202021
[1641836844940] [16334:698889] CHIP: [SPL] RendezvousInformation: 2
disabled: true
- label: 'if custom flow bit in step 2 is equal to 0 (Standard flow), reboot the device'
verification: |
1. Reboot the DUT
2. Verfy that the DUT enters commissioningmode upon power up
16-MacBook-Pro:connectedhomeip liam$ ./examples/chip-tool/out/debug/chip-tool payload parse-setup-payload MT:YNJV7VSC00KA0648G00
[1641836844939] [16334:698889] CHIP: [SPL] Parsing base38Representation: MT:YNJV7VSC00KA0648G00
[1641836844940] [16334:698889] CHIP: [SPL] CommissioningFlow: 0
[1641836844940] [16334:698889] CHIP: [SPL] VendorID: 9050
[1641836844940] [16334:698889] CHIP: [SPL] Version: 0
[1641836844940] [16334:698889] CHIP: [SPL] ProductID: 65279
[1641836844940] [16334:698889] CHIP: [SPL] Discriminator: 3840
[1641836844940] [16334:698889] CHIP: [SPL] SetUpPINCode: 20202021
[1641836844940] [16334:698889] CHIP: [SPL] RendezvousInformation: 2
disabled: true
- label:
"if custom flow bit in step 2 is equal to 0 (Standard flow), reboot
the device"
verification: |
1. Reboot the DUT
2. Verfy that the DUT enters commissioningmode upon power up
[1641836544690] [16162:695667] CHIP: [DL] Device Configuration:
[1641836544690] [16162:695667] CHIP: [DL] Serial Number: TEST_SN
[1641836544690] [16162:695667] CHIP: [DL] Vendor Id: 9050 (0x235A)
[1641836544690] [16162:695667] CHIP: [DL] Product Id: 65279 (0xFEFF)
[1641836544690] [16162:695667] CHIP: [DL] Hardware Version: 0
[1641836544690] [16162:695667] CHIP: [DL] Setup Pin Code: 20202021
[1641836544690] [16162:695667] CHIP: [DL] Setup Discriminator: 3840 (0xF00)
[1641836544690] [16162:695667] CHIP: [DL] Manufacturing Date: (not set)
[1641836544690] [16162:695667] CHIP: [DL] Device Type: 257 (0x101)
[1641836544690] [16162:695667] CHIP: [SVR] SetupQRCode: [MT:YNJV7VSC00KA0648G00]
[1641836544690] [16162:695667] CHIP: [SVR] Copy/paste the below URL in a browser to see the QR Code:
[1641836544690] [16162:695667] CHIP: [SVR] https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3AYNJV7VSC00KA0648G00
[1641836544690] [16162:695667] CHIP: [SVR] Manual pairing code: [34970112332]
[1641836544690] [16162:695684] CHIP: [DL] _OnPlatformEvent
[1641836544690] [16162:695684] CHIP: [DIS] DNS-SD StartServer mode=0
[1641836544690] [16162:695684] CHIP: [DIS] Failed to find a valid admin pairing. Node ID unknown
[1641836544690] [16162:695684] CHIP: [DIS] Start dns-sd server - no current nodeId
[1641836544690] [16162:695684] CHIP: [DL] Using wifi MAC for hostname
[1641836544690] [16162:695684] CHIP: [DIS] Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/15
[1641836544690] [16162:695684] CHIP: [DL] Publishing service D920ECCFF905179B on port 5540 with type: _matterc._udp,_V9050,_T257,_S15,_L3840,_CM on interface id: 0
[1641836544690] [16162:695684] CHIP: [DIS] Scheduling Discovery timeout in secs=900
[1641836545360] [16162:695684] CHIP: [DL] Mdns: OnRegister name: D920ECCFF905179B, type: _matterc._udp., domain: local., flags: 2
disabled: true
[1641836544690] [16162:695667] CHIP: [DL] Device Configuration:
[1641836544690] [16162:695667] CHIP: [DL] Serial Number: TEST_SN
[1641836544690] [16162:695667] CHIP: [DL] Vendor Id: 9050 (0x235A)
[1641836544690] [16162:695667] CHIP: [DL] Product Id: 65279 (0xFEFF)
[1641836544690] [16162:695667] CHIP: [DL] Hardware Version: 0
[1641836544690] [16162:695667] CHIP: [DL] Setup Pin Code: 20202021
[1641836544690] [16162:695667] CHIP: [DL] Setup Discriminator: 3840 (0xF00)
[1641836544690] [16162:695667] CHIP: [DL] Manufacturing Date: (not set)
[1641836544690] [16162:695667] CHIP: [DL] Device Type: 257 (0x101)
[1641836544690] [16162:695667] CHIP: [SVR] SetupQRCode: [MT:YNJV7VSC00KA0648G00]
[1641836544690] [16162:695667] CHIP: [SVR] Copy/paste the below URL in a browser to see the QR Code:
[1641836544690] [16162:695667] CHIP: [SVR] https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3AYNJV7VSC00KA0648G00
[1641836544690] [16162:695667] CHIP: [SVR] Manual pairing code: [34970112332]
[1641836544690] [16162:695684] CHIP: [DL] _OnPlatformEvent
[1641836544690] [16162:695684] CHIP: [DIS] DNS-SD StartServer mode=0
[1641836544690] [16162:695684] CHIP: [DIS] Failed to find a valid admin pairing. Node ID unknown
[1641836544690] [16162:695684] CHIP: [DIS] Start dns-sd server - no current nodeId
[1641836544690] [16162:695684] CHIP: [DL] Using wifi MAC for hostname
[1641836544690] [16162:695684] CHIP: [DIS] Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/15
[1641836544690] [16162:695684] CHIP: [DL] Publishing service D920ECCFF905179B on port 5540 with type: _matterc._udp,_V9050,_T257,_S15,_L3840,_CM on interface id: 0
[1641836544690] [16162:695684] CHIP: [DIS] Scheduling Discovery timeout in secs=900
[1641836545360] [16162:695684] CHIP: [DL] Mdns: OnRegister name: D920ECCFF905179B, type: _matterc._udp., domain: local., flags: 2
disabled: true
Loading

0 comments on commit d74e97e

Please sign in to comment.