Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.test.context.DynamicPropertyRegistry;
import org.springframework.test.context.DynamicPropertySource;
import org.springframework.util.SocketUtils;

@SpringBootTest(
properties = {
Expand All @@ -52,7 +53,7 @@ public class CoreServiceAuthenticationIT extends BaseIT {
@Autowired FeastProperties feastProperties;

private static int feast_core_port;
private static int JWKS_PORT = 45124;
private static int JWKS_PORT = SocketUtils.findAvailableTcpPort();

private static JwtHelper jwtHelper = new JwtHelper();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.test.context.DynamicPropertyRegistry;
import org.springframework.test.context.DynamicPropertySource;
import org.springframework.util.SocketUtils;
import org.testcontainers.containers.DockerComposeContainer;
import sh.ory.keto.ApiClient;
import sh.ory.keto.ApiException;
Expand All @@ -73,7 +74,7 @@ public class CoreServiceAuthorizationIT extends BaseIT {
private static int KETO_PORT = 4466;
private static int KETO_ADAPTOR_PORT = 8080;
private static int feast_core_port;
private static int JWKS_PORT = 45124;
private static int JWKS_PORT = SocketUtils.findAvailableTcpPort();

private static JwtHelper jwtHelper = new JwtHelper();

Expand Down