Skip to content

Commit

Permalink
chore: convert test config to yaml (vectordotdev#18856)
Browse files Browse the repository at this point in the history
  • Loading branch information
pront authored Oct 19, 2023
1 parent ab8f8d2 commit 8b00214
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions lib/k8s-e2e-tests/tests/vector-agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,24 @@ const CUSTOM_RESOURCE_VECTOR_CONFIG: &str = indoc! {r#"
metadata:
name: vector-agent-config
data:
vector.toml: |
data_dir = "/vector-data-dir"
[api]
enabled = false
[sources.kubernetes_logs]
type = "kubernetes_logs"
ingestion_timestamp_field = ".ingest_timestamp"
[sinks.stdout]
type = "console"
inputs = ["kubernetes_logs"]
encoding.codec = "json"
vector.yaml: |
data_dir: "/vector-data-dir"
api:
enabled: false
sources:
kubernetes_logs:
type: "kubernetes_logs"
ingestion_timestamp_field: ".ingest_timestamp"
sinks:
stdout:
type: "console"
inputs:
- "kubernetes_logs"
encoding:
codec: "json"
"#};

/// This test validates that vector picks up logs at the simplest case
Expand Down

0 comments on commit 8b00214

Please sign in to comment.