Skip to content

Commit f54e3c8

Browse files
Added DRLK-2.5 and DRLK-2.9 python script (#35201)
* added drlkcluster variable * Delete src/python_testing/TC_DRLK_2_9.py * added DRLK_2.5 python script * Added Script DRLK_2.9 * removed DRLK_2_5 yaml file * removed DRLK_2.9.yaml file * updated DLOG_2_1.yaml * removed redefined command clear user * removed unsed var * removed unused var * Updated TC_DRLK_2_4.yaml script as per test plan * Updated the TC to include PIN, Aliro combination and do Modify credential * Restyled by autopep8 * updated PICS * Appended steps to check modify of both PIN and Aliro credentiaType is as expected * Updated DRLK-2.5 test case as per PR comment 1.correted test step description for step 4,5,6 and 9 2.Corrected steps 5,6 and 9 * Updated DRLK-2.9 1. Corrected test step description 2. Corrected PICS 3. Validated arrtibutes read based on respective range 4. modified get_user function to check for given credentialsirespective to the order of credentials listed * Added nextcredentialIndex check in get_credential_status function * fixed code-lints error * Added generate_max_pincode_len for generating valid pin code of Max pincode length * Restyled by isort * added a check in get_user funtion that length of given Credential list matches with length of response credential list * PR review -Init the pin and rid variables * fixed lint error --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent a831d0a commit f54e3c8

File tree

6 files changed

+1329
-938
lines changed

6 files changed

+1329
-938
lines changed

src/app/tests/suites/certification/Test_TC_DLOG_2_1.yaml

+53-40
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ tests:
3434
Length of TransferFileDesignator is equal to 32 characters
3535
Length of TransferFileDesignator is greater than 32 characters
3636
To send a message that mismatches the current transfer mode
37+
1. Execute the below commands in the interactive mode:
38+
./chip-tool interactive start
39+
2. Before running the below steps ensure that \tmp folder on the system does not contain the below files.
40+
If they are present please delete these files:
41+
TH_LOG_OK_NORMAL : "Length_1234567.txt"
42+
TH_LOG_OK_FULL_LENGTH : "Length_123456789123456789123.txt"
43+
3. Use the below command in the all-cluster-app for setting up the diagonistics logs.
44+
./chip-all-clusters-app --trace_decode 1 --end_user_support_log ~/tmp/end_user_support_log.txt --network_diagnostics_log ~/tmp/nw_log.txt --crash_log ~/tmp/crash_log.txt
45+
The log file content can be set such that the file size can be as follows to obtain different status code from DUT:
46+
1. end_user_support_log > 1024 bytes
47+
2. Make sure that nw_log.txt does not exist
48+
3. crash_log < 1024 bytes
3749
disabled: true
3850

3951
- label: "Step 1: Commission DUT to TH"
@@ -187,7 +199,7 @@ tests:
187199
TH_LOG_OK_NORMAL)"
188200
PICS: MCORE.BDX.Initiator
189201
verification: |
190-
"diagnosticlogs retrieve-logs-request 0 1 1 0 --TransferFileDesignator Length_1234567.txt
202+
diagnosticlogs retrieve-logs-request 0 1 1 0 --TransferFileDesignator Length_1234567.txt
191203
192204
On TH(chip-tool), Verify that the DUT sends SendInit message with TransferFileDesignator field set to Length_1234567891234567891
193205
[1707967645.770994][10882:10885] CHIP:ATM: SendInit
@@ -219,7 +231,7 @@ tests:
219231
by setting Intent field to . NetworkDiag . CrashLogs"
220232
PICS: MCORE.BDX.Initiator
221233
verification: |
222-
"diagnosticlogs retrieve-logs-request 0 0 1 0
234+
diagnosticlogs retrieve-logs-request 0 0 1 0
223235
224236
On TH(chip-tool), Verify that the DUT responds with Success(0) status code for the RetrieveLogsResponse command Verify that LogContent field contains at most 1024 bytes
225237
@@ -254,7 +266,7 @@ tests:
254266
EndUserSupport, RequestedProtocol= BDX)"
255267
PICS: MCORE.BDX.Initiator
256268
verification: |
257-
"diagnosticlogs retrieve-logs-request 0 1 1 0
269+
diagnosticlogs retrieve-logs-request 0 1 1 0
258270
259271
On TH(chip-tool), Verify that the DUT responds with INVALID_COMMAND for the RetrieveLogsRequest that was sent without TransferFileDesignator
260272
@@ -290,7 +302,7 @@ tests:
290302
RequestedProtocol= BDX, TransferFileDesignator = TH_LOG_OK_NORMAL)"
291303
PICS: "!MCORE.BDX.Initiator"
292304
verification: |
293-
"diagnosticlogs retrieve-logs-request 0 1 1 0 --TransferFileDesignator Length_1234567.txt
305+
diagnosticlogs retrieve-logs-request 0 1 1 0 --TransferFileDesignator Length_1234567.txt
294306
295307
On TH(chip-tool), Verify that the DUT responds with Exhausted(1) status code for the RetrieveLogsResponse command with the LogContent field containing at most 1024 bytes
296308
@@ -299,14 +311,40 @@ tests:
299311
[1707979121.749593][7593:7596] CHIP:TOO: logContent: 31353238303033363031313533353030333730303234303030303234303133653234303230313138333530313331303034373032313533313031316230323330383230323137303630393261383634383836663730643031303730326130383230323038333038323032303430323031303333313064333030623036303936303836343830313635303330343032303133303832303137303036303932613836343838366637306430313037303161303832303136313034383230313564313532343030303132353031663166663336303230353030383030353031383030353032383030353033383030353034383030353035383030353036383030353037383030353038383030353039383030353061383030353062383030353063383030353064383030353065383030353066383030353130383030353131383030353132383030353133383030353134383030353135383030353136383030353137383030353138383030353139383030353161383030353162383030353163383030353164383030353165383030353166383030353230383030353231383030353232383030353233383030353234383030353235383030353236383030353237383030353238383030353239383030353261383030353262383030353263383030353264383030353265383030353266383030353330383030353331383030353332383030353333383030353334383030353335383030353336383030353337383030353338383030353339383030353361383030353362383030353363383030353364383030353365383030353366383030353430383030353431383030353432383030353433383030353434383030353435383030353436383030353437383030353438383030353439383030353461383030353462383030353463383030353464383030353465383030353466383030353530383030353531383030353532383030353533383030353534383030353535383030353536383030353537383030353538383030353539383030353561383030353562383030353563383030353564383030353565383030353566383030353630383030353631383030353632383030353633383031383234303331363263303431333433353334313330333033303330333035333537343333303330333033303330326433303330323430353030323430363030323430373031323430383030313833313763333037613032303130333830313466653334336639353939343737363362363165653435333931333133333834393466653637643865333030623036303936303836343830633733653461363039363038363438303630393630383634383036303936303836343830363039363038363438303630393630383634383036303936303836}"
300312
disabled: true
301313

