Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
elastic avatar

Integration Testing

  • 216 installs
  • 15 repo stars
  • Updated August 5, 2026
  • elastic/integration-skills

Elastic skill for elastic-package integration tests: pipeline fixtures, system tests, script tests.

About

Elastic integration testing skill for elastic-package test workflows. Covers pipeline fixture authoring with expected output files, system tests with mock API wiring, and script tests for failure path validation. Documents running tests locally, interpreting failures, updating expected outputs after intentional pipeline changes, and debugging mock server configuration. Essential for integration PRs that modify ingest behavior and need regression coverage before merge approval.

  • Pipeline fixture authoring with expected output validation
  • System tests with mock API server wiring
  • Script tests for failure path and edge case coverage
  • elastic-package test run and failure debugging
  • Expected output updates after intentional pipeline changes

Integration Testing by the numbers

  • 216 all-time installs (skills.sh)
  • Ranked #793 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

integration-testing capabilities & compatibility

Capabilities
author pipeline fixtures · wire system test mocks · run elastic package tests · debug test failures
Works with
elasticsearch
Use cases
testing
npx skills add https://github.com/elastic/integration-skills --skill integration-testing

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs216
repo stars15
Last updatedAugust 5, 2026
Repositoryelastic/integration-skills

How do I write and run tests for this Elastic integration package?

Create, run, and debug elastic-package tests including pipeline fixtures, system tests, and script tests for integration packages.

Who is it for?

Integration developers adding or fixing elastic-package tests.

Skip if: Non-integration application unit tests outside elastic-package.

When should I use this skill?

User creates, runs, or debugs elastic-package tests for integration packages.

What you get

Pipeline, system, or script tests authored, passing, and failures debugged.

Files

SKILL.mdMarkdownGitHub ↗

integration-testing

When to use

Load this skill whenever tasks include:

  • authoring or debugging pipeline test fixtures (.log/.json inputs, *-expected.json output, config files)
  • setting up or debugging system tests (_dev/test/system/, _dev/deploy/, mock APIs, 0-hits failures)
  • writing script tests for failure paths, API error handling, or package upgrades

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)

Reference files — load the one that matches your test type

Test typeLoad whenReference file
Pipeline testsWriting fixtures, config files, expected output, debugging pipeline test failuresreferences/pipeline-testing.md
System tests (generic)Always load for any system test work — config fields, commands, teardown, debuggingreferences/system-testing.md
Script teststxtar failure/error tests, upgrade tests, mock services embedded in txtarreferences/script-testing.md

System test input-specific references

In addition to the generic system-testing.md, load the reference file matching your data stream's input type:

Input typeReference file
celreferences/system-testing-cel.md
tcp, udpreferences/system-testing-tcp-udp.md
http_endpointreferences/system-testing-http-endpoint.md
logfile, filestreamreferences/system-testing-logfile.md
kafka, gcp-pubsubreferences/system-testing-kafka-pubsub.md
aws-s3, gcs, azure-blob-storage, azure-eventhubreferences/system-testing-cloud-skip.md

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.

References

  • references/pipeline-testing.md — directory layout, naming conventions, fixture formats, config options, expected output format and review, core workflow, fixture scenario coverage, data anonymization, troubleshooting
  • references/system-testing.md — generic system test reference: required layout, config fields, core commands, teardown failures, sample_event.json verification, general debugging
  • references/system-testing-cel.md — CEL mock API wiring, 0-hits debugging for CEL, variable-capture patterns
  • references/system-testing-tcp-udp.md — TCP/UDP log sender pattern with elastic/stream, signal coordination, port alignment
  • references/system-testing-http-endpoint.md — webhook/HTTP endpoint testing with STREAM_PROTOCOL=webhook, auth headers
  • references/system-testing-logfile.md — Alpine container + SERVICE_LOGS_DIR pattern for logfile/filestream inputs
  • references/system-testing-kafka-pubsub.md — Kafka broker + stream producer, Pub/Sub emulator patterns
  • references/system-testing-cloud-skip.md — when and why to skip system tests for cloud storage inputs (aws-s3, gcs, azure-blob-storage, azure-eventhub)
  • references/script-testing.md — txtar format, env smoke test, system-level skeleton, mock service docker-compose and config.yml, upgrade test pattern, pitfalls, full o365 examples
  • references/builder-setup-subagent-guidance.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-system-test-subagent-guidance.md — subagent operating manual for running elastic-package test system --generate after pipeline work completes (any testable input). Same dispatch rule as above: orchestrators pass the path, the subagent reads the file itself.

Related skills

FAQ

What test types exist?

Pipeline fixtures with expected output, system tests with mock APIs, and script tests for failure paths.

When do I update expected output?

After intentional pipeline changes that alter correct document shape.

How do I debug failures?

Inspect elastic-package test output, mock API wiring, and fixture input versus expected files.

Testing & QAtestingintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.