File tree Expand file tree Collapse file tree 8 files changed +14
-3
lines changed
test/kotlin/com/katalisindonesia Expand file tree Collapse file tree 8 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,12 @@ keycloak.auth-server-url = https://auth.banyuwangikab.go.id
4
4
keycloak.ssl-required = external
5
5
keycloak.resource =banyuwangi-webapp
6
6
keycloak.verify-token-audience =false
7
- keycloak.credentials.secret =fxraDjJMINZSunzgmom1GtrALENPN7sn
8
7
keycloak.use-resource-role-mappings = false
9
8
10
9
spring.security.oauth2.client.provider.banyuwangi.issuer-uri =https://auth.banyuwangikab.go.id/realms/banyuwangi
11
10
12
11
spring.security.oauth2.client.provider.banyuwangi-test.issuer-uri =https://auth.banyuwangikab.go.id/realms/banyuwangi
13
12
spring.security.oauth2.client.registration.banyuwangi-test.client-id =banyuwangi-test
14
- spring.security.oauth2.client.registration.banyuwangi-test.client-secret =MZASrIBdZrMSViBBgLhOCnOeatyiDYPD
15
13
spring.security.oauth2.client.registration.banyuwangi-test.authorization-grant-type =client_credentials
16
14
17
15
spring.rabbitmq.addresses =localhost:5672
@@ -73,7 +71,6 @@ dashboard.app.fcmRateLimit=4
73
71
74
72
streaming.baseUrl =https://stream-ai.banyuwangikab.go.id
75
73
streaming.server =https://stream-ai.banyuwangikab.go.id
76
- streaming.streamingToken =9f8c835e-1896-4f54-b544-29d2a6df802a
77
74
78
75
gcp.firebase.serviceAccount =classpath:banyuwangi-dashboard-firebase-adminsdk.json
79
76
Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ import org.springframework.beans.factory.annotation.Autowired
9
9
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
10
10
import org.springframework.boot.test.context.SpringBootTest
11
11
import org.springframework.http.MediaType
12
+ import org.springframework.test.context.ActiveProfiles
12
13
import org.springframework.test.web.servlet.MockMvc
13
14
import org.springframework.test.web.servlet.get
14
15
15
16
@SpringBootTest(webEnvironment = SpringBootTest .WebEnvironment .RANDOM_PORT )
16
17
@AutoConfigureMockMvc
18
+ @ActiveProfiles(" secret" , " default" )
17
19
class AlarmControllerTest (
18
20
@Autowired private val mockMvc : MockMvc ,
19
21
@Autowired private val alarmRepo : AlarmRepo ,
Original file line number Diff line number Diff line change @@ -11,13 +11,15 @@ import org.springframework.beans.factory.annotation.Autowired
11
11
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
12
12
import org.springframework.boot.test.context.SpringBootTest
13
13
import org.springframework.http.MediaType
14
+ import org.springframework.test.context.ActiveProfiles
14
15
import org.springframework.test.web.servlet.MockMvc
15
16
import org.springframework.test.web.servlet.get
16
17
import org.springframework.test.web.servlet.post
17
18
import java.util.UUID
18
19
19
20
@SpringBootTest(webEnvironment = SpringBootTest .WebEnvironment .RANDOM_PORT )
20
21
@AutoConfigureMockMvc
22
+ @ActiveProfiles(" secret" , " default" )
21
23
class CameraControllerTest (
22
24
@Autowired private val mockMvc : MockMvc ,
23
25
@Autowired private val tokenManager : TokenManager ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import org.junit.jupiter.api.extension.ExtendWith
7
7
import org.springframework.beans.factory.annotation.Autowired
8
8
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
9
9
import org.springframework.boot.test.context.SpringBootTest
10
+ import org.springframework.test.context.ActiveProfiles
10
11
import org.springframework.test.context.junit.jupiter.SpringExtension
11
12
import org.springframework.test.web.servlet.MockMvc
12
13
import org.springframework.test.web.servlet.get
@@ -20,6 +21,7 @@ import java.net.InetSocketAddress
20
21
@ExtendWith(SpringExtension ::class )
21
22
@SpringBootTest(webEnvironment = SpringBootTest .WebEnvironment .RANDOM_PORT )
22
23
@AutoConfigureMockMvc
24
+ @ActiveProfiles(" secret" , " default" )
23
25
class ChartControllerIntegrationTest (
24
26
@Autowired private val mockMvc : MockMvc ,
25
27
@Autowired private val tokenManager : TokenManager ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired
22
22
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
23
23
import org.springframework.boot.test.context.SpringBootTest
24
24
import org.springframework.data.domain.Sort.Direction
25
+ import org.springframework.test.context.ActiveProfiles
25
26
import org.springframework.test.context.junit.jupiter.SpringExtension
26
27
import org.springframework.test.web.servlet.MockMvc
27
28
import org.springframework.test.web.servlet.get
@@ -35,6 +36,7 @@ import java.util.UUID
35
36
@ExtendWith(SpringExtension ::class )
36
37
@SpringBootTest(webEnvironment = SpringBootTest .WebEnvironment .RANDOM_PORT )
37
38
@AutoConfigureMockMvc
39
+ @ActiveProfiles(" secret" , " default" )
38
40
class DetectionControllerTest (
39
41
@Autowired private val mockMvc : MockMvc ,
40
42
@Autowired private val tokenManager : TokenManager ,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import org.springframework.beans.factory.annotation.Autowired
10
10
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
11
11
import org.springframework.boot.test.context.SpringBootTest
12
12
import org.springframework.http.MediaType
13
+ import org.springframework.test.context.ActiveProfiles
13
14
import org.springframework.test.context.junit.jupiter.SpringExtension
14
15
import org.springframework.test.web.servlet.MockMvc
15
16
import org.springframework.test.web.servlet.delete
@@ -18,6 +19,7 @@ import org.springframework.test.web.servlet.put
18
19
@ExtendWith(SpringExtension ::class )
19
20
@SpringBootTest
20
21
@AutoConfigureMockMvc
22
+ @ActiveProfiles(" secret" , " default" )
21
23
class FirebaseControllerTest (
22
24
@Autowired private val mockMvc : MockMvc ,
23
25
@Autowired private val tokenManager : TokenManager ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired
17
17
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
18
18
import org.springframework.boot.test.context.SpringBootTest
19
19
import org.springframework.http.MediaType
20
+ import org.springframework.test.context.ActiveProfiles
20
21
import org.springframework.test.context.junit.jupiter.SpringExtension
21
22
import org.springframework.test.web.servlet.MockMvc
22
23
import org.springframework.test.web.servlet.get
@@ -26,6 +27,7 @@ import java.util.UUID
26
27
@ExtendWith(SpringExtension ::class )
27
28
@SpringBootTest
28
29
@AutoConfigureMockMvc
30
+ @ActiveProfiles(" secret" , " default" )
29
31
class LiveViewControllerTest (
30
32
@Autowired private val mockMvc : MockMvc ,
31
33
@Autowired private val tokenManager : TokenManager ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMock
11
11
import org.springframework.boot.test.context.SpringBootTest
12
12
import org.springframework.core.io.ClassPathResource
13
13
import org.springframework.http.MediaType
14
+ import org.springframework.test.context.ActiveProfiles
14
15
import org.springframework.test.context.junit.jupiter.SpringExtension
15
16
import org.springframework.test.web.servlet.MockMvc
16
17
import org.springframework.test.web.servlet.get
@@ -30,6 +31,7 @@ import java.util.UUID
30
31
classes = [BanyuwangiCoreApplication ::class ]
31
32
)
32
33
@AutoConfigureMockMvc
34
+ @ActiveProfiles(" secret" , " default" )
33
35
class ImageControllerTest (
34
36
@Autowired private val mockMvc : MockMvc ,
35
37
@Autowired private val imageProperties : ImageProperties ,
You can’t perform that action at this time.
0 commit comments