Skip to content

Commit 54d2aaa

Browse files
authored
TC-OPCREDS-3.1: fix newly async function (#34207)
Also add it back into the CI with the new style.
1 parent d454ffb commit 54d2aaa

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/tests.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ jobs:
548548
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_TestEventTrigger.py'
549549
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TestBatchInvoke.py'
550550
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TestGroupTableReports.py'
551+
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_OPCREDS_3_1.py'
551552
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_OPCREDS_3_2.py'
552553
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_OPSTATE_2_1.py'
553554
scripts/run_in_python_env.sh out/venv './scripts/tests/run_python_test.py --load-from-env /tmp/test_env.yaml --script src/python_testing/TC_OPSTATE_2_2.py'

src/python_testing/TC_OPCREDS_3_1.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
17+
# test-runner-runs: run1
18+
# test-runner-run/run1/app: ${ALL_CLUSTERS_APP}
19+
# test-runner-run/run1/factoryreset: True
20+
# test-runner-run/run1/quiet: True
21+
# test-runner-run/run1/app-args: --discriminator 1234 --KVS kvs1 --trace-to json:${TRACE_APP}.json
22+
# test-runner-run/run1/script-args: --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values --trace-to json:${TRACE_TEST_JSON}.json --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
1823
import copy
1924
import logging
2025
import random
@@ -342,8 +347,8 @@ async def test_TC_OPCREDS_3_1(self):
342347

343348
self.print_step(33, "TH1 reconnects to the DUT over PASE")
344349
TH1.ExpireSessions(newNodeId)
345-
self.FindAndEstablishPase(dev_ctrl=TH1, longDiscriminator=longDiscriminator,
346-
setupPinCode=params.setupPinCode, nodeid=newNodeId)
350+
await self.FindAndEstablishPase(dev_ctrl=TH1, longDiscriminator=longDiscriminator,
351+
setupPinCode=params.setupPinCode, nodeid=newNodeId)
347352

348353
self.print_step(34, "TH1 reads the TrustedRootCertificates list from DUT and verifies the TH1 root is not present")
349354
trusted_root_list = await self.read_single_attribute_check_success(dev_ctrl=TH1, node_id=newNodeId, cluster=opcreds, attribute=opcreds.Attributes.TrustedRootCertificates)

0 commit comments

Comments
 (0)