Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CERT-TEST-FAILURE] [TC-CCTRL-2.2] - TypeError in CommissionerControl.Commands.CommissionNode: Unexpected keyword argument 'ipAddress #35312

Closed
Rajashreekalmane opened this issue Aug 30, 2024 · 0 comments · Fixed by #35321
Labels

Comments

@Rajashreekalmane
Copy link

Rajashreekalmane commented Aug 30, 2024

Feature Area

Other

Test Case

TC-CCTRL-2.2

Description
When executing the test_TC_CCTRL_2_2 test case, an error occurs due to the CommissionerControl.Commands.CommissionNode command receiving an unexpected keyword argument 'ipAddress'. This results in a TypeError, preventing the test from proceeding

[MatterTest] 08-30 08:21:21.037 INFO ***** Test Step 5 : Send CommissionNode command to DUT with CASE session
[MatterTest] 08-30 08:21:21.039 ERROR Exception occurred in test_TC_CCTRL_2_2.
Traceback (most recent call last):
File "/home/ubuntu/Aug26_cntr/connectedhomeip/no/lib/python3.10/site-packages/mobly/base_test.py", line 783, in exec_one_test
test_method()
File "/home/ubuntu/Aug26_cntr/connectedhomeip/src/python_testing/matter_testing_support.py", line 2149, in per_endpoint_runner
_async_runner(body, self, *args, **kwargs)
File "/home/ubuntu/Aug26_cntr/connectedhomeip/src/python_testing/matter_testing_support.py", line 1942, in _async_runner
return asyncio.run(runner_with_timeout)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/home/ubuntu/Aug26_cntr/connectedhomeip/src/python_testing/TC_CCTRL_2_2.py", line 140, in test_TC_CCTRL_2_2
cmd = Clusters.CommissionerControl.Commands.CommissionNode(
TypeError: CommissionerControl.Commands.CommissionNode.init() got an unexpected keyword argument 'ipAddress'
[MatterTest] 08-30 08:21:21.058 INFO ***** Test Failure :
[MatterTest] 08-30 08:21:21.059 INFO Finished test in 435011.0ms
[MatterTest] 08-30 08:21:21.060 ERROR


  • Test test_TC_CCTRL_2_2 failed for the following reason:
  • CommissionerControl.Commands.CommissionNode.init() got an unexpected keyword argument 'ipAddress'
  • File "/home/ubuntu/Aug26_cntr/connectedhomeip/src/python_testing/TC_CCTRL_2_2.py", line 140, in test_TC_CCTRL_2_2
  • TypeError: CommissionerControl.Commands.CommissionNode.init() got an unexpected keyword argument 'ipAddress'

Steps to Reproduce

  • Command used to build -

Fabric admin app
./scripts/build/build_examples.py --target linux-arm64-fabric-admin-rpc build
Command used to launch : ./fabric-admin

fabric-bridge-app
./scripts/build/build_examples.py --target linux-arm64-fabric-bridge-rpc build
Command used to launch : ./fabric-bridge-app

  • TH - python controller

commands used to build -
source scripts/activate.sh && scripts/build_python.sh -m platform -d true -i no
source no/bin/activate

Command used to build all-clusters app
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux/ examples/all-clusters-app/linux/out/all-clusters-app chip_inet_config_enable_ipv4=false

Command used to run the python script : rm -r admin_storage.json && python3 TC_CCTRL_2_2.py --commissioning-method on-network --discriminator 3840 --passcode 20202021 --paa-trust-store-path ../../credentials/development/paa-root-certs/ --storage-path admin_storage.json --string-arg th_server_app_path:</home/ubuntu/Aug26_cntr/connectedhomeip/examples/all-clusters-app/linux/out/all-clusters-app/chip-all-clusters-app>

Bug prevalence

Everytime

GitHub hash of the SDK that was being used

125b8e7

Platform

raspi

PFA log below :
TC-CCTRL_2_2 controller log.txt

TC-CCTRL-2_2 Fabric bridge log.txt

TC_CCTRL_2_2 - Fabric admin log.txt

This issue was introduced following the merge of PR : #35272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant