원클릭으로
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