Skip to content

Commit

Permalink
Changes for OpenSearch end-to-end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Apr 1, 2024
1 parent 18416ff commit e1c866f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion config/end_to_end/output_opensearch.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ARG GIT_REPOSITORY=https://github.com/log2timeline/plaso.git
ARG OPENSEARCH_VERSION=2.12.0

ENV DEBIAN_FRONTEND=noninteractive
ENV OPENSEARCH_INITIAL_ADMIN_PASSWORD="Tempor@ryf0rT3st"

# Combining the apt-get commands into a single run reduces the size of the resulting image.
# The apt-get installations below are interdependent and need to be done in sequence.
Expand Down
2 changes: 1 addition & 1 deletion config/jenkins/run_end_to_end_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ COMMAND="./tests/end-to-end.py --config /config/${CONFIGURATION_NAME}.ini --refe

if test "${CONFIGURATION_NAME}" = "output_opensearch";
then
COMMAND="(cd /home/test/opensearch && su -c './opensearch-tar-install.sh -Eplugins.security.disabled=true' opensearch &); sleep 180; ${COMMAND}";
COMMAND="(cd /home/test/opensearch && su -c 'OPENSEARCH_INITIAL_ADMIN_PASSWORD=Tempor@ryf0rT3st; ./opensearch-tar-install.sh -Eplugins.security.disabled=true' opensearch &); sleep 180; ${COMMAND}";
fi

docker run -v "${CONFIGURATION_DIRECTORY}:/config:z" -v "${RESULTS_DIRECTORY}:/home/test/plaso/plaso-out:z" -v "${SOURCES_DIRECTORY}:/sources:z" log2timeline/plaso /bin/bash -c "${COMMAND}"

0 comments on commit e1c866f

Please sign in to comment.