Skip to content

Add test runner for Metricbeat integration tests#13039

Closed
jsoriano wants to merge 8 commits intoelastic:masterfrom
jsoriano:compose-test-runner-go
Closed

Add test runner for Metricbeat integration tests#13039
jsoriano wants to merge 8 commits intoelastic:masterfrom
jsoriano:compose-test-runner-go

Conversation

@jsoriano
Copy link
Copy Markdown
Member

@jsoriano jsoriano commented Jul 23, 2019

Add a new test runner for Metricbeat integration tests that
can be used to run tests on multiple versions. It also includes
helpers to obtain the host of a service automatically from the
docker daemon without requiring additional environment
variables.

This is part of #7957, adapted so it can be implemented in
smaller steps. EnsureUp is kept, but only works with a
service now. Multiple services can still be managed by
docker compose dependencies.

Apache module is migrated as example.

It runs tests with all the combination of versions in clean
instances. If tests want to be run against an instance,
SERVICE_HOST environment variable can be used, e.g.
for apache, to reuse an apache running in localhost:32819
tests can be run with:
APACHE_HOST=localhost:32819 go test -tags=integration ./module/apache/...

Part of #7957, relates to #7822 and #12909.

@jsoriano jsoriano added in progress Pull request is currently in progress. Metricbeat Metricbeat :Testing [zube]: In Progress Team:Integrations Label for the Integrations team labels Jul 23, 2019
@jsoriano jsoriano self-assigned this Jul 23, 2019
Comment thread libbeat/tests/compose/project.go Outdated
Comment thread libbeat/tests/compose/project.go Outdated
@jsoriano jsoriano force-pushed the compose-test-runner-go branch from d9f73a4 to 7cab45c Compare July 23, 2019 21:32
@jsoriano jsoriano force-pushed the compose-test-runner-go branch from 7cab45c to 71b7c2f Compare July 24, 2019 14:21
Comment thread metricbeat/module/couchbase/testing.go Outdated
Comment thread metricbeat/module/couchbase/testing.go Outdated
Comment thread metricbeat/module/couchbase/testing.go Outdated
@jsoriano jsoriano force-pushed the compose-test-runner-go branch 2 times, most recently from 85a899f to 33330a3 Compare July 24, 2019 14:48
@jsoriano
Copy link
Copy Markdown
Member Author

jsoriano commented Sep 2, 2019

Closing this by now, to be reopened if we consider it needed after https://github.com/elastic/metricbeat-tests-poc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in progress Pull request is currently in progress. Metricbeat Metricbeat Team:Integrations Label for the Integrations team :Testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants