Skip to content

Commit

Permalink
Sosialhjelp update k20a and k20b (#699)
Browse files Browse the repository at this point in the history
* Sosialhjelp Kontroll 20A: Reduce severity from ERROR to WARNING

* Sosialhjelp Kontroll 20B: Revert severity from WARNING to ERROR
  • Loading branch information
jonolehagemo committed Sep 13, 2024
1 parent 9c55701 commit cb4df72
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 @@ -12,7 +12,7 @@ import no.ssb.kostra.validation.rule.sosial.sosialhjelp.SosialhjelpRuleId

class Rule020AViktigsteKildeTilLivsOppholdKode3 : AbstractNoArgsRule<List<KostraRecord>>(
SosialhjelpRuleId.SOSIALHJELP_K020A_TRYGD.title,
Severity.ERROR
Severity.WARNING
) {
override fun validate(context: List<KostraRecord>) = context
.filterNot { it[VKLO_COL_NAME] == "3" }
Expand Down
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.WARNING
Severity.ERROR
) {
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 @@ -11,7 +11,7 @@ class Rule020AViktigsteKildeTilLivsOppholdKode3Test : BehaviorSpec({
include(
KostraTestFactory.validationRuleNoContextTest(
sut = Rule020AViktigsteKildeTilLivsOppholdKode3(),
expectedSeverity = Severity.ERROR,
expectedSeverity = Severity.WARNING,
ForAllRowItem(
"vkloCode = 3, trygdesitCode = 00",
kostraRecordInTest("3", "00"),
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.WARNING,
expectedSeverity = Severity.ERROR,
ForAllRowItem(
"vkloCode = 0, trygdesitCode = 00",
kostraRecordInTest("0", "00"),
Expand Down

0 comments on commit cb4df72

Please sign in to comment.