Skip to content

Commit

Permalink
Make user.group.name optional in system test on Windows. (#10404)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Wurm committed Jan 30, 2019
1 parent 55c5523 commit 9d8de3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/auditbeat/tests/system/test_metricsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ def test_metricset_process(self):
"""

fields = ["process.pid", "process.ppid", "process.name", "process.executable", "process.args",
"process.start", "process.working_directory", "user.id", "user.group.id", "user.group.name"]
"process.start", "process.working_directory", "user.id", "user.group.id"]

# Windows does not have effective and saved IDs, and user.name is not always filled for system processes.
if sys.platform != "win32":
fields.extend(["user.effective.id", "user.saved.id", "user.effective.group.id", "user.saved.group.id",
"user.name"])
"user.name", "user.group.name"])

# Metricset is experimental and that generates a warning, TODO: remove later
self.check_metricset("system", "process", COMMON_FIELDS + fields, warnings_allowed=True)
Expand Down

0 comments on commit 9d8de3e

Please sign in to comment.