Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ scopes:
- aws_kinesis_streams sink # Anything `aws_kinesis_streams` sink related
- aws_s3 sink # Anything `aws_s3` sink related
- aws_sqs sink # Anything `aws_sqs` sink related
- axiom sink # Anything `axiom` sink related

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to me/@jszwedko - we'll need to add this to the TF resource

- azure_blob sink # Anything `azure_blob` sink related
- azure_monitor_logs sink # Anything `azure_monitor_logs` sink related
- blackhole sink # Anything `blackhole` sink related
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
matrix:
include:
- test: 'aws'
- test: 'axiom'
- test: 'azure'
- test: 'clickhouse'
- test: 'datadog-agent'
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ sinks-logs = [
"sinks-aws_kinesis_streams",
"sinks-aws_s3",
"sinks-aws_sqs",
"sinks-axiom",
"sinks-azure_blob",
"sinks-azure_monitor_logs",
"sinks-blackhole",
Expand Down Expand Up @@ -660,6 +661,7 @@ sinks-aws_kinesis_firehose = ["aws-core", "dep:aws-sdk-firehose"]
sinks-aws_kinesis_streams = ["aws-core", "dep:aws-sdk-kinesis"]
sinks-aws_s3 = ["dep:base64", "dep:md-5", "aws-core", "dep:aws-sdk-s3"]
sinks-aws_sqs = ["aws-core", "dep:aws-sdk-sqs"]
sinks-axiom = ["sinks-elasticsearch"]
sinks-azure_blob = ["dep:azure_core", "dep:azure_identity", "dep:azure_storage", "dep:azure_storage_blobs"]
sinks-azure_monitor_logs = []
sinks-blackhole = []
Expand Down Expand Up @@ -714,6 +716,7 @@ nightly = []
# Testing-related features
all-integration-tests = [
"aws-integration-tests",
"axiom-integration-tests",
"azure-integration-tests",
"clickhouse-integration-tests",
"datadog-agent-integration-tests",
Expand Down Expand Up @@ -766,6 +769,7 @@ aws-kinesis-firehose-integration-tests = ["sinks-aws_kinesis_firehose", "dep:aws
aws-kinesis-streams-integration-tests = ["sinks-aws_kinesis_streams"]
aws-s3-integration-tests = ["sinks-aws_s3", "sources-aws_s3"]
aws-sqs-integration-tests = ["sinks-aws_sqs", "sources-aws_sqs"]
axiom-integration-tests = ["sinks-axiom"]
azure-blob-integration-tests = ["sinks-azure_blob"]
clickhouse-integration-tests = ["sinks-clickhouse"]
datadog-agent-integration-tests = ["sources-datadog_agent"]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ test-behavior: test-behavior-transforms test-behavior-formats test-behavior-conf

.PHONY: test-integration
test-integration: ## Runs all integration tests
test-integration: test-integration-aws test-integration-azure test-integration-clickhouse test-integration-docker-logs test-integration-elasticsearch
test-integration: test-integration-aws test-integration-axiom test-integration-azure test-integration-clickhouse test-integration-docker-logs test-integration-elasticsearch
test-integration: test-integration-azure test-integration-clickhouse test-integration-docker-logs test-integration-elasticsearch
test-integration: test-integration-eventstoredb test-integration-fluent test-integration-gcp test-integration-humio test-integration-influxdb
test-integration: test-integration-kafka test-integration-logstash test-integration-loki test-integration-mongodb test-integration-nats
Expand Down
62 changes: 62 additions & 0 deletions scripts/integration/docker-compose.axiom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
version: "3"

services:
postgres:
image: postgres:13-alpine
environment:
POSTGRES_USER: axiom
POSTGRES_PASSWORD: axiom
volumes:
- postgres_data:/var/lib/postgresql/data
axiom-db:
image: axiomhq/axiom-db:latest
restart: unless-stopped
environment:
AXIOM_STORAGE: "file:///data"
AXIOM_POSTGRES_URL: "postgres://axiom:axiom@postgres?sslmode=disable&connect_timeout=5"
depends_on:
- postgres
axiom-core:
image: axiomhq/axiom-core:latest
restart: unless-stopped
environment:
AXIOM_POSTGRES_URL: "postgres://axiom:axiom@postgres?sslmode=disable&connect_timeout=5"
AXIOM_DB_URL: "http://axiom-db:8080"
AXIOM_HTTP_PORT: "80"
depends_on:
- axiom-db
ports:
- 8081:80
runner:
build:
context: ${PWD}
dockerfile: scripts/integration/Dockerfile
args:
- RUST_VERSION=${RUST_VERSION}
working_dir: /code
command:
- "cargo"
- "nextest"
- "run"
- "--no-fail-fast"
- "--no-default-features"
- "--features"
- "axiom-integration-tests"
- "--lib"
- "sinks::axiom::"
- "--"
- "--nocapture"
environment:
- AXIOM_URL=http://axiom-core
depends_on:
- axiom-core
- axiom-db
volumes:
- ${PWD}:/code
- cargogit:/usr/local/cargo/git
- cargoregistry:/usr/local/cargo/registry

volumes:
cargogit: {}
cargoregistry: {}
postgres_data: {}
Loading