Skip to content

Commit 5c02215

Browse files
committed
chore: debug functional tests
1 parent bb031d9 commit 5c02215

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/functional.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
distribution: 'zulu'
3232
java-version: '${{ matrix.java }}'
33-
- run: ./gradlew runFunctionalTests
33+
- run: ./gradlew runFunctionalTests --stacktrace --debug
3434
env:
3535
FPJS_API_SECRET: "${{ secrets.FPJS_API_SECRET }}"
3636
FPJS_API_REGION: "${{ secrets.FPJS_API_REGION }}"

examples/src/main/java/com/fingerprint/example/FunctionalTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public static void main(String... args) {
2626

2727
final FingerprintApi api = new FingerprintApi(Configuration.getDefaultApiClient(apiSecret, region));
2828

29+
System.out.println("BASE_PATH: " + api.getApiClient().getBasePath());
30+
2931
long end = Instant.now().toEpochMilli();
3032
long start = Instant.now().minus(90L, ChronoUnit.DAYS).toEpochMilli();
3133

@@ -57,7 +59,7 @@ public static void main(String... args) {
5759
final Event event = api.getEvent(eventId);
5860
System.out.println(event);
5961
} catch (ApiException e) {
60-
System.err.println("Exception when calling FingerprintApi.getEvent:" + e.getMessage());
62+
System.err.println("Exception when calling FingerprintApi.getEvent:" + e.getMessage() + e.getResponseBody() + e.getResponseHeaders() + e.getCode());
6163
System.exit(1);
6264
}
6365

0 commit comments

Comments
 (0)