Skip to content

Commit

Permalink
Sosialhjelp Kontroll 20B: Reduce severity from ERROR to WARNING (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonolehagemo authored Sep 12, 2024
1 parent 39a7587 commit 3c345a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import no.ssb.kostra.validation.rule.sosial.sosialhjelp.SosialhjelpRuleId

class Rule020BViktigsteKildeTilLivsOppholdKode3 : AbstractNoArgsRule<List<KostraRecord>>(
SosialhjelpRuleId.SOSIALHJELP_K020B_TRYGD.title,
Severity.ERROR
Severity.WARNING
) {
override fun validate(context: List<KostraRecord>) = context
.filter { it[VKLO_COL_NAME] == "3" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Rule020BViktigsteKildeTilLivsOppholdKode3Test : BehaviorSpec({
include(
validationRuleNoContextTest(
sut = Rule020BViktigsteKildeTilLivsOppholdKode3(),
expectedSeverity = Severity.ERROR,
expectedSeverity = Severity.WARNING,
ForAllRowItem(
"vkloCode = 0, trygdesitCode = 00",
kostraRecordInTest("0", "00"),
Expand Down

0 comments on commit 3c345a8

Please sign in to comment.