Skip to content

Commit

Permalink
fix(test): fix typos, missing exporters from conf gen test
Browse files Browse the repository at this point in the history
Signed-off-by: Szilard Parrag <szilard.parrag@axoflow.com>
  • Loading branch information
OverOrion committed Jan 29, 2024
1 parent bc083af commit 7646384
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions e2e/e2e_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ create_if_does_not_exist() {

KIND_CLUSTER_NAME=${KIND_CLUSTER_NAME_E2E:-so-e2e}
NO_KIND_CLEANUP=${NO_KIND_CLEANUP:-}
CI_MODE=${CI_MODE:-}
# Backup current kubernetes context
CURRENT_K8S_CTX=$(kubectl config view | grep "current" | cut -f 2 -d : | xargs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ receivers:
exporters:
logging/debug:
verbosity: detailed
otlp/collector_otelp-test-output:
otlp/collector_otlp-test-output:
endpoint: receiver-collector.example-tenant-ns.svc.cluster.local:4317
tls:
insecure: true
otlp/collector_otelp-test-output-2:
otlp/collector_otlp-test-output-2:
endpoint: receiver-collector.example-tenant-ns.svc.cluster.local:4317
tls:
insecure: true
Expand Down Expand Up @@ -123,6 +123,8 @@ service:
logs/tenant_example-tenant_subscription_subscription-example-1:
receivers: [routing/tenant_example-tenant_subscriptions]
processors: [attributes/subscription_subscription-example-1]
exporters: [otlp/collector_otlp-test-output]
logs/tenant_example-tenant_subscription_subscription-example-2:
receivers: [routing/tenant_example-tenant_subscriptions]
processors: [attributes/subscription_subscription-example-2]
exporters: [otlp/collector_otlp-test-output-2]
8 changes: 4 additions & 4 deletions internal/controller/telemetry/otel_conf_gen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestOtelColConfComplex(t *testing.T) {
OTTL: "route()",
Outputs: []v1alpha1.NamespacedName{
{
Name: "otel-test-output",
Name: "otlp-test-output",
Namespace: "collector",
},
},
Expand All @@ -57,7 +57,7 @@ func TestOtelColConfComplex(t *testing.T) {
OTTL: "route()",
Outputs: []v1alpha1.NamespacedName{
{
Name: "otel-test-output-2",
Name: "otlp-test-output-2",
Namespace: "collector",
},
},
Expand Down Expand Up @@ -93,7 +93,7 @@ func TestOtelColConfComplex(t *testing.T) {
Outputs: []v1alpha1.OtelOutput{
{
ObjectMeta: metav1.ObjectMeta{
Name: "otelp-test-output",
Name: "otlp-test-output",
Namespace: "collector",
},
Spec: v1alpha1.OtelOutputSpec{
Expand All @@ -109,7 +109,7 @@ func TestOtelColConfComplex(t *testing.T) {
},
{
ObjectMeta: metav1.ObjectMeta{
Name: "otelp-test-output-2",
Name: "otlp-test-output-2",
Namespace: "collector",
},
Spec: v1alpha1.OtelOutputSpec{
Expand Down

0 comments on commit 7646384

Please sign in to comment.