Where there is smoke, there is fire.
This repo contains sample scripts and CI-pipelines that perform smoke tests on an Azure IoT Edge solution.
- 1x IoTHub with support for IoT Edge
- 1x Edge device registration
-
Install VS Code (tested with v1.62).
-
Install Docker (tested on Windows with Docker Desktop 4.1.1 69879).
-
Open folder
iotedge-smoke-test/SmokeTestIoTEdgeSolution
in VS Code. -
Open solution in devcontainer (definition is located in
iotedge-smoke-test/SmokeTestIoTEdgeSolution/.devcontainer/
). -
Configure the IoT Edge device connection string by adding the following line to the
.env
fileDEVICE_CONNECTION_STRING='<replace-with-connection-string-to-your-edge-device>'
-
Run predefined task named
Run Smoke Tests
. -
The task will report errors produced by
BuggyModule
, which is what the smoke tests were designed for.
- Add group
ci-pipeline
toPipelines->Library
- Add secret
DEVICE_CONNECTION_STRING
and set the value your edge device's connection string - Add
iotedge-smoke-test/.azdo/pipelines/run-smoke-tests.yml
as pipeline
- Add repository secret
DEVICE_CONNECTION_STRING
and set the value your edge device's connection string - Add
iotedge-smoke-test/.github/workflows/run-smoke-tests.yml
as workflow
@Ioana37 @machteldbogels @MagdaPaj @Salazander @syedhassaanahmed @vjrantal