Skip to content

Commit be8eded

Browse files
authored
Update to support UFC configuration files via using the shared common SDK (#70)
* work in progress * assignment and bandit tests passing * logger test added * more tests for client * forceReinitialization tests * tests passing * linter * update test for updated app details default version * attempt to have gradle log more stuff about tests * use latest snapshot
1 parent f264930 commit be8eded

30 files changed

+317
-2777
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
src/test/resources/shared
12
.gradle
23
build/
4+
target/
35
!gradle/wrapper/gradle-wrapper.jar
46
!**/src/main/**/build/
57
!**/src/test/**/build/
@@ -41,5 +43,3 @@ bin/
4143
### Mac OS ###
4244
.DS_Store
4345
.idea/
44-
src/test/resources/assignment-v2/
45-
src/test/resources/rac-experiments-v3.json

Makefile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,20 @@ build: test-data
2929
./gradlew assemble
3030

3131
## test-data
32-
testDataDir := src/test/resources
33-
banditsDataDir := ${testDataDir}/bandits
32+
testDataDir := src/test/resources/shared
3433
tempDir := ${testDataDir}/temp
35-
tempBanditsDir := ${tempDir}/bandits
3634
gitDataDir := ${tempDir}/sdk-test-data
3735
branchName := main
3836
githubRepoLink := https://github.com/Eppo-exp/sdk-test-data.git
3937
.PHONY: test-data
4038
test-data:
41-
find ${testDataDir} -mindepth 1 ! -regex '^${banditsDataDir}.*' -delete
39+
rm -rf $(testDataDir)
4240
mkdir -p ${tempDir}
4341
git clone -b ${branchName} --depth 1 --single-branch ${githubRepoLink} ${gitDataDir}
44-
cp ${gitDataDir}/rac-experiments-v3.json ${testDataDir}
45-
cp -r ${gitDataDir}/assignment-v2 ${testDataDir}
42+
cp -r ${gitDataDir}/ufc ${testDataDir}
43+
rm ${testDataDir}/ufc/bandit-tests/*.dynamic-typing.json
4644
rm -rf ${tempDir}
4745

4846
.PHONY: test
4947
test: test-data build
50-
./gradlew check
48+
./gradlew check --no-daemon

build.gradle

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = 'cloud.eppo'
9-
version = '2.5.0-SNAPSHOT'
9+
version = '3.0.0-SNAPSHOT'
1010
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
1111

1212
import org.apache.tools.ant.filters.ReplaceTokens
@@ -25,7 +25,7 @@ repositories {
2525
}
2626

2727
dependencies {
28-
implementation 'cloud.eppo:sdk-common-jvm:2.0.0-SNAPSHOT'
28+
implementation 'cloud.eppo:sdk-common-jvm:3.0.1-SNAPSHOT'
2929
implementation 'com.github.zafarkhaja:java-semver:0.10.2'
3030
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.1'
3131
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
@@ -34,15 +34,23 @@ dependencies {
3434
// Logback classic 1.3.x is compatible with java 8
3535
implementation 'ch.qos.logback:logback-classic:1.3.14'
3636

37-
testImplementation 'org.projectlombok:lombok:1.18.24'
37+
testImplementation 'cloud.eppo:sdk-common-jvm:3.0.0-SNAPSHOT:tests'
3838
testImplementation platform('org.junit:junit-bom:5.10.2')
3939
testImplementation 'org.junit.jupiter:junit-jupiter'
4040
testImplementation 'com.github.tomakehurst:wiremock-jre8:2.35.2'
4141
testImplementation 'org.mockito:mockito-core:4.11.0'
42+
testImplementation 'com.squareup.okhttp3:okhttp:4.9.1'
4243
}
4344

4445
test {
4546
useJUnitPlatform()
47+
testLogging {
48+
events "started", "passed", "skipped", "failed"
49+
exceptionFormat "full"
50+
showExceptions true
51+
showCauses true
52+
showStackTraces true
53+
}
4654
}
4755

4856
spotless {

0 commit comments

Comments
 (0)