CIAM-1692 OfflineTokenSpringBootTest is failing in pipeline due to Hamcrest dependency (#9300)

This commit is contained in:
Martin Bartoš 2021-12-22 13:59:29 +01:00 committed by GitHub
parent dff79cee3c
commit 6d0b551b5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,7 +221,7 @@ public class AssertEvents implements TestRule {
.user(defaultUserId()) .user(defaultUserId())
.ipAddress( .ipAddress(
System.getProperty("auth.server.host", "localhost").contains("localhost") System.getProperty("auth.server.host", "localhost").contains("localhost")
? CoreMatchers.anyOf(is(DEFAULT_IP_ADDRESS), is(DEFAULT_IP_ADDRESS_V6), is(DEFAULT_IP_ADDRESS_V6_SHORT)) ? Matchers.anyOf(is(DEFAULT_IP_ADDRESS), is(DEFAULT_IP_ADDRESS_V6), is(DEFAULT_IP_ADDRESS_V6_SHORT))
: Matchers.any(String.class)) : Matchers.any(String.class))
.session((String) null) .session((String) null)
.event(event); .event(event);