iot-suite-connector automated
medium
- Image Types:
- iot-amd64-internal / iot-arm64-internal / iot-armhf-internal
- Image Deployment:
- APT
- Type:
- functional
Description
Ensure suite-connector can interact with cloud2edge.
Pre Conditions
- Clone the tests repository from another computer (Note that the branch being tested may change depending on the release, please make sure to clone the correct branch for the release in question):
- Copy the test directory suite-connector to the target device:
- Log into the target device:
$ git clone --branch apertis/v2023pre https://gitlab.apertis.org/tests/suite-connector.git
$ DUT_IP=<device-ip>
$ scp -r suite-connector user@$DUT_IP:
$ ssh user@$DUT_IP
Execution Steps
- Enter test directory:
- Execute the following command:
$ cd suite-connector
$ common/run-test-in-systemd --user=user --basename -- env DIGITAL_TWIN_API_ADDRESS=$DIGITAL_TWIN_API_ADDRESS DIGITAL_TWIN_API_USER=$DIGITAL_TWIN_API_USER DIGITAL_TWIN_API_PASSWORD=$DIGITAL_TWIN_API_PASSWORD TENANT=$TENANT C2E_DEVICE_ID=$C2E_DEVICE_ID C2E_DEVICE_PASSWORD=$C2E_DEVICE_PASSWORD ./suite-connector.sh
Expected
If PASSED is displayed, the test has passed. The output should be similar to:
--- PASS: TestConnectorSuite (10.29s)
--- PASS: TestConnectorSuite/TestCommand (0.74s)
--- PASS: TestConnectorSuite/TestConnectionStatus (0.51s)
--- PASS: TestConnectorSuite/TestEvent (5.32s)
--- PASS: TestConnectorSuite/TestTelemetry (3.01s)
PASS