From 90791186db7daa986e4ce6c7252398839a5a6c25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20=C5=9Awi=C4=85tek?= Date: Mon, 20 Dec 2021 23:08:40 +0100 Subject: [PATCH] refactor(tests): refactor integration tests so that assess fgiuncs can accept stepfuncs.Option (#2012) --- deploy/helm/sumologic/values.yaml | 30 +++- tests/integration/helm_otelcol_logs_test.go | 152 ++++++++++++++++++ .../values/values_helm_otelcol_logs.yaml | 54 +++++++ 3 files changed, 234 insertions(+), 2 deletions(-) create mode 100644 tests/integration/helm_otelcol_logs_test.go create mode 100644 tests/integration/values/values_helm_otelcol_logs.yaml diff --git a/deploy/helm/sumologic/values.yaml b/deploy/helm/sumologic/values.yaml index 5968aab4c1..850f36982e 100644 --- a/deploy/helm/sumologic/values.yaml +++ b/deploy/helm/sumologic/values.yaml @@ -4186,7 +4186,33 @@ otellogs: include_file_path: true include_file_name: false operators: - + # Find out which format is used by kubernetes + - type: router + id: get-format + routes: + - output: parser-docker + expr: '$$body matches "^\\{"' + - output: parser-crio + expr: '$$body matches "^[^ Z]+ "' + - output: parser-containerd + expr: '$$body matches "^[^ Z]+Z"' + # Parse CRI-O format + - type: regex_parser + id: parser-crio + regex: '^(?P