Skip to content

Commit

Permalink
fix(java-sdk): fix integration test failure for write_and_expand
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper committed Oct 20, 2023
1 parent 598be95 commit ab673ef
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions config/clients/java/template/build.gradle.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ testing {
// See also: https://github.com/PGSSoft/HttpClientMock/issues/3
implementation "com.pgs-soft:HttpClientMock:1.0.0"
}

targets {
all {
testTask.configure {
testLogging {
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showStandardStreams = true
}
}
}
}
}
integration(JvmTestSuite) {
testType = TestSuiteType.INTEGRATION_TEST
Expand All @@ -112,6 +123,17 @@ testing {
srcDirs = ['src/test-integration/java']
}
}

targets {
all {
testTask.configure {
testLogging {
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showStandardStreams = true
}
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public class OpenFgaClientIntegrationTest {
// Then
assertNotNull(response.getTree());
assertEquals(
"{\"tree\":{\"root\":{\"name\":\"document:2021-budget#reader\",\"leaf\":{\"users\":{\"users\":[\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"]}}}}}",
"{\"tree\":{\"root\":{\"name\":\"document:2021-budget#reader\", \"leaf\":{\"users\":{\"users\":[\"user:81684243-9356-4421-8fbf-a4f8d36aa31b\"]}}}}}",
response.getRawResponse());
}

Expand Down

0 comments on commit ab673ef

Please sign in to comment.