certification-tool icon indicating copy to clipboard operation
certification-tool copied to clipboard

How to modify the default startup configuration parameters of the th-sdk container?

Open xiaojianjian92 opened this issue 1 year ago • 3 comments

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 image

image

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

xiaojianjian92 avatar Jun 18 '24 04:06 xiaojianjian92

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! image

But I had set up network param in project config. Pls help me find out there is something that I miss

xiaojianjian92 avatar Jun 18 '24 07:06 xiaojianjian92

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",
    }

Kshitijjain21 avatar Jun 26 '24 11:06 Kshitijjain21

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.

hiltonlima avatar Aug 12 '24 13:08 hiltonlima

Fixed in https://github.com/project-chip/certification-tool-backend/pull/133

Please feel free to reopen if need.

hiltonlima avatar Sep 27 '24 18:09 hiltonlima