Skip to content

Commit

Permalink
Fixed entity store unit tests for host.os fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredburgettelastic committed Oct 22, 2024
1 parent 01e0ed9 commit 209d574
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ describe('getUnitedEntityDefinition', () => {
"host.name": Object {
"type": "keyword",
},
"host.os.name": Object {
"type": "keyword",
},
"host.os.type": Object {
"type": "keyword",
},
"host.risk.calculated_level": Object {
"type": "keyword",
},
Expand Down Expand Up @@ -95,6 +101,16 @@ describe('getUnitedEntityDefinition', () => {
"maxLength": 10,
"operation": "collect_values",
},
Object {
"field": "host.os.name",
"maxLength": 10,
"operation": "collect_values",
},
Object {
"field": "host.os.type",
"maxLength": 10,
"operation": "collect_values",
},
Object {
"field": "host.ip",
"maxLength": 10,
Expand Down Expand Up @@ -185,6 +201,22 @@ describe('getUnitedEntityDefinition', () => {
"destination": "host.id",
"source": "host.id",
},
Object {
"aggregation": Object {
"limit": 10,
"type": "terms",
},
"destination": "host.os.name",
"source": "host.os.name",
},
Object {
"aggregation": Object {
"limit": 10,
"type": "terms",
},
"destination": "host.os.type",
"source": "host.os.type",
},
Object {
"aggregation": Object {
"limit": 10,
Expand Down

0 comments on commit 209d574

Please sign in to comment.