diff --git a/.travis.yml b/.travis.yml index 60282e2c955e..7ea410b0bfe6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,6 +62,10 @@ jobs: env: TARGETS="-C auditbeat crosscompile" go: $GO_VERSION stage: test + - os: linux + env: TARGETS="-C x-pack/auditbeat testsuite" + go: $GO_VERSION + stage: test # Libbeat - os: linux diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 62790272e476..11e8a3ac5290 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -97,6 +97,8 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha1...master[Check the HEAD d *Auditbeat* +- Add system module. {pull}9546[9546] + *Filebeat* - Added `detect_null_bytes` selector to detect null bytes from a io.reader. {pull}9210[9210] diff --git a/Makefile b/Makefile index 20af5832d580..ce6953c2c4d5 100644 --- a/Makefile +++ b/Makefile @@ -13,11 +13,15 @@ REVIEWDOG_OPTIONS?=-diff "git diff master" REVIEWDOG_REPO=github.com/haya14busa/reviewdog/cmd/reviewdog XPACK_SUFFIX=x-pack/ +# PROJECTS_XPACK_PKG is a list of Beats that have independent packaging support +# in the x-pack directory (rather than having the OSS build produce both sets +# of artifacts). This will be removed once we complete the transition. +PROJECTS_XPACK_PKG=x-pack/auditbeat # PROJECTS_XPACK_MAGE is a list of Beats whose primary build logic is based in # Mage. For compatibility with CI testing these projects support a subset of the # makefile targets. After all Beats converge to primarily using Mage we can # remove this and treat all sub-projects the same. -PROJECTS_XPACK_MAGE=x-pack/filebeat x-pack/metricbeat +PROJECTS_XPACK_MAGE=x-pack/filebeat x-pack/metricbeat $(PROJECTS_XPACK_PKG) # Runs complete testsuites (unit, system, integration) for all beats with coverage and race detection. # Also it builds the docs and the generators @@ -156,8 +160,8 @@ snapshot: # Builds a release. .PHONY: release release: beats-dashboards - @$(foreach var,$(BEATS),$(MAKE) -C $(var) release || exit 1;) - @$(foreach var,$(BEATS), \ + @$(foreach var,$(BEATS) $(PROJECTS_XPACK_PKG),$(MAKE) -C $(var) release || exit 1;) + @$(foreach var,$(BEATS) $(PROJECTS_XPACK_PKG), \ test -d $(var)/build/distributions && test -n "$$(ls $(var)/build/distributions)" || exit 0; \ mkdir -p build/distributions/$(subst $(XPACK_SUFFIX),'',$(var)) && mv -f $(var)/build/distributions/* build/distributions/$(subst $(XPACK_SUFFIX),'',$(var))/ || exit 1;) diff --git a/Vagrantfile b/Vagrantfile index 310e5e097596..b795898812db 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -37,7 +37,7 @@ cmd /c mklink /d C:\\Gopath\\src\\github.com\\elastic\\beats \\\\vboxsvr\\vagran echo "Installing gvm to manage go version" [Net.ServicePointManager]::SecurityProtocol = "tls12" -Invoke-WebRequest -URI https://github.com/andrewkroh/gvm/releases/download/v0.0.5/gvm-windows-amd64.exe -Outfile C:\Windows\System32\gvm.exe +Invoke-WebRequest -URI https://github.com/andrewkroh/gvm/releases/download/v0.1.0/gvm-windows-amd64.exe -Outfile C:\Windows\System32\gvm.exe C:\Windows\System32\gvm.exe --format=powershell #{GO_VERSION} | Invoke-Expression go version @@ -72,8 +72,9 @@ SCRIPT $linuxGvmProvision = <