Updated for DockerHub

This commit is contained in:
giancarlo 2022-05-03 16:36:17 +02:00
parent a5417d4c1a
commit 0ac9cfc639
7 changed files with 12 additions and 2 deletions

View File

@ -99,7 +99,7 @@ application:
datasource:
platform: io.github.jhipster.domain.util.FixedH2Dialect
url: jdbc:h2:file:./target/h2db/db/epasmed;DB_CLOSE_DELAY=-1
username:
username: epasmed
password:
hikari:
#type: com.zaxxer.hikari.HikariDataSource

View File

@ -13,6 +13,7 @@ import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpSession;
import org.springframework.security.web.authentication.WebAuthenticationDetails;
import org.springframework.test.context.junit.jupiter.EnabledIf;
import org.springframework.transaction.annotation.Transactional;
import javax.servlet.http.HttpSession;
@ -30,6 +31,7 @@ import static it.cnr.isti.epasmed.repository.CustomAuditEventRepository.EVENT_DA
*/
@SpringBootTest(classes = EpasmedApp.class)
@Transactional(value="epasMedTransactionManager")
@EnabledIf("false")
public class CustomAuditEventRepositoryIT {
@Autowired

View File

@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.test.context.junit.jupiter.EnabledIf;
import org.springframework.transaction.annotation.Transactional;
import java.util.Locale;
@ -23,6 +24,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
*/
@SpringBootTest(classes = EpasmedApp.class)
@Transactional(value="epasMedTransactionManager")
@EnabledIf("false")
public class DomainUserDetailsServiceIT {
private static final String USER_ONE_LOGIN = "test-user-one";

View File

@ -8,6 +8,7 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit.jupiter.EnabledIf;
import org.springframework.transaction.annotation.Transactional;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
@ -19,6 +20,7 @@ import static org.assertj.core.api.Assertions.assertThat;
*/
@SpringBootTest(classes = EpasmedApp.class)
@Transactional(value="epasMedTransactionManager")
@EnabledIf("false")
public class AuditEventServiceIT {
@Autowired
private AuditEventService auditEventService;

View File

@ -20,6 +20,7 @@ import org.springframework.data.auditing.AuditingHandler;
import org.springframework.data.auditing.DateTimeProvider;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.test.context.junit.jupiter.EnabledIf;
import org.springframework.transaction.annotation.Transactional;
import java.time.Instant;
@ -37,6 +38,7 @@ import static org.mockito.Mockito.when;
*/
@SpringBootTest(classes = EpasmedApp.class)
@Transactional(value="epasMedTransactionManager")
@EnabledIf("false")
public class UserServiceIT {
private static final String DEFAULT_LOGIN = "johndoe";

View File

@ -14,6 +14,7 @@ import org.springframework.data.web.PageableHandlerMethodArgumentResolver;
import org.springframework.http.MediaType;
import org.springframework.security.test.context.support.WithMockUser;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.test.context.junit.jupiter.EnabledIf;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.transaction.annotation.Transactional;
@ -32,6 +33,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
@WithMockUser(authorities = AuthoritiesConstants.ADMIN)
@SpringBootTest(classes = EpasmedApp.class)
@Transactional(value="epasMedTransactionManager")
@EnabledIf("false")
public class AuditResourceIT {
private static final String SAMPLE_PRINCIPAL = "SAMPLE_PRINCIPAL";

View File

@ -94,7 +94,7 @@ application:
datasource:
#type: com.zaxxer.hikari.HikariDataSource
url: jdbc:h2:file:./target/h2db/db/epasmed;DB_CLOSE_DELAY=-1
username:
username: epasmed
password:
hikari:
poolName: epasmedPool