Skip to content

Commit

Permalink
Modified scripts Mar 24 (#25813)
Browse files Browse the repository at this point in the history
* Modified scripts
TC-I-3.1
Fixes issue 750
TC-OPCREDS-3.2

* Restyled by whitespace

---------

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
manjunath-grl and restyled-commits authored Mar 24, 2023
1 parent 8ec4cbe commit 320da37
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 61 deletions.
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_I_3_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# 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: 59.3.1 [TC-I-3.1] Attributes with client as DUT"
name: 59.3.1 [TC-I-3.1] Attributes with client as DUT

PICS:
- I.C
Expand Down
100 changes: 40 additions & 60 deletions src/app/tests/suites/certification/Test_TC_OPCREDS_3_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,38 +54,44 @@ tests:
Verify the FabricIndex value during commissioning in TH Log
[1673248033.753372][1706:1708] CHIP:DMG: ICR moving to [AwaitingDe]
[1673248033.754759][1706:1708] CHIP:DL: Avahi resolve found
[1673248033.754878][1706:1708] CHIP:DIS: Node ID resolved for D6EE9064A90A31E6:0000000000000001
[1673248033.754936][1706:1708] CHIP:DIS: Hostname: E45F010EBE370000
[1673248033.755001][1706:1708] CHIP:DIS: IP Address #1: fe80::e65f:1ff:fe0e:be36
[1673248033.755058][1706:1708] CHIP:DIS: Port: 5540
[1673248033.755112][1706:1708] CHIP:DIS: Mrp Interval idle: not present
[1673248033.755165][1706:1708] CHIP:DIS: Mrp Interval active: not present
[1673248033.755220][1706:1708] CHIP:DIS: TCP Supported: 1
[1673248033.755389][1706:1708] CHIP:DIS: UDP:[fe80::e65f:1ff:fe0e:be36%eth0]:5540: new best score: 3
[1673248033.755415][1706:1708] CHIP:DIS: Checking node lookup status after 4 ms
[1673248033.755435][1706:1708] CHIP:DIS: Keeping DNSSD lookup active
[1673248033.951604][1706:1708] CHIP:DIS: Checking node lookup status after 200 ms
[1673248033.951885][1706:1708] CHIP:DIS: OperationalSessionSetup[1:0000000000000001]: Updating device address to UDP:[fe80::e65f:1ff:fe0e:be36%eth0]:5540 while in state 2
[1673248033.951950][1706:1708] CHIP:CTL: OperationalSessionSetup[1:0000000000000001]: State change 2 --> 3
[1673248033.952156][1706:1708] CHIP:IN: SecureSession[0xffffa803fa40]: Allocated Type:2 LSID:14065
[1673248033.952247][1706:1708] CHIP:SC: Initiating session on local FabricIndex 1 from 0x000000000001B669 -> 0x0000000000000001
[1673248033.954558][1706:1708] CHIP:EM: <<< [E:44273i M:220413667] (U) Msg TX to 0:0000000000000000 [0000] --- Type 0000:30 (SecureChannel:CASE_Sigma1)
[1673248033.954856][1706:1708] CHIP:IN: (U) Sending msg 220413667 to IP address 'UDP:[fe80::e65f:1ff:fe0e:be36%eth0]:5540'
[1673248033.955496][1706:1708] CHIP:DMG: >> to UDP:[fe80::e65f:1ff:fe0e:be36%eth0]:5540 | 220413667 | [Secure Channel (0) / Certificate Authenticated Session Establishment Sigma '1' (0x30) / Session = 0 / Exchange = 44273]
[1673248033.955587][1706:1708] CHIP:DMG: Header Flags =
[1673248033.955640][1706:1708] CHIP:DMG: {
[1673248033.955707][1706:1708] CHIP:DMG: Message (0x04) =
[1673248033.955760][1706:1708] CHIP:DMG: {
[1673248033.955815][1706:1708] CHIP:DMG: SourceNodeId = CC96A28E0D07DB60
[1673248033.955866][1706:1708] CHIP:DMG: }
[1673248033.955936][1706:1708] CHIP:DMG: Exchange (0x05) =
[1673248033.955987][1706:1708] CHIP:DMG: {
[1673248033.956032][1706:1708] CHIP:DMG: Initiator = true
[1673248033.956083][1706:1708] CHIP:DMG: NeedsAck = true
[1673248033.956133][1706:1708] CHIP:DMG: }
[1673248033.956197][1706:1708] CHIP:DMG: }
[1679562607.575771][126855:126857] CHIP:DMG: }
[1679562607.575776][126855:126857] CHIP:DMG:
[1679562607.575833][126855:126857] CHIP:DMG: NOCValue (241) =
[1679562607.575852][126855:126857] CHIP:DMG: {
FTABAQEkAgE3AyQTAhgmBIAigScmBYAlTTo3BiQVASQRARgkBwEkCAEwCUEECq7oyCv/0OLZ4DyFaO6+SuXasHNJcvBFGJcsjh7K/OU92vFP6+dVfa72+vn0Bj2zE2yEB/xGY6firv0ccIYCaDcKNQEoARgkAgE2AwQCBAEYMAQUyGYyV+0qHvlilDYdFF5//OTDeCcwBRSTcEvTAX3+cztsuvoZoqtHd61F3BgwC0BOygoI269loXpAssEaxpMPqplxS9GHmVhY04u/WVsNODFSFnzgBMd4Bd4yl75UoEIYkQ9SNMbuE6wMidFO1b8OGA==
[1679562607.575866][126855:126857] CHIP:DMG: }
[1679562607.575872][126855:126857] CHIP:DMG:
[1679562607.575878][126855:126857] CHIP:DMG: ICACValue (231) =
[1679562607.575893][126855:126857] CHIP:DMG: {
FTABAQEkAgE3AyQUARgmBIAigScmBYAlTTo3BiQTAhgkBwEkCAEwCUEE9/MhX0otpexJN0+X1TLOLaojJWg4sd+DU6GaVBPRmauhGVxJSCocNTl86dugdU9BNSyZ4YKvzTFNi9ahXKwboDcKNQEpARgkAmAwBBSTcEvTAX3+cztsuvoZoqtHd61F3DAFFOA5rOqBb2KMCwcU5FTt/zF2IvMBGDALQEUmrbTN1Y4du9eHicbE5iKphxlrBRyscULxD/ZfaWyN38XuXZKOGdkGhfLL1tYLjhc7wVd9mLLl3RtNJEUDBtgY
[1679562607.575908][126855:126857] CHIP:DMG: }
[1679562607.575914][126855:126857] CHIP:DMG:
[1679562607.575930][126855:126857] CHIP:DMG: InvokeRequestMessage =
[1679562607.575937][126855:126857] CHIP:DMG: {
[1679562607.575944][126855:126857] CHIP:DMG: suppressResponse = false,
[1679562607.575952][126855:126857] CHIP:DMG: timedRequest = false,
[1679562607.575958][126855:126857] CHIP:DMG: InvokeRequests =
[1679562607.575971][126855:126857] CHIP:DMG: [
[1679562607.575978][126855:126857] CHIP:DMG: CommandDataIB =
[1679562607.575987][126855:126857] CHIP:DMG: {
[1679562607.575993][126855:126857] CHIP:DMG: CommandPathIB =
[1679562607.576002][126855:126857] CHIP:DMG: {
[1679562607.576011][126855:126857] CHIP:DMG: EndpointId = 0x0,
[1679562607.576020][126855:126857] CHIP:DMG: ClusterId = 0x3e,
[1679562607.576028][126855:126857] CHIP:DMG: CommandId = 0x6,
[1679562607.576039][126855:126857] CHIP:DMG: },
[1679562607.576048][126855:126857] CHIP:DMG:
[1679562607.576055][126855:126857] CHIP:DMG: CommandFields =
[1679562607.576065][126855:126857] CHIP:DMG: {
[1679562607.576074][126855:126857] CHIP:DMG: 0x0 = [
[1679562607.576127][126855:126857] CHIP:DMG: 0x15, 0x30, 0x1, 0x1, 0x1, 0x24, 0x2, 0x1, 0x37, 0x3, 0x24, 0x13, 0x1, 0x18, 0x26, 0x4, 0x80, 0x22, 0x81, 0x27, 0x26, 0x5, 0x80, 0x25, 0x4d, 0x3a, 0x37, 0x6, 0x24, 0x15, 0x1, 0x24, 0x11, 0x1, 0x18, 0x24, 0x7, 0x1, 0x24, 0x8, 0x1, 0x30, 0x9, 0x41, 0x4, 0x94, 0x5b, 0xb6, 0xd3, 0x14, 0x0, 0x45, 0x35, 0xf0, 0x64, 0x25, 0x7d, 0xb7, 0x8a, 0x56, 0x9d, 0x5, 0x0, 0x56, 0xec, 0xbc, 0xa9, 0xb5, 0xdc, 0xfa, 0xa4, 0x93, 0x28, 0x14, 0x1d, 0x7, 0x3a, 0xc9, 0x7d, 0x1c, 0x9d, 0x21, 0x56, 0xf4, 0xec, 0xc8, 0x7d, 0x3c, 0x87, 0x6f, 0x51, 0xa3, 0x65, 0x89, 0x92, 0x4d, 0xcf, 0xd9, 0x11, 0x71, 0xab, 0x4e, 0x99, 0xcb, 0x90, 0x72, 0xb5, 0x45, 0xa9, 0x37, 0xa, 0x35, 0x1, 0x28, 0x1, 0x18, 0x24, 0x2, 0x1, 0x36, 0x3, 0x4, 0x2, 0x4, 0x1, 0x18, 0x30, 0x4, 0x14, 0xf2, 0x2d, 0x91, 0xb, 0xf2, 0xb1, 0xce, 0xdb, 0x60, 0x10, 0x23, 0x97, 0x31, 0xfd, 0x43, 0xc4, 0x40, 0x46, 0x5a, 0x99, 0x30, 0x5, 0x14, 0xf9, 0x94, 0xad, 0x9e, 0x2b, 0x0, 0x6b, 0xa9, 0xc1, 0x27, 0x6d, 0x20, 0xcb, 0x27, 0xa4, 0xf1, 0x21, 0x2b, 0xc9, 0x8b, 0x18, 0x30, 0xb, 0x40, 0xa1, 0xd2, 0x49, 0x5c, 0xa, 0xc1, 0x58, 0x12, 0x71, 0xd, 0x1a, 0x37, 0xe4, 0x7b, 0x3d, 0xbd, 0x19, 0xe, 0xe8, 0x86, 0xa8, 0x49, 0x4, 0x8, 0x7b, 0x20, 0x94, 0xfa, 0x21, 0xe8, 0x5b, 0xbf, 0x58, 0xc, 0x7d, 0x93, 0x4b, 0x89, 0x88, 0x78, 0xeb, 0xf2, 0x9, 0xf9, 0x3e, 0x6, 0xf7, 0x85, 0xbe, 0xa2, 0xa1, 0xf, 0xc8, 0x40, 0x64, 0xd5, 0xdf, 0x97, 0x6f, 0xef, 0x2c, 0xad, 0xbc, 0xcc, 0x18,
[1679562607.576155][126855:126857] CHIP:DMG: ] (241 bytes)
disabled: true

- label: "Save TH1s Fabric ID as FabricID1"
Expand All @@ -99,7 +105,7 @@ tests:
verification: |
To commission DUT to TH2 follow below procedure
./chip-tool pairing open-commissioning-window 1 1 400 2000 3841 on TH
./chip-tool pairing open-commissioning-window 1 1 400 2000 3841
Verify in TH2 Log:
Expand All @@ -114,48 +120,22 @@ tests:
2. On 2nd controller, using chip-tool connect using manual code.
Below is the example when using chip tool as controller (considering 35998938564 as the manual code generated by 1st controller)
./chip-tool pairing code 2 35407541839
./chip-tool pairing code 2 35407541839 --commissioner-name beta
Verify whether you got below message in the log of TH
Device commissioning completed with success
After commissioning DUT to TH2's fabric read nocs
Verify the FabricIndex value during commissioning in TH2 Log
[1673249259.162869][1742:1744] CHIP:CTL: Commissioning stage next step: 'SendNOC' -> 'FindOperational'
[1673249259.162916][1742:1744] CHIP:CTL: Performing next commissioning step 'FindOperational'
[1673249259.162950][1742:1744] CHIP:CSM: FindOrEstablishSession: PeerId = [2:0000000000000002]
[1673249259.162984][1742:1744] CHIP:CSM: FindOrEstablishSession: No existing OperationalSessionSetup instance found
[1673249259.163030][1742:1744] CHIP:CTL: OperationalSessionSetup[2:0000000000000002]: State change 1 --> 2
[1673249259.163074][1742:1744] CHIP:DIS: Resolving 7046DDD750FF6301:0000000000000002 ...
[1673249259.164602][1742:1744] CHIP:DMG: ICR moving to [AwaitingDe]
[1673249259.164784][1742:1744] CHIP:EM: <<< [E:13994i M:120277250 (Ack:159284401)] (S) Msg TX to 0:FFFFFFFB00000000 [0000] --- Type 0000:10 (SecureChannel:StandaloneAck)
[1673249259.164846][1742:1744] CHIP:IN: (S) Sending msg 120277250 on secure session with LSID: 60038
[1673249259.165004][1742:1744] CHIP:EM: Flushed pending ack for MessageCounter:159284401 on exchange 13994i
[1673249259.165571][1742:1744] CHIP:DL: Avahi resolve found
[1673249259.165678][1742:1744] CHIP:DIS: Node ID resolved for 7046DDD750FF6301:0000000000000002
[1673249259.165717][1742:1744] CHIP:DIS: Hostname: E45F010EBE370000
[1673249259.165760][1742:1744] CHIP:DIS: IP Address #1: fe80::e65f:1ff:fe0e:be37
[1673249259.165797][1742:1744] CHIP:DIS: Port: 5540
[1673249259.165832][1742:1744] CHIP:DIS: Mrp Interval idle: not present
[1673249259.165868][1742:1744] CHIP:DIS: Mrp Interval active: not present
[1673249259.165903][1742:1744] CHIP:DIS: TCP Supported: 1
[1673249259.166085][1742:1744] CHIP:DIS: UDP:[fe80::e65f:1ff:fe0e:be37%eth0]:5540: new best score: 3
[1673249259.166126][1742:1744] CHIP:DIS: Checking node lookup status after 3 ms
[1673249259.166158][1742:1744] CHIP:DIS: Keeping DNSSD lookup active
[1673249259.362947][1742:1744] CHIP:DIS: Checking node lookup status after 200 ms
[1673249259.363205][1742:1744] CHIP:DIS: OperationalSessionSetup[2:0000000000000002]: Updating device address to UDP:[fe80::e65f:1ff:fe0e:be37%eth0]:5540 while in state 2
[1673249259.363267][1742:1744] CHIP:CTL: OperationalSessionSetup[2:0000000000000002]: State change 2 --> 3
[1673249259.363467][1742:1744] CHIP:IN: SecureSession[0xffff98011400]: Allocated Type:2 LSID:60039
[1673249259.363558][1742:1744] CHIP:SC: Initiating session on local FabricIndex 2 from 0x000000000001B669 -> 0x0000000000000002
[1673249259.365555][1742:1744] CHIP:EM: <<< [E:13995i M:219921998] (U) Msg TX to 0:0000000000000000 [0000] --- Type 0000:30 (SecureChannel:CASE_Sigma1)
[1673249259.365924][1742:1744] CHIP:IN: (U) Sending msg 219921998 to IP address 'UDP:[fe80::e65f:1ff:fe0e:be37%eth0]:5540'
[1673249259.366260][1742:1744] CHIP:SC: Sent Sigma1 msg
[1673249259.366326][1742:1744] CHIP:CTL: OperationalSessionSetup[2:0000000000000002]: State change 3 --> 4
[1673249259.439277][1742:1744] CHIP:EM: >>> [E:13995i M:53416131 (Ack:219921998)] (U) Msg RX from 0:0000000000000000 [0000] --- Type 0000:31 (SecureChannel:CASE_Sigma2)
[1673249259.439370][1742:1744] CHIP:EM: Found matching exchange: 13995i, Delegate: 0xffff9803b498
[1673249259.439446][1742:1744] CHIP:EM: Rxd Ack; Removing MessageCounter:219921998 from Retrans Table on exchange 13995i
[1673249259.439525][1742:1744] CHIP:SC: Received Sigma2 msg
disabled: true

- label: "Save TH2s Fabric ID as FabricID2"
Expand Down Expand Up @@ -316,7 +296,7 @@ tests:

- label: "From TH2 read the CurrentFabricIndex"
verification: |
./chip-tool operationalcredentials read current-fabric-index 2 0
./chip-tool operationalcredentials read current-fabric-index 2 0 --commissioner-name beta
Verify current fabric index in TH2 Log
Expand All @@ -334,7 +314,7 @@ tests:
"From TH2 read the entire NOCs List attribute with a
non-fabric-filtered read"
verification: |
./chip-tool operationalcredentials read nocs 2 0
./chip-tool operationalcredentials read nocs 2 0 --commissioner-name beta
Verify the NOCs List in TH2 Log
Expand All @@ -352,7 +332,7 @@ tests:
"Verify that there is only data for the entry whose FabricIndex field
is equal to FabricIndex_TH2"
verification: |
./chip-tool operationalcredentials read current-fabric-index 2 0
./chip-tool operationalcredentials read current-fabric-index 2 0 --commissioner-name beta
Verify current fabric index in TH2 Log
Expand All @@ -365,7 +345,7 @@ tests:
"From TH2 read the entire NOCs List attribute with a fabric-filtered
read"
verification: |
./chip-tool operationalcredentials read nocs 2 0 --fabric-filtered 1
./chip-tool operationalcredentials read nocs 2 0 --fabric-filtered 1 --commissioner-name beta
Verify the NOCs List in TH2 Log
Expand Down Expand Up @@ -396,7 +376,7 @@ tests:

- label: "Read NOCStruct values from entry at index 1"
verification: |
./chip-tool operationalcredentials read nocs 2 0
./chip-tool operationalcredentials read nocs 2 0 --commissioner-name beta
Verify FabricIndex = FabricIndex_TH2 in TH2 Log
Expand Down

0 comments on commit 320da37

Please sign in to comment.