Skip to content

Commit 9d1eabf

Browse files
committed
Explicitly set the runtime in monitoring integration test
1 parent 83a9ba5 commit 9d1eabf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/integration/ess/beat_receivers_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,12 @@ func TestClassicAndReceiverAgentMonitoring(t *testing.T) {
217217
require.NoError(t, err, "error unmarshalling policy: %s", string(policyBytes))
218218
d, prs := policy.Outputs["default"]
219219
require.True(t, prs, "default must be in outputs")
220-
d.ApiKey = string(apiKey)
220+
d.ApiKey = apiKey
221221
policy.Outputs["default"] = d
222222

223223
processNamespace := fmt.Sprintf("%s-%s", info.Namespace, "process")
224224
policy.Agent.Monitoring["namespace"] = processNamespace
225+
policy.Agent.Monitoring["_runtime_experimental"] = "process"
225226

226227
updatedPolicyBytes, err := yaml.Marshal(policy)
227228
require.NoErrorf(t, err, "error marshalling policy, struct was %v", policy)

0 commit comments

Comments
 (0)