Skip to content

Commit 03235a8

Browse files
committed
Use indices instead of allow_older_version
1 parent f156f62 commit 03235a8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

internal/pkg/agent/application/coordinator/coordinator_unit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ outputs:
11071107
type: elasticsearch
11081108
hosts:
11091109
- localhost:9200
1110-
allow_older_versions: false # not supported by the elasticsearch exporter
1110+
indices: [] # not supported by the elasticsearch exporter
11111111
inputs:
11121112
- id: test-input
11131113
type: filestream

internal/pkg/otel/translate/otelconfig_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,14 +1141,14 @@ func TestVerifyComponentIsOtelSupported(t *testing.T) {
11411141
ID: "filestream-default",
11421142
Type: client.UnitTypeOutput,
11431143
Config: component.MustExpectedConfig(map[string]any{
1144-
"type": "elasticsearch",
1145-
"hosts": []any{"localhost:9200"},
1146-
"allow_older_versions": false,
1144+
"type": "elasticsearch",
1145+
"hosts": []any{"localhost:9200"},
1146+
"indices": []any{},
11471147
}),
11481148
},
11491149
},
11501150
},
1151-
expectedError: "unsupported configuration for unsupported-config: error translating config for output: default, unit: filestream-default, error: allow_older_versions:false is currently not supported: unsupported operation",
1151+
expectedError: "unsupported configuration for unsupported-config: error translating config for output: default, unit: filestream-default, error: indices is currently not supported: unsupported operation",
11521152
},
11531153
}
11541154

testing/integration/ess/beat_receivers_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ outputs:
823823
type: elasticsearch
824824
hosts: [http://localhost:9200]
825825
api_key: placeholder
826-
allow_older_versions: false # not supported by the elasticsearch exporter
826+
indices: [] # not supported by the elasticsearch exporter
827827
agent.monitoring.enabled: false
828828
`
829829

@@ -882,7 +882,7 @@ agent.monitoring.enabled: false
882882
require.NotNil(t, unsupportedLogRecord, "unsupported log message should be present")
883883
message, ok := unsupportedLogRecord["message"].(string)
884884
require.True(t, ok, "log message field should be a string")
885-
expectedMessage := "otel runtime is not supported for component system/metrics-default, switching to process runtime, reason: unsupported configuration for system/metrics-default: error translating config for output: default, unit: system/metrics-default, error: allow_older_versions:false is currently not supported: unsupported operation"
885+
expectedMessage := "otel runtime is not supported for component system/metrics-default, switching to process runtime, reason: unsupported configuration for system/metrics-default: error translating config for output: default, unit: system/metrics-default, error: indices is currently not supported: unsupported operation"
886886
assert.Equal(t, expectedMessage, message)
887887
}
888888

0 commit comments

Comments
 (0)