Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Logstash/ES versions being used in the tests #687

Merged
merged 26 commits into from
Apr 17, 2024
2 changes: 1 addition & 1 deletion tests/scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -ex
# delete any __pycache__ folders to avoid hard-to-debug caching issues
find . -name __pycache__ -type d -exec rm -r '{}' + || true
PYTEST_ARGS=("${PYTEST_ARGS}")
py.test -vv "${PYTEST_ARGS[*]}" "${PYTEST_JUNIT}" tests
py.test -vv "${PYTEST_ARGS[*]}" "${PYTEST_JUNIT}" tests -s
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am leaving the -s flag here so we can see the logs when make coverage runs. Otherwise, if the tests get stuck again, we have no way to know what is stopping them.


if [[ "${PYTEST_ADDOPTS}" == *"--cov"* ]]; then
# Transform coverage to xml so Jenkins can parse and report it
Expand Down
2 changes: 1 addition & 1 deletion tests/testcontainers/es.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ElasticsearchContainer(DockerContainer): # type: ignore
"""

_DEFAULT_IMAGE = "docker.elastic.co/elasticsearch/elasticsearch"
_DEFAULT_VERSION = "7.17.9"
_DEFAULT_VERSION = "7.17.20"
_DEFAULT_PORT = 9200
_DEFAULT_USERNAME = DEFAULT_USERNAME
_DEFAULT_PASSWORD = DEFAULT_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion tests/testcontainers/logstash.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class LogstashContainer(DockerContainer): # type: ignore
"""

_DEFAULT_IMAGE = "docker.elastic.co/logstash/logstash"
_DEFAULT_VERSION = "7.17.0"
_DEFAULT_VERSION = "7.17.20"
_DEFAULT_PORT = 5044
_DEFAULT_API_PORT = 9600
_DEFAULT_USERNAME = "USERNAME"
Expand Down
Loading