Skip to content

Commit

Permalink
chore(vdev): Regularize vdev integration test arguments to cargo (#16652
Browse files Browse the repository at this point in the history
)

* set up test fields and yaml configuration changes

* add fields to IntegrationTestConfig and append them to args

* modify config files and implement PR feedback

* add message to show test args is empty

* use unwrap adapter

* cargo vdev fmt

* shorten comment documenting logic

* fix clippy

* change splunk and databend configs

* add test args to show command, append test_filter to cargo

* implement PR feedback, don't append empty string to args
  • Loading branch information
jonathanpv authored Mar 2, 2023
1 parent 90ae9f7 commit 2e0de1f
Show file tree
Hide file tree
Showing 36 changed files with 140 additions and 135 deletions.
7 changes: 3 additions & 4 deletions scripts/integration/amqp/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- amqp-integration-tests
- --lib
- '::amqp::'

test_filter: '::amqp::'

matrix:
version: ['3.8']
7 changes: 3 additions & 4 deletions scripts/integration/aws/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- aws-integration-tests
- --lib
- ::aws_

test_filter: ::aws_

env:
AWS_ACCESS_KEY_ID: dummy
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/axiom/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- axiom-integration-tests
- --lib
- '::axiom::'

test_filter: '::axiom::'

runner:
env:
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/azure/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- azure-integration-tests
- --lib
- ::azure_

test_filter: ::azure_

env:
AZURE_ADDRESS: local-azure-blob
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/chronicle/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- chronicle-integration-tests
- --lib
- '::chronicle_unstructured::'

test_filter: '::chronicle_unstructured::'

env:
CHRONICLE_ADDRESS: http://chronicle-emulator:3000
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/clickhouse/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- clickhouse-integration-tests
- --lib
- '::clickhouse::'

test_filter: '::clickhouse::'

env:
CLICKHOUSE_ADDRESS: http://clickhouse:8123
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/databend/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- databend-integration-tests
- --lib
- '::databend::'

test_filter: '::databend::'

runner:
env:
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/datadog-agent/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- datadog-agent-integration-tests
- --lib
- 'sources::datadog_agent::integration_tests::'

test_filter: 'sources::datadog_agent::integration_tests::'

env:
AGENT_ADDRESS: datadog-agent:8181
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/datadog-logs/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- datadog-logs-integration-tests
- --lib
- '::datadog::logs::'

test_filter: '::datadog::logs::'

runner:
env:
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/datadog-metrics/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- datadog-metrics-integration-tests
- --lib
- '::datadog::metrics::'

test_filter: '::datadog::metrics::'

runner:
env:
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/datadog-traces/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- datadog-traces-integration-tests
- --lib
- '::datadog::traces::'

test_filter: '::datadog::traces::'

env:
AGENT_PORT: '8082'
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/dnstap/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- dnstap-integration-tests
- --lib
- '::dnstap::'

test_filter: '::dnstap::'

runner:
env:
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/docker-logs/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- docker-logs-integration-tests
- --lib
- "::docker_logs::"

test_filter: "::docker_logs::"

runner:
needs_docker_socket: true
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/elasticsearch/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- es-integration-tests
- --lib
- '::elasticsearch::integration_tests::'

test_filter: '::elasticsearch::integration_tests::'

env:
AWS_ACCESS_KEY_ID: dummy
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/eventstoredb/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- eventstoredb_metrics-integration-tests
- --lib
- '::eventstoredb_metrics::'

test_filter: '::eventstoredb_metrics::'

matrix:
version: [latest]
7 changes: 3 additions & 4 deletions scripts/integration/fluent/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- fluent-integration-tests
- --lib
- "::fluent::"

test_filter: "::fluent::"

runner:
needs_docker_socket: true
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/gcp/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- gcp-integration-tests
- --lib
- '::gcp::'

test_filter: '::gcp::'

env:
EMULATOR_ADDRESS: http://gcloud-pubsub:8681
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/http-client/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- http-client-integration-tests
- --lib
- 'sources::http_client::'

test_filter: 'sources::http_client::'

env:
DUFS_ADDRESS: http://dufs:5000
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/humio/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- humio-integration-tests
- --lib
- '::humio::'

test_filter: '::humio::'

runner:
env:
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/influxdb/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- influxdb-integration-tests
- --lib
- '::influxdb::'

test_filter: '::influxdb::'

env:
INFLUXDB_V1_HTTPS_ADDRESS: https://influxdb-v1-tls:8086
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/kafka/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- kafka-integration-tests
- --lib
- '::kafka::'

test_filter: '::kafka::'

env:
KAFKA_HOST: kafka
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/logstash/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- logstash-integration-tests
- --lib
- '::logstash::integration_tests::'

test_filter: '::logstash::integration_tests::'

env:
HEARTBEAT_ADDRESS: 0.0.0.0:8080
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/loki/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- loki-integration-tests
- --lib
- '::loki::'

test_filter: '::loki::'

env:
LOKI_ADDRESS: http://loki:3100
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/mongodb/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- mongodb_metrics-integration-tests
- --lib
- '::mongodb_metrics::'

test_filter: '::mongodb_metrics::'

env:
PRIMARY_MONGODB_ADDRESS: mongodb://root:toor@mongodb-primary
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/nats/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- nats-integration-tests
- --lib
- '::nats::'

test_filter: '::nats::'

env:
NATS_ADDRESS: nats://nats:4222
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/nginx/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- nginx-integration-tests
- --lib
- '::nginx_metrics::'

test_filter: '::nginx_metrics::'

runner:
env:
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/opentelemetry/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- opentelemetry-integration-tests
- --lib
- '::opentelemetry::'

test_filter: '::opentelemetry::'

runner:
env:
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/postgres/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- postgresql_metrics-integration-tests
- --lib
- ::postgres

test_filter: ::postgres

env:
PG_HOST: postgres
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/prometheus/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
test_filter: '::prometheus::remote_write::'

features:
- prometheus-integration-tests
- --lib
- '::prometheus::remote_write::'

env:
REMOTE_WRITE_SOURCE_RECEIVE_ADDRESS: runner:9102
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/pulsar/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- pulsar-integration-tests
- --lib
- '::pulsar::'

test_filter: '::pulsar::'

env:
PULSAR_ADDRESS: pulsar://pulsar:6650
Expand Down
7 changes: 3 additions & 4 deletions scripts/integration/redis/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
args:
- --features
features:
- redis-integration-tests
- --lib
- '::redis::'

test_filter: "::redis::"

env:
REDIS_URL: redis://redis:6379/0
Expand Down
9 changes: 5 additions & 4 deletions scripts/integration/shutdown/test.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
args:
- --features
- shutdown-tests
- --test
- integration
- --test-threads
- '4'

features:
- shutdown-tests

test: "integration"

env:
KAFKA_HOST: kafka

Expand Down
Loading

0 comments on commit 2e0de1f

Please sign in to comment.