بنقرة واحدة
add-integration-test
Write a Robot Framework integration test for thin-edge.io. Use when adding end-to-end tests.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Write a Robot Framework integration test for thin-edge.io. Use when adding end-to-end tests.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | add-integration-test |
| description | Write a Robot Framework integration test for thin-edge.io. Use when adding end-to-end tests. |
.robot file in tests/RobotFramework/tests/<category>/*** Settings ***
Resource ../../resources/common.resource
Library ThinEdgeIO
Library Cumulocity # For interacting with the device management from Cumulocity
Test Setup Setup
Test Teardown Get Logs
Library Cumulocity while testing device integration with Cumulocity,
like asserting telemetry or inventory data sent by the device to the cloud or
to trigger device management operations from the device to the cloudTest Tags theme:<category>
*** Test Cases ***
My Test Case Description
Execute Command tedge mqtt pub te/device/main///m/test '{"value": 42}'
# Use assertion keywords to verify behavior
just integration-test --test PATTERNdocker ps -q --filter ancestor=debian-systemd | tail -n1debian-systemd image, simulating child devices as welljournalctl:
journalctl -f -u tedge-mapper-c8yjournalctl -f -u tedge-agentjournalctl -f -u mqtt-loggerdocker (CI default), ssh (remote devices), local (localhost).env file with cloud credentials (template at tests/RobotFramework/devdata/env.template)tests/RobotFramework/libraries/ThinEdgeIO/ThinEdgeIO.pytests/RobotFramework/resources/common.resourceRead these for patterns:
tests/RobotFramework/tests/tedge_write.robot — simple test structuretests/RobotFramework/tests/cumulocity/log/log_operation.robot — for interactions with Cumulocitytests/RobotFramework/resources/common.resource — shared variables and resource setuptests/RobotFramework/libraries/ThinEdgeIO/ThinEdgeIO.py — available keywordsExpert Rust code review focused on correctness, testing, and idiomatic code. Use when reviewing a diff, file, or change for bugs, test gaps, and non-idiomatic Rust.
Create a new actor with builder in the thin-edge.io actor framework. Use when implementing a new concurrent component that processes messages.
Add a new configuration option to tedge_config. Use when adding a new setting to the thin-edge.io configuration in tedge.toml.
Add a new extension of `tedge-mapper` or `tedge-agent` as an actor.
Add a new plugin binary to thin-edge.io. Use when creating a new extension of built-in operations supported by tedge-agent.