Skip to content

Commit b3dd601

Browse files
committed
cleanups
1 parent 65191fd commit b3dd601

File tree

9 files changed

+33
-42
lines changed

9 files changed

+33
-42
lines changed
Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
package gt.common.test;
22

3-
import com.fasterxml.jackson.annotation.JsonInclude;
4-
import tools.jackson.databind.ObjectMapper;
53
import org.springframework.web.bind.annotation.GetMapping;
64

75
import java.io.File;
8-
import java.io.IOException;
96
import java.net.URISyntaxException;
107
import java.net.URL;
118

@@ -25,20 +22,4 @@ public static File fileFromClassPath(String name) {
2522
throw new IllegalArgumentException(e);
2623
}
2724
}
28-
29-
// public static byte[] convertObjectToJsonBytes(Object object)
30-
// throws IOException {
31-
// ObjectMapper mapper = new ObjectMapper();
32-
// mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
33-
//
34-
// return mapper.writeValueAsBytes(object);
35-
// }
36-
37-
// public static byte[] createByteArray(int size, String data) {
38-
// byte[] byteArray = new byte[size];
39-
// for (int i = 0; i < size; i++) {
40-
// byteArray[i] = Byte.parseByte(data, 2);
41-
// }
42-
// return byteArray;
43-
// }
4425
}

content-checker/content-checker-service/src/main/resources/application.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@ management:
2525
health:
2626
jms:
2727
enabled: true
28-
tracing.export.zipkin.endpoint: http://${ZIPKIN_HOST:localhost}:${ZIPKIN_PORT:9411}/api/v2/spans
28+
zipkin:
29+
export:
30+
tracing:
31+
endpoint: http://${ZIPKIN_HOST:localhost}:${ZIPKIN_PORT:9411}/api/v2/spans
32+

email/email-service/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
<dependency>
9393
<groupId>org.testcontainers</groupId>
9494
<artifactId>testcontainers-junit-jupiter</artifactId>
95-
<version>2.0.2</version>
9695
</dependency>
9796

9897
<!-- test only dependencies -->

email/email-service/src/main/resources/application.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@ spring:
66
port: ${MAILHOG_PORT:1025}
77
username:
88
password:
9-
9+
web:
10+
error:
11+
include-stacktrace: never
12+
include-exception: true
13+
include-binding-errors: always
14+
include-message: always
15+
logging:
1016
server:
1117
port: 8085
12-
logging:
18+
19+
1320
level:
1421
org.springframework.web: INFO
1522
ROOT: WARN
@@ -19,14 +26,7 @@ management:
1926
tracing:
2027
sampling:
2128
probability: 1.0
22-
tracing.export.zipkin.endpoint: http://${ZIPKIN_HOST:localhost}:${ZIPKIN_PORT:9411}/api/v2/spans
23-
24-
spring.web.error.include-binding-errors: always
25-
26-
spring.web.error.include-exception: true
27-
28-
spring.web.error.include-message: always
29-
30-
spring.web.error.include-stacktrace: never
31-
32-
29+
zipkin:
30+
export:
31+
tracing:
32+
endpoint: http://${ZIPKIN_HOST:localhost}:${ZIPKIN_PORT:9411}/api/v2/spans

main-app/main-webapp/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,12 @@
256256
<groupId>org.testcontainers</groupId>
257257
<artifactId>testcontainers-junit-jupiter</artifactId>
258258
<scope>test</scope>
259-
<version>2.0.2</version>
260259
</dependency>
261260
<dependency>
262261
<groupId>org.testcontainers</groupId>
263262
<artifactId>testcontainers-mysql</artifactId>
264263
<optional>true</optional>
265264
<scope>test</scope>
266-
<version>2.0.2</version>
267265
</dependency>
268266

269267
<!-- query performance -->

main-app/main-webapp/src/main/resources/application.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ management:
104104
tracing:
105105
sampling:
106106
probability: 1.0
107+
zipkin:
108+
export:
109+
tracing:
110+
endpoint: http://${ZIPKIN_HOST:localhost}:${ZIPKIN_PORT:9411}/api/v2/spans
107111
health:
108112
jms:
109113
enabled: true
110-
tracing.export.zipkin.endpoint: http://${ZIPKIN_HOST:localhost}:${ZIPKIN_PORT:9411}/api/v2/spans
111-
112-
debug: true

main-app/report-service/src/main/resources/application.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@ management:
2525
tracing:
2626
sampling:
2727
probability: 1.0
28-
tracing.export.zipkin.endpoint: http://${ZIPKIN_HOST:localhost}:${ZIPKIN_PORT:9411}/api/v2/spans
28+
zipkin:
29+
export:
30+
tracing:
31+
endpoint: http://${ZIPKIN_HOST:localhost}:${ZIPKIN_PORT:9411}/api/v2/spans
32+

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<wro4j.version>2.1.1</wro4j.version>
4646
<archunit.version>1.3.0</archunit.version>
4747
<testcontainers-keycloak.version>3.4.0</testcontainers-keycloak.version>
48-
<testcontainers.version>1.20.1</testcontainers.version>
48+
<testcontainers.version>2.0.2</testcontainers.version>
4949
<commons-io.version>2.17.0</commons-io.version>
5050
<webjar-jquery.version>3.6.1</webjar-jquery.version>
5151
<webjar-bootstrap.version>5.0.1</webjar-bootstrap.version>

trend/trend-service/src/main/resources/application.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ management:
1919
tracing:
2020
sampling:
2121
probability: 1.0
22-
tracing.export.zipkin.endpoint: http://${ZIPKIN_HOST:localhost}:${ZIPKIN_PORT:9411}/api/v2/spans
22+
zipkin:
23+
export:
24+
tracing:
25+
endpoint: http://${ZIPKIN_HOST:localhost}:${ZIPKIN_PORT:9411}/api/v2/spans
26+

0 commit comments

Comments
 (0)