Fixing the CI
Moving the dev test and build to port 5442 from 5432 to avoid conflicting with the running postgresql
This commit is contained in:
		| @ -6,4 +6,4 @@ services: | |||||||
|       - 'POSTGRES_USER=devel' |       - 'POSTGRES_USER=devel' | ||||||
|       - 'POSTGRES_PASSWORD=devel' |       - 'POSTGRES_PASSWORD=devel' | ||||||
|     ports: |     ports: | ||||||
|       - '5432:5432' |       - '5442:5432' | ||||||
|  | |||||||
| @ -17,7 +17,7 @@ public class JdbcConfig { | |||||||
| 	public DataSource psqlSource(){ | 	public DataSource psqlSource(){ | ||||||
| 		DriverManagerDataSource source = new DriverManagerDataSource(); | 		DriverManagerDataSource source = new DriverManagerDataSource(); | ||||||
| 		source.setDriverClassName("org.postgresql.Driver"); | 		source.setDriverClassName("org.postgresql.Driver"); | ||||||
| 		source.setUrl("jdbc:postgresql://localhost:5432/clyde"); | 		source.setUrl("jdbc:postgresql://localhost:5442/clyde"); | ||||||
| 		source.setUsername("devel"); | 		source.setUsername("devel"); | ||||||
| 		source.setPassword("devel"); | 		source.setPassword("devel"); | ||||||
|  |  | ||||||
|  | |||||||
| @ -53,7 +53,7 @@ public class StorageControllerTest { | |||||||
|             .withDatabaseName("clyde") |             .withDatabaseName("clyde") | ||||||
|             .withUsername("devel") |             .withUsername("devel") | ||||||
|             .withPassword("devel") |             .withPassword("devel") | ||||||
|             .withCreateContainerCmdModifier(cmd -> cmd.withHostConfig(new HostConfig().withPortBindings(new PortBinding(Ports.Binding.bindPort(5432), new ExposedPort(5432))))); |             .withCreateContainerCmdModifier(cmd -> cmd.withHostConfig(new HostConfig().withPortBindings(new PortBinding(Ports.Binding.bindPort(5442), new ExposedPort(5432))))); | ||||||
|  |  | ||||||
|     @BeforeAll |     @BeforeAll | ||||||
|     static void beforeAll(){ |     static void beforeAll(){ | ||||||
|  | |||||||
| @ -55,7 +55,7 @@ public class UserControllerTest { | |||||||
|             .withDatabaseName("clyde") |             .withDatabaseName("clyde") | ||||||
|             .withUsername("devel") |             .withUsername("devel") | ||||||
|             .withPassword("devel") |             .withPassword("devel") | ||||||
|             .withCreateContainerCmdModifier(cmd -> cmd.withHostConfig(new HostConfig().withPortBindings(new PortBinding(Ports.Binding.bindPort(5432), new ExposedPort(5432))))); |             .withCreateContainerCmdModifier(cmd -> cmd.withHostConfig(new HostConfig().withPortBindings(new PortBinding(Ports.Binding.bindPort(5442), new ExposedPort(5432))))); | ||||||
|  |  | ||||||
|     @BeforeAll |     @BeforeAll | ||||||
|     static void beforeAll(){ |     static void beforeAll(){ | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user