Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
[#668] and [#669]: more description text changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jenarp committed Oct 11, 2021
1 parent 629f3cc commit c22bc97
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public LifecycleKPI() {
super();
label = Label.lifecycle.name();
msgFunction = component -> Optional.ofNullable(Lifecycle.from(valueFunction.apply(component)))
.map(lifecycle -> "Phase: " + lifecycle.name().replace("_", " "))
.map(lifecycle -> "phase: " + lifecycle.name().replace("_", " "))
.orElse("unknown");

matchers = Map.of(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private List<StatusValue> getItemStatusValues(Item component) {
}

if (scaleValue == 1 && (usedAsProvider > 1)) {
return List.of(new StatusValue(assessmentIdentifier, Label.scale.name(), Status.YELLOW, String.format("Unscaled, but %d items depend on it.", usedAsProvider)));
return List.of(new StatusValue(assessmentIdentifier, Label.scale.name(), Status.YELLOW, String.format("unscaled, but %d items depend on it", usedAsProvider)));
}

if (scaleValue > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void yellowIfBottleneck() {
assertEquals(1, statusValues.size());
StatusValue value = statusValues.get(0);
assertEquals(Status.YELLOW, value.getStatus());
assertEquals("Unscaled, but 2 items depend on it.", value.getMessage());
assertEquals("unscaled, but 2 items depend on it", value.getMessage());
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/example/pet_clinic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ config:
radiation:
description: Radiation level in mrem
label: radiation
messageTemplate: "Level: %s mrem"
messageTemplate: "level: %s mrem"
ranges:
GREEN: 0;99.999999
YELLOW: 100;199.999999
Expand Down

0 comments on commit c22bc97

Please sign in to comment.