@@ -17,13 +17,14 @@ import (
17
17
18
18
"gopkg.in/yaml.v2"
19
19
20
+ "github.com/gofrs/uuid/v5"
21
+ "github.com/stretchr/testify/require"
22
+
20
23
"github.com/elastic/elastic-agent-libs/kibana"
21
24
"github.com/elastic/elastic-agent-libs/testing/estools"
22
25
atesting "github.com/elastic/elastic-agent/pkg/testing"
23
26
"github.com/elastic/elastic-agent/pkg/testing/define"
24
27
"github.com/elastic/elastic-agent/pkg/testing/tools/testcontext"
25
- "github.com/gofrs/uuid/v5"
26
- "github.com/stretchr/testify/require"
27
28
)
28
29
29
30
var (
@@ -308,22 +309,19 @@ func TestAgentMonitoring(t *testing.T) {
308
309
// Expected to change between agentDocs and OtelDocs
309
310
"@timestamp" ,
310
311
"agent.ephemeral_id" ,
312
+ // agent.id is different because it's the id of the underlying beat
311
313
"agent.id" ,
314
+ // agent.version is different because we force version 9.0.0 in CI
312
315
"agent.version" ,
316
+ // elastic_agent.id is different because we currently start a new agent in the second subtest
317
+ // this should be fixed in the future
318
+ "elastic_agent.id" ,
313
319
"data_stream.namespace" ,
314
320
"log.file.inode" ,
315
321
"log.file.fingerprint" ,
316
322
"log.file.path" ,
317
323
"log.offset" ,
318
-
319
- // needs investigation
320
- "event.agent_id_status" ,
321
324
"event.ingested" ,
322
-
323
- // elastic_agent * fields are hardcoded in processor list for now which is why they differ
324
- "elastic_agent.id" ,
325
- "elastic_agent.snapshot" ,
326
- "elastic_agent.version" ,
327
325
}
328
326
329
327
AssertMapsEqual (t , agent , otel , ignoredFields , "expected documents to be equal" )
0 commit comments