integration-testing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseintegration-testing
集成测试
When to use
适用场景
Load this skill whenever tasks include:
- authoring or debugging pipeline test fixtures (/
.loginputs,.jsonoutput, config files)*-expected.json - setting up or debugging system tests (,
_dev/test/system/, mock APIs, 0-hits failures)_dev/deploy/ - writing script tests for failure paths, API error handling, or package upgrades
当您需要完成以下任务时,请加载本技能:
- 编写或调试管道测试夹具(/
.log输入文件、.json输出文件、配置文件)*-expected.json - 设置或调试系统测试(目录、
_dev/test/system/目录、Mock APIs、无命中故障排查)_dev/deploy/ - 编写针对故障路径、API错误处理或包升级的脚本测试
When not to use
不适用场景
Do not use this skill as the primary guide for:
- ingest pipeline processor design and architecture ()
ingest-pipelines - CEL program development ()
cel-programs - broad elastic-package command selection and stack lifecycle ()
elastic-package-cli
请勿将本技能作为以下场景的主要指南:
- 摄入管道处理器的设计与架构(请使用技能)
ingest-pipelines - CEL程序开发(请使用技能)
cel-programs - elastic-package命令选型与堆栈生命周期管理(请使用技能)
elastic-package-cli
Reference files — load the one that matches your test type
参考文件——加载与测试类型匹配的文件
| Test type | Load when | Reference file |
|---|---|---|
| Pipeline tests | Writing fixtures, config files, expected output, debugging pipeline test failures | |
| System tests (generic) | Always load for any system test work — config fields, commands, teardown, debugging | |
| Script tests | txtar failure/error tests, upgrade tests, mock services embedded in txtar | |
| 测试类型 | 适用时机 | 参考文件 |
|---|---|---|
| 管道测试 | 编写夹具、配置文件、预期输出,排查管道测试故障 | |
| 通用系统测试 | 进行任何系统测试工作时均需加载——配置字段、命令、环境清理、故障排查 | |
| 脚本测试 | txtar故障/错误测试、升级测试、嵌入txtar的Mock服务 | |
System test input-specific references
系统测试输入类型专属参考文件
In addition to the generic , load the reference file matching your data stream's input type:
system-testing.md| Input type | Reference file |
|---|---|
| |
| |
| |
| |
| |
| |
When an integration supports multiple input types, load the generic reference plus each applicable input-type reference.
When working across multiple test types in one task (e.g. creating a new data stream end-to-end), load all applicable reference files.
除通用的外,请加载与数据流输入类型匹配的参考文件:
system-testing.md| 输入类型 | 参考文件 |
|---|---|
| |
| |
| |
| |
| |
| |
当某个集成支持多种输入类型时,请加载通用参考文件以及所有适用的输入类型专属参考文件。
当同一任务涉及多种测试类型时(例如端到端创建新数据流),请加载所有适用的参考文件。
References
参考文件详情
- — directory layout, naming conventions, fixture formats, config options, expected output format and review, core workflow, fixture scenario coverage, data anonymization, troubleshooting
references/pipeline-testing.md - — generic system test reference: required layout, config fields, core commands, teardown failures,
references/system-testing.mdverification, general debuggingsample_event.json - — CEL mock API wiring, 0-hits debugging for CEL, variable-capture patterns
references/system-testing-cel.md - — TCP/UDP log sender pattern with
references/system-testing-tcp-udp.md, signal coordination, port alignmentelastic/stream - — webhook/HTTP endpoint testing with
references/system-testing-http-endpoint.md, auth headersSTREAM_PROTOCOL=webhook - — Alpine container +
references/system-testing-logfile.mdpattern for logfile/filestream inputsSERVICE_LOGS_DIR - — Kafka broker + stream producer, Pub/Sub emulator patterns
references/system-testing-kafka-pubsub.md - — when and why to skip system tests for cloud storage inputs (aws-s3, gcs, azure-blob-storage, azure-eventhub)
references/system-testing-cloud-skip.md - — txtar format, env smoke test, system-level skeleton, mock service docker-compose and config.yml, upgrade test pattern, pitfalls, full o365 examples
references/script-testing.md - — subagent operating manual for wiring data collection (docker-compose, sample logs, agent stream template, system test config, manifest var cleanup) for non-CEL data streams. The orchestrator dispatches subagents by passing this file's path in the task prompt; the subagent reads it itself in its own fresh context. Do NOT embed/paste its contents into the task prompt.
references/builder-setup-subagent-guidance.md - — subagent operating manual for running
references/builder-system-test-subagent-guidance.mdafter pipeline work completes (any testable input). Same dispatch rule as above: orchestrators pass the path, the subagent reads the file itself.elastic-package test system --generate
- — 目录结构、命名规范、夹具格式、配置选项、预期输出格式与评审、核心工作流、夹具场景覆盖、数据匿名化、故障排查
references/pipeline-testing.md - — 通用系统测试参考:必填目录结构、配置字段、核心命令、环境清理故障排查、
references/system-testing.md验证、通用调试方法sample_event.json - — CEL Mock API配置、CEL无命中故障排查、变量捕获模式
references/system-testing-cel.md - — 使用
references/system-testing-tcp-udp.md的TCP/UDP日志发送模式、信号协调、端口对齐elastic/stream - — 设置
references/system-testing-http-endpoint.md的Webhook/HTTP端点测试、认证头配置STREAM_PROTOCOL=webhook - — 针对logfile/filestream输入的Alpine容器 +
references/system-testing-logfile.md模式SERVICE_LOGS_DIR - — Kafka broker + 流生产者、Pub/Sub模拟器模式
references/system-testing-kafka-pubsub.md - — 针对云存储输入(aws-s3、gcs、azure-blob-storage、azure-eventhub)何时及为何跳过系统测试
references/system-testing-cloud-skip.md - — txtar格式、环境冒烟测试、系统级框架、Mock服务docker-compose与config.yml、升级测试模式、常见陷阱、完整o365示例
references/script-testing.md - — 非CEL数据流的数据采集配置(docker-compose、示例日志、Agent流模板、系统测试配置、清单变量清理)子代理操作手册。编排器通过在任务提示中传递该文件的路径来调度子代理;子代理将在全新上下文自行读取该文件。请勿将其内容嵌入/粘贴到任务提示中。
references/builder-setup-subagent-guidance.md - — 管道工作完成后运行
references/builder-system-test-subagent-guidance.md的子代理操作手册(适用于任何可测试输入)。调度规则同上:编排器传递路径,子代理自行读取文件。elastic-package test system --generate