Skip to content

Commit fa2dbfd

Browse files
author
muriloalvesdev
committed
fix
1 parent 6b8e60c commit fa2dbfd

5 files changed

Lines changed: 5 additions & 8 deletions

File tree

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<dependency>
2525
<groupId>com.h2database</groupId>
2626
<artifactId>h2</artifactId>
27+
<scope>runtime</scope>
2728
</dependency>
2829
<dependency>
2930
<groupId>org.mockito</groupId>

src/main/resources/application-staging.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
spring.profiles.active=@activatedProperties@
22

33
spring.datasource.url=jdbc:postgresql://localhost/github_developers
4-
spring.database.driverClassName=org.postgresql.Driver
4+
spring.datasource.driver-class-name=org.postgresql.Driver
55
spring.datasource.platform=postgres
66
spring.datasource.username=postgres
77
spring.datasource.password=postgres
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
spring.profiles.active=@activatedProperties@
22

33
spring.datasource.driver-class-name=org.h2.Driver
4-
spring.datasource.url=jdbc:h2:mem:db
4+
spring.datasource.url=jdbc:h2:mem:db;DB_CLOSE_DELAY=-1
55
spring.datasource.username=test
66
spring.datasource.password=test
7-
8-
security.app.jwtSecret=XueeCy61NOddroAgE5gZn7wS
9-
security.app.jwtExpiration=43200000
7+
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
spring.profiles.active=@activatedProperties@
22

33
spring.datasource.url=jdbc:postgresql://172.17.0.2/github_developers
4-
spring.database.driverClassName=org.postgresql.Driver
4+
spring.datasource.driver-class-name=org.postgresql.Driver
55
spring.datasource.platform=postgres
66
spring.datasource.username=postgres
77
spring.datasource.password=postgres

src/test/java/br/com/developers/controller/github/GithubControllerIntegrationTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@
99
import org.springframework.beans.factory.annotation.Autowired;
1010
import org.springframework.boot.test.context.SpringBootTest;
1111
import org.springframework.http.MediaType;
12-
import org.springframework.test.context.ActiveProfiles;
1312
import org.springframework.test.web.servlet.MockMvc;
1413
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
1514
import org.springframework.web.context.WebApplicationContext;
1615

1716
@SpringBootTest
18-
@ActiveProfiles("staging")
1917
class GithubControllerIntegrationTests {
2018

2119
private static final String QUALIFIER_USER = "muriloalvesdev";

0 commit comments

Comments
 (0)