From f3646b105eb579750e31a3644525edf33f741c7e Mon Sep 17 00:00:00 2001 From: Dominik Rosiek <58699848+sumo-drosiek@users.noreply.github.com> Date: Fri, 15 Jul 2022 17:24:02 +0200 Subject: [PATCH] tests(integration): expose helm version (#2432) Signed-off-by: Dominik Rosiek --- tests/integration/internal/stepfuncs/helm.go | 10 ++++++++++ tests/integration/main_test.go | 2 ++ .../values_helm_opentelemetry_operator_enabled.yaml | 8 ++++++++ 3 files changed, 20 insertions(+) diff --git a/tests/integration/internal/stepfuncs/helm.go b/tests/integration/internal/stepfuncs/helm.go index 3916127692..993af404a1 100644 --- a/tests/integration/internal/stepfuncs/helm.go +++ b/tests/integration/internal/stepfuncs/helm.go @@ -24,6 +24,16 @@ const ( envNameHelmNoDependencyUpdate = "HELM_NO_DEPENDENCY_UPDATE" ) +// HelmVersion returns a features.Func that will run helm version +func HelmVersionOpt() features.Func { + return func(ctx context.Context, t *testing.T, envConf *envconf.Config) context.Context { + _, err := helm.RunHelmCommandAndGetOutputE(t, ctxopts.HelmOptions(ctx), "version") + require.NoError(t, err) + + return ctx + } +} + // HelmDependencyUpdateOpt returns a features.Func that will run helm dependency update using // the provided path as an argument. // diff --git a/tests/integration/main_test.go b/tests/integration/main_test.go index 0866f16037..c8ec84b8ab 100644 --- a/tests/integration/main_test.go +++ b/tests/integration/main_test.go @@ -73,6 +73,8 @@ func ConfigureTestEnv(testenv env.Environment) { stepfuncs.KubectlCreateNamespaceOpt(openTelemetryOperatorNamespaces[1]), // Create Test Namespace stepfuncs.KubectlCreateNamespaceTestOpt(), + stepfuncs.SetHelmOptionsTestOpt([]string{}), + stepfuncs.HelmVersionOpt(), // SetHelmOptionsTestOpt picks a values file from `values` directory // based on the test name ( the details of name generation can be found // in `strings.ValueFileFromT()`.) diff --git a/tests/integration/values/values_helm_opentelemetry_operator_enabled.yaml b/tests/integration/values/values_helm_opentelemetry_operator_enabled.yaml index 4afcbedd6b..aba13e2f48 100644 --- a/tests/integration/values/values_helm_opentelemetry_operator_enabled.yaml +++ b/tests/integration/values/values_helm_opentelemetry_operator_enabled.yaml @@ -8,6 +8,14 @@ opentelemetry-operator: env: WATCH_NAMESPACE: "ot-operator1,ot-operator2" +otelgateway: + config: + processors: + memory_limiter: + # fix for vagrnt + # failt to create "memory_limiter" processor, in pipeline "traces": failed to get total memory, use fixed memory settings (limit_mib) + limit_mib: 8192 + # Request less resources so that this fits on Github actions runners environment fluentd: events: