HomeSoftware Heritage

conftest: Fix tests hang with elasticsearch 7.17.3

Description

conftest: Fix tests hang with elasticsearch 7.17.3

elasticsearch 7.17.3 uses JDK >= 18 which changed the value of
"java.security.manager" property to "disallow".

As a consequence a "java.lang.UnsupportedOperationException" is
now raised when bootstrapping elasticsearch server used in tests.

So explicitely set the "java.security.manager" property to "allow"
to avoid that exception raising when elasticsearch setups its custom
security manager.

Closes T4192

Details

Provenance
anlambertAuthored on Apr 25 2022, 12:13 PM
anlambertPushed on Apr 25 2022, 1:40 PM
Differential Revision
D7640: conftest: Fix tests hang with elasticsearch 7.17.3
Parents
rDSEA418a660b8a6d: pre-commit: Remove codespell commit-msg hook
Branches
Unknown
Tags
Unknown
Tasks
T4192: Unstuck swh.search build
Build Status
Buildable 28719
Build 44877: test-and-buildJenkins console · Jenkins