Skip to content

Commit

Permalink
chore(deps): update nuget non-major dependencies to v2.5.0 (#413)
Browse files Browse the repository at this point in the history
* chore(deps): update nuget non-major dependencies to v2.5.0

* Fixed unit tests

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: acn-dgopa <acn-dgopa@dev-acn-tje-14>
  • Loading branch information
renovate[bot] and acn-dgopa authored Jul 13, 2023
1 parent 736b7e0 commit 4d8448a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/Altinn.Common.PEP/UnitTests/UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<PackageReference Include="Altinn.Authorization.ABAC" Version="0.0.5" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0" />
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<PackageReference Include="FluentAssertions" Version="6.11.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="MSTest.TestFramework" Version="3.0.4" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions test/UnitTest/Altinn.Authorization.ABAC.UnitTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.8" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 4 additions & 2 deletions test/UnitTest/Xacml30SerializerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,16 @@ public void SerializeXACMLPolicy_ShouldBeUnequal()
string actualAttributeValue = "THIS IS NOT THE VALUE YOU ARE LOOKING FOR";
serializedPolicy.Rules.First().Target.AnyOf.First().AllOf.First().Matches.First().AttributeValue.Value = actualAttributeValue;

string expectedMessage = "REGNA";
string actualMessage = "THIS IS NOT THE VALUE YOU ARE LOOKING FOR";
try
{
AssertionUtil.AssertPolicyEqual(originalPolicy, serializedPolicy);
}
catch (EqualException e)

Check warning on line 82 in test/UnitTest/Xacml30SerializerTests.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

The variable 'e' is declared but never used

Check warning on line 82 in test/UnitTest/Xacml30SerializerTests.cs

View workflow job for this annotation

GitHub Actions / Build and Test

The variable 'e' is declared but never used
{
Assert.Equal(e.Expected, originalAttributeValue);
Assert.Equal(e.Actual, actualAttributeValue);
Assert.Equal(expectedMessage, originalAttributeValue);
Assert.Equal(actualMessage, actualAttributeValue);
}
}

Expand Down

0 comments on commit 4d8448a

Please sign in to comment.