Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ public Result execute() {
if(useCriticalForInactive) {
log.critical(msg, msgObjs);
} else {
log.temporarilyUnavailable(msg, msgObjs);
if (bundleState == Bundle.RESOLVED) {
log.warn(msg, msgObjs);
} else {
log.temporarilyUnavailable(msg, msgObjs);
}
}
bundleIsLogged = true;
inactiveCount++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void testWARNResultWithResolvedBundle() {
BundlesStartedCheck check = createCheck(emptyMap());
Bundle bundle = mockBundle("mybundle", Bundle.RESOLVED);
Result result = executeCheck(check, bundle);
assertThat(result.getStatus(), equalTo(Status.TEMPORARILY_UNAVAILABLE));
assertThat(result.getStatus(), equalTo(Status.WARN));
}

@Test
Expand Down Expand Up @@ -114,7 +114,7 @@ public void testOKResultWithStartingLazyBundle() {
}

@Test
public void testWarnResultWithStartingBundle() {
public void testTUResultWithStartingBundle() {
BundlesStartedCheck check = createCheck(emptyMap());
Bundle bundle = mockBundle("mybundle", Bundle.STARTING);
Result result = executeCheck(check, bundle);
Expand All @@ -123,7 +123,7 @@ public void testWarnResultWithStartingBundle() {
}

@Test
public void testWARNResultWithOtherStatuses() {
public void testTUResultWithOtherStatuses() {
BundlesStartedCheck check = createCheck(emptyMap());
Bundle bundle = mockBundle("mybundle", Bundle.INSTALLED);
Bundle bundle2 = mockBundle("uninstalledbundle", Bundle.UNINSTALLED);
Expand Down