314+
- label:
315+
"Step 11: TH sends RetrieveLogsRequest Command to DUT with Invalid
316+
Intent : RetrieveLogsRequest(Intent = 3, RequestedProtocol= BDX,
317+
TransferFileDesignator = TH_LOG_OK_NORMAL) Repeat this step with
318+
RequestedProtocol as ResponsePayload"
319+
verification: |
320+
diagnosticlogs retrieve-logs-request 3 0 1 0 --TransferFileDesignator Length_1234567.txt
321+
322+
On TH(chip-tool), Verify that the DUT responds with INVALID_COMMAND for the RetrieveLogsRequest that was sent invalid Intent(3)
323+
324+
[1707901794.468552][36124:36127] CHIP:DMG: StatusIB =
325+
[1707901794.468560][36124:36127] CHIP:DMG: {
326+
[1707901794.468569][36124:36127] CHIP:DMG: status = 0x85 (INVALID_COMMAND),
327+
[1707901794.468576][36124:36127] CHIP:DMG: },
328+
[1707901794.468584][36124:36127] CHIP:DMG:
329+
[1707901794.468591][36124:36127] CHIP:DMG: },
330+
331+
Repeat this step by setting RequestedProtocol as ResponsePayload :
332+
333+
diagnosticlogs retrieve-logs-request 3 1 1 0 --TransferFileDesignator Length_1234567.txt
334+
On TH(chip-tool), Verify that the DUT responds with INVALID_COMMAND for the RetrieveLogsRequest that was sent invalid Intent(3)
335+
[1707901794.468552][36124:36127] CHIP:DMG: StatusIB =
336+
[1707901794.468560][36124:36127] CHIP:DMG: {
337+
[1707901794.468569][36124:36127] CHIP:DMG: status = 0x85 (INVALID_COMMAND),
338+
[1707901794.468576][36124:36127] CHIP:DMG: },
339+
disabled: true
340+
302341
- label:
303342
"Step 12: TH sends RetrieveLogsRequest Command to DUT with Invalid
304343
RequestedProtocol : RetrieveLogsRequest(Intent =
305344
EndUserSupport,RequestedProtocol= 2, TransferFileDesignator =
306345
TH_LOG_OK_NORMAL)"
307-
PICS: MCORE.BDX.Initiator
308346
verification: |
309-
"diagnosticlogs retrieve-logs-request 0 2 1 0 --TransferFileDesignator Length_1234567.txt
347+
diagnosticlogs retrieve-logs-request 0 2 1 0 --TransferFileDesignator Length_1234567.txt
310348
311349
On TH(chip-tool), Verify that the DUT responds with INVALID_COMMAND for the RetrieveLogsRequest that was sent Invalid RequestedProtocol(2)
312350
@@ -344,39 +382,14 @@ tests:
344382
TransferFileDesignator length : RetrieveLogsRequest(Intent =
345383
EndUserSupport,RequestedProtocol= BDX, TransferFileDesignator =
346384
TH_LOG_ERROR_EMPTY)"
385+
PICS: MCORE.BDX.Initiator
347386
verification: |
348-
"diagnosticlogs retrieve-logs-request 0 1 1 0 --TransferFileDesignator ''
349-
350-
[1707904517.151453][36678:36681] CHIP:DMG: ICR moving to [ResponseRe]
351-
[1707904517.151489][36678:36681] CHIP:DMG: InvokeResponseMessage =
352-
[1707904517.151501][36678:36681] CHIP:DMG: {
353-
[1707904517.151511][36678:36681] CHIP:DMG: suppressResponse = false,
354-
[1707904517.151522][36678:36681] CHIP:DMG: InvokeResponseIBs =
355-
[1707904517.151541][36678:36681] CHIP:DMG: [
356-
[1707904517.151548][36678:36681] CHIP:DMG: InvokeResponseIB =
357-
[1707904517.151565][36678:36681] CHIP:DMG: {
358-
[1707904517.151573][36678:36681] CHIP:DMG: CommandStatusIB =
359-
[1707904517.151582][36678:36681] CHIP:DMG: {
360-
[1707904517.151590][36678:36681] CHIP:DMG: CommandPathIB =
361-
[1707904517.151599][36678:36681] CHIP:DMG: {
362-
[1707904517.151613][36678:36681] CHIP:DMG: EndpointId = 0x0,
363-
[1707904517.151627][36678:36681] CHIP:DMG: ClusterId = 0x32,
364-
[1707904517.151640][36678:36681] CHIP:DMG: CommandId = 0x0,
365-
[1707904517.151652][36678:36681] CHIP:DMG: },
366-
[1707904517.151670][36678:36681] CHIP:DMG:
367-
[1707904517.151681][36678:36681] CHIP:DMG: StatusIB =
368-
[1707904517.151696][36678:36681] CHIP:DMG: {
369-
[1707904517.151708][36678:36681] CHIP:DMG: status = 0x87 (CONSTRAINT_ERROR),
370-
[1707904517.151720][36678:36681] CHIP:DMG: },
371-
[1707904517.151734][36678:36681] CHIP:DMG:
372-
[1707904517.151745][36678:36681] CHIP:DMG: },
373-
[1707904517.151763][36678:36681] CHIP:DMG:
374-
[1707904517.151772][36678:36681] CHIP:DMG: },
375-
[1707904517.151790][36678:36681] CHIP:DMG:
376-
[1707904517.151798][36678:36681] CHIP:DMG: ],
377-
[1707904517.151816][36678:36681] CHIP:DMG:
378-
[1707904517.151824][36678:36681] CHIP:DMG: InteractionModelRevision = 11
379-
[1707904517.151830][36678:36681] CHIP:DMG: },"
387+
diagnosticlogs retrieve-logs-request 0 1 1 0 --TransferFileDesignator ''
388+
On TH(chip-tool), Verify that DUT sends RetrieveLogsResponse command to TH with Denied(4) status code.
389+
[1719990173.360981][8053:8056] CHIP:TOO: RetrieveLogsResponse: {
390+
[1719990173.361009][8053:8056] CHIP:TOO: status: 4
391+
[1719990173.361021][8053:8056] CHIP:TOO: logContent:
392+
[1719990173.361030][8053:8056] CHIP:TOO: }
380393
disabled: true
381394

382395
- label:
@@ -385,9 +398,9 @@ tests:
385398
EndUserSupport,RequestedProtocol= BDX, TransferFileDesignator =
386399
TH_LOG_BAD_LENGTH)"
387400
verification: |
388-
"diagnosticlogs retrieve-logs-request 0 1 1 0 --TransferFileDesignator Length_1234567891234567891234567891212345.txt
401+
diagnosticlogs retrieve-logs-request 0 1 1 0 --TransferFileDesignator Length_1234567891234567891234567891212345.txt
389402
390-
On TH(chip-tool), Verify that the DUT responds with CONSTRAINT_ERRORfor the RetrieveLogsRequest that was sent Invalid Invalid TransferFileDesignator length(> 32)
403+
On TH(chip-tool), Verify that the DUT responds with CONSTRAINT_ERROR for the RetrieveLogsRequest that was sent Invalid Invalid TransferFileDesignator length(> 32)
391404
392405
[1707904517.151453][36678:36681] CHIP:DMG: ICR moving to [ResponseRe]
393406
[1707904517.151489][36678:36681] CHIP:DMG: InvokeResponseMessage =

0 commit comments

Comments
 (0)