-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23212 from wazuh/merge-4.9.0-into-master
Merge 4.9.0 into master
- Loading branch information
Showing
349 changed files
with
34,497 additions
and
40,699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
.github/workflows/integration-tests-fim-tier-0-1-macos.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: Integration tests for fim on MacOS - Tier 0 and 1 | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
base_branch: | ||
description: 'Base branch' | ||
required: true | ||
default: 'main' | ||
pull_request: | ||
paths: | ||
- ".github/workflows/integration-tests-fim-tier-0-1-macos.yml" | ||
- "src/config/syscheck-config.c" | ||
- "src/config/syscheck-config.h" | ||
- "src/syscheckd/**" | ||
- "src/Makefile" | ||
- "tests/integration/conftest.py" | ||
- "tests/integration/test_fim/**" | ||
|
||
jobs: | ||
build: | ||
env: | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
BRANCH_BASE: ${{ github.base_ref || inputs.base_branch }} | ||
runs-on: macos-13 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version-file: ".github/workflows/.python-version-it" | ||
architecture: x64 | ||
# Build wazuh agent for macOS. | ||
- name: Build wazuh agent for macOS | ||
run: | | ||
make deps -C src TARGET=agent -j2 | ||
make -C src TARGET=agent -j2 | ||
# Install wazuh agent for macOS. | ||
- name: Install wazuh agent for macOS | ||
run: | | ||
echo 'USER_LANGUAGE="en"' > ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
echo 'USER_NO_STOP="y"' >> ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
echo 'USER_INSTALL_TYPE="agent"' >> ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
echo "USER_DIR=/Library/Ossec" >> ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
echo 'USER_ENABLE_EMAIL="n"' >> ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
echo 'USER_ENABLE_SYSCHECK="n"' >> ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
echo 'USER_ENABLE_ROOTCHECK="n"' >> ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
echo 'USER_ENABLE_OPENSCAP="n"' >> ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
echo 'USER_WHITE_LIST="n"' >> ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
echo 'USER_ENABLE_SYSLOG="n"' >> ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
echo 'USER_ENABLE_AUTHD="n"' >> ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
echo 'USER_AUTO_START="y"' >> ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
echo 'USER_AGENT_SERVER_IP="127.0.0.1"' >> ./etc/preloaded-vars.conf | ||
echo "" >> ./etc/preloaded-vars.conf | ||
sudo sh install.sh | ||
rm ./etc/preloaded-vars.conf | ||
# Download and install integration tests framework. | ||
- name: Download and install integration tests framework | ||
run: | | ||
if [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then | ||
QA_BRANCH=${BRANCH_NAME} | ||
elif [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then | ||
QA_BRANCH=${BRANCH_BASE} | ||
else | ||
QA_BRANCH="main" | ||
fi | ||
git clone -b ${QA_BRANCH} --single-branch https://github.com/wazuh/qa-integration-framework.git | ||
sudo pip install qa-integration-framework/ | ||
sudo rm -rf qa-integration-framework/ | ||
# Run fim integration tests. | ||
- name: Run fim integration tests | ||
run: | | ||
cd tests/integration | ||
sudo python -m pytest --tier 0 --tier 1 test_fim/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.