certification-tool
certification-tool copied to clipboard
How to modify the default startup configuration parameters of the th-sdk container?
Describe the bug
When I start SDK Python Tests, TH set up SDK container by default configuration just like below. But my Raspberry Pi username is not ubuntu. It can not start with correct file path like test_harness_client.py. How and where I can change configuration of th-sdk container
Steps to reproduce the behavior
No response
Expected behavior
No response
Log files
No response
PICS file
No response
Screenshots
No response
Environment
Version: 2.10+spring2024 Sha: 5f28838
Additional Information
No response
I modify the sdk_container.py file and then Sending command to SDK container: python3 /root/python_testing/scripts/sdk/test_harness_client.py commission --trace-to json:log --discriminator 3840 --passcode 20202021 --commissioning-method ble-wifi --paa-trust-store-path /var/paa-root-certs/ --storage-path admin_storage.json
It show error:
error: missing --wifi-ssid for --commissioning-method ble-wifi!
But I had set up network param in project config. Pls help me find out there is something that I miss
The way that I am currently doing is to update the test parameter option in the project config. No sure if there is alternate method to do this.
"test_parameters": {
"wifi-ssid": "MY-SSID",
"wifi-passphrase": "MY-PASSWORD",
}
Hello @xiaojianjian92 ,
Thanks for your feedback.
About the username: It is mandatory that the username is ubuntu. We will make this clearer in the documentation. About the Wifi parameters, we need to make a correction so that they can be sent.
Your solution proposed by @Kshitijjain21 can be used until the correction is made available.
Fixed in https://github.com/project-chip/certification-tool-backend/pull/133
Please feel free to reopen if need.