Skip to content

Commit

Permalink
tests(integration): expose helm version (#2432)
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
  • Loading branch information
sumo-drosiek authored Jul 15, 2022
1 parent bbf2805 commit f3646b1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/internal/stepfuncs/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()`.)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f3646b1

Please sign in to comment.