Skip to content

Commit

Permalink
Add missing attribute read step and improve step names
Browse files Browse the repository at this point in the history
  • Loading branch information
ksperling-apple committed Jul 29, 2024
1 parent 5e42794 commit 83b8415
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions src/app/tests/suites/certification/Test_TC_THNETDIR_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ tests:
command: readAttribute
attribute: PreferredExtendedPanID
response:
saveAs: initialPreferredExtendedPanID
constraints:
type: octet_string
minLength: 8
Expand All @@ -70,6 +71,14 @@ tests:
response:
error: CONSTRAINT_ERROR # TestNetwork is not in ThreadNetworks

- label:
"TH reads PreferredExtendedPanID attribute from DUT, verifying that
the value did not change"
command: readAttribute
attribute: PreferredExtendedPanID
response:
value: initialPreferredExtendedPanID

- label:
"TH sends GetOperationalDataset command to DUT with ExtendedPanID of
TestNetwork"
Expand Down Expand Up @@ -99,7 +108,9 @@ tests:
- name: OperationalDataset
value: TestNetworkDataset

- label: "TH reads ThreadNetworks attribute from DUT"
- label:
"TH reads ThreadNetworks attribute from DUT, verifying that the
network has been added"
command: readAttribute
attribute: ThreadNetworks
response:
Expand Down Expand Up @@ -139,7 +150,9 @@ tests:
arguments:
value: TestNetworkExtendedPanId

- label: "TH reads PreferredExtendedPanID attribute from DUT"
- label:
"TH reads PreferredExtendedPanID attribute from DUT, verifying that
the value was written"
command: readAttribute
attribute: PreferredExtendedPanID
response:
Expand Down Expand Up @@ -173,7 +186,9 @@ tests:
arguments:
value: null

- label: "TH reads PreferredExtendedPanID attribute from DUT"
- label:
"TH reads PreferredExtendedPanID attribute from DUT, verifying that
the value was cleared"
command: readAttribute
attribute: PreferredExtendedPanID
response:
Expand All @@ -189,7 +204,9 @@ tests:
- name: ExtendedPanID
value: TestNetworkExtendedPanId

- label: "TH reads ThreadNetworks attribute from DUT"
- label:
"TH reads ThreadNetworks attribute from DUT, verifying that the
network was removed"
command: readAttribute
attribute: ThreadNetworks
response:
Expand All @@ -199,3 +216,10 @@ tests:
# # value == initialNetworks (ignoring order)
# return (len(value) == len(initialNetworks) and
# all(n in initialNetworks for n in value))

- label:
"TH writes PreferredExtendedPanID to DUT, restoring the initial value"
command: writeAttribute
attribute: PreferredExtendedPanID
arguments:
value: initialPreferredExtendedPanID

0 comments on commit 83b8415

Please sign in to comment.