Skip to content

Commit 0bc1563

Browse files
authored
feat: set user-ids (#460)
1 parent fce1e31 commit 0bc1563

File tree

13 files changed

+1093
-421
lines changed

13 files changed

+1093
-421
lines changed

.github/workflows/build-and-analyze-fork.yml

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
run: dotnet build Altinn.Register.sln -v m
5959

6060
- name: dotnet test
61+
timeout-minutes: 10
6162
run: dotnet test Altinn.Register.sln --results-directory TestResults/ --collect:"XPlat Code Coverage" -v m
6263

6364
- name: Generate coverage results

.github/workflows/build-and-analyze.yml

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
run: dotnet workload restore
5656

5757
- name: Build & Test
58+
timeout-minutes: 10
5859
run: |
5960
dotnet build -v m
6061
dotnet test --no-build -v m
@@ -107,6 +108,7 @@ jobs:
107108
dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner
108109
109110
- name: Analyze
111+
timeout-minutes: 10
110112
env:
111113
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
112114
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

Directory.Packages.props

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<GlobalPackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.25" PrivateAssets="all" />
77
</ItemGroup>
88
<ItemGroup>
9-
<PackageVersion Include="Altinn.Authorization.ModelUtils" Version="1.1.3" />
10-
<PackageVersion Include="Altinn.Authorization.ModelUtils.Swashbuckle" Version="1.1.3" />
9+
<PackageVersion Include="Altinn.Authorization.ModelUtils" Version="1.2.0" />
10+
<PackageVersion Include="Altinn.Authorization.ModelUtils.Swashbuckle" Version="1.2.0" />
1111
<PackageVersion Include="Altinn.Authorization.ProblemDetails.Abstractions" Version="3.2.2" />
1212
<PackageVersion Include="Altinn.Authorization.ProblemDetails" Version="3.2.2" />
1313
<PackageVersion Include="Altinn.Authorization.ServiceDefaults.Npgsql.TestSeed" Version="2.11.0" />
@@ -69,9 +69,9 @@
6969
<PackageVersion Include="xunit.assert" Version="2.9.3" />
7070
<PackageVersion Include="xunit.extensibility.core" Version="2.9.3" />
7171
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.2" />
72-
<PackageVersion Include="xunit.v3.assert" Version="2.0.0" />
73-
<PackageVersion Include="xunit.v3.extensibility.core" Version="2.0.0" />
74-
<PackageVersion Include="xunit.v3" Version="2.0.0" />
72+
<PackageVersion Include="xunit.v3.assert" Version="2.0.1" />
73+
<PackageVersion Include="xunit.v3.extensibility.core" Version="2.0.1" />
74+
<PackageVersion Include="xunit.v3" Version="2.0.1" />
7575
<PackageVersion Include="xunit" Version="2.9.3" />
7676
</ItemGroup>
7777
</Project>

src/Altinn.Register/src/Altinn.Register.Core/Errors/ValidationErrors.cs

+8
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,12 @@ private static readonly ValidationErrorDescriptorFactory _factory
2121
/// <summary>Gets a <see cref="ValidationErrorDescriptor"/>.</summary>
2222
public static ValidationErrorDescriptor PartyUrn_Invalid { get; }
2323
= _factory.Create(2, "Invalid party URN");
24+
25+
/// <summary>Gets a <see cref="ValidationErrorDescriptor"/>.</summary>
26+
public static ValidationErrorDescriptor Null { get; }
27+
= _factory.Create(3, "Value cannot be null");
28+
29+
/// <summary>Gets a <see cref="ValidationErrorDescriptor"/>.</summary>
30+
public static ValidationErrorDescriptor Empty { get; }
31+
= _factory.Create(4, "List cannot be empty");
2432
}

0 commit comments

Comments
 (0)