一键导入
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 职业分类
Expert 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.
| 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 keywords