diff --git a/swh/search/tests/conftest.py b/swh/search/tests/conftest.py --- a/swh/search/tests/conftest.py +++ b/swh/search/tests/conftest.py @@ -70,6 +70,9 @@ "-Des.path.conf={}".format(conf_dir), "-Des.bundled_jdk=true", "-Dlog4j2.disable.jmx=true", + # fix UnsupportedOperationException related to deprecated Security Manager + # when using JDK >= 18 + "-Djava.security.manager=allow", "-cp", "{}/lib/*".format(es_home), "org.elasticsearch.bootstrap.Elasticsearch",