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

  1. 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):
  2. $ git clone --branch apertis/v2023pre https://gitlab.apertis.org/tests/suite-connector.git
  3. Copy the test directory suite-connector to the target device:
  4. $ DUT_IP=<device-ip>
    $ scp -r suite-connector user@$DUT_IP:
  5. Log into the target device:
  6. $ ssh user@$DUT_IP

Execution Steps

  1. Enter test directory:
  2. $ cd suite-connector
  3. Execute the following command:
  4. $ 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