Skip to content

Commit 045bd8a

Browse files
chore(deps): update junit-framework monorepo to v6 (major) (#186)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [org.junit.jupiter:junit-jupiter-engine](https://junit.org/) ([source](https://redirect.github.com/junit-team/junit-framework)) | `5.14.2` → `6.0.2` | ![age](https://developer.mend.io/api/mc/badges/age/maven/org.junit.jupiter:junit-jupiter-engine/6.0.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.junit.jupiter:junit-jupiter-engine/5.14.2/6.0.2?slim=true) | | [org.junit.jupiter:junit-jupiter-api](https://junit.org/) ([source](https://redirect.github.com/junit-team/junit-framework)) | `5.14.2` → `6.0.2` | ![age](https://developer.mend.io/api/mc/badges/age/maven/org.junit.jupiter:junit-jupiter-api/6.0.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.junit.jupiter:junit-jupiter-api/5.14.2/6.0.2?slim=true) | --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/cerbos/cerbos-sdk-java). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xOS41IiwidXBkYXRlZEluVmVyIjoiNDIuNzQuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYm90cyIsImNob3JlIl19--> --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Charith Ellawala <charith@cerbos.dev> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Charith Ellawala <charith@cerbos.dev>
1 parent 4959a72 commit 045bd8a

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ dependencies {
7575
implementation("com.google.code.gson:gson:2.13.2")
7676
implementation("io.github.resilience4j:resilience4j-circuitbreaker:2.3.0")
7777
compileOnly("javax.annotation:javax.annotation-api:1.3.2")
78-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.14.2")
78+
testImplementation("org.junit.jupiter:junit-jupiter-api:6.0.2")
7979
testImplementation("org.testcontainers:junit-jupiter:1.21.4")
80-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.14.2")
80+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:6.0.2")
8181
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
8282
testImplementation("ch.qos.logback:logback-core:1.5.26")
8383
testImplementation("ch.qos.logback:logback-classic:1.5.26")

src/main/java/dev/cerbos/sdk/hub/CircuitBreaker.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@ enum CircuitBreaker {
4545
public <T> T execute(CheckedSupplier<T> s) throws Throwable {
4646
return circuitBreaker.decorateCheckedSupplier(s).get();
4747
}
48+
49+
void reset() {
50+
circuitBreaker.reset();
51+
}
4852
}

src/main/java/dev/cerbos/sdk/hub/exceptions/StoreException.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public static StoreException from(Throwable cause) {
5555
case Code.PERMISSION_DENIED_VALUE:
5656
return new PermissionDeniedException(cause);
5757

58+
case Code.RESOURCE_EXHAUSTED_VALUE:
59+
return new TooManyRequestsException(cause);
60+
5861
case Code.UNAUTHENTICATED_VALUE:
5962
return new AuthenticationFailedException(cause);
6063

@@ -93,6 +96,7 @@ public static StoreException from(Throwable cause) {
9396
}
9497
}
9598
break;
99+
96100
}
97101

98102
return new UnknownException(cause);

src/test/java/dev/cerbos/sdk/hub/CerbosHubStoreClientTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public static void initClient() {
9898

9999
@BeforeEach
100100
public void resetStore() throws IOException, StoreException, URISyntaxException {
101+
CircuitBreaker.INSTANCE.reset();
101102
ClassLoader loader = Thread.currentThread().getContextClassLoader();
102103
Path dir = Path.of(loader.getResource("hub/replace_files/success").toURI());
103104
Store.ReplaceFilesResponse replaceResp = client.replaceFilesLenient(Store.newReplaceFilesRequest(storeID, "Reset store", Utils.createZip(dir)));

0 commit comments

Comments
 (0)