Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OFFI-200: Update OC and Lombiq versions. #514

Merged
merged 14 commits into from
Jan 28, 2025
10 changes: 5 additions & 5 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<!-- The Orchard Core version should always be x.y.0 of the latest minor version for maximum compatibility when
distributed as NuGet packages. On the other hand, the consuming projects (including OrchardCore.Commerce.Web)
should use Orchard Core references for the latest patch version to pull all versions up in the final app. -->
<OrchardCoreVersion>2.0.0</OrchardCoreVersion>
<OrchardCoreVersion>2.1.0</OrchardCoreVersion>

<LombiqHelpfulLibrariesVersion>11.0.1-alpha.0.offi-126</LombiqHelpfulLibrariesVersion>
<LombiqTestsUIVersion>11.0.0</LombiqTestsUIVersion>
<LombiqHelpfulLibrariesVersion>12.0.1-alpha.0.osoe-815</LombiqHelpfulLibrariesVersion>
<LombiqTestsUIVersion>12.0.1-alpha.6.offi-200</LombiqTestsUIVersion>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -44,7 +44,7 @@
<PackageVersion Include="Shouldly" Version="4.2.1" />
<PackageVersion Include="Stripe.net" Version="44.13.0" />
<PackageVersion Include="System.Text.Json" Version="8.0.5" />
<PackageVersion Include="xunit" Version="2.8.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.0" />
<PackageVersion Include="xunit" Version="2.9.3" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions src/OrchardCore.Commerce.Web/OrchardCore.Commerce.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

<!-- The Orchard Core packages must override the version to target the latest patch version in this project. See the
Directory.Packages.props file for more details. -->
<PackageReference Include="OrchardCore.Application.Cms.Targets" VersionOverride="2.0.2" />
<PackageReference Include="OrchardCore.Logging.NLog" VersionOverride="2.0.2" />
<PackageReference Include="OrchardCore.Application.Cms.Targets" VersionOverride="2.1.4" />
<PackageReference Include="OrchardCore.Logging.NLog" VersionOverride="2.1.4" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Lombiq.Tests.UI.Extensions;
using Lombiq.Tests.UI.SecurityScanning;
using Shouldly;
using Lombiq.Tests.UI.Shortcuts.Middlewares;
using Xunit;
using Xunit.Abstractions;

Expand Down Expand Up @@ -41,19 +40,14 @@ public Task FullSecurityScanShouldPass() =>
@".*/\?.*products\..*");
},
maxActiveScanDurationInMinutes: 5,
maxRuleDurationInMinutes: 1),
changeConfiguration: configuration => configuration.AssertAppLogsAsync = async webApplicationInstance =>
{
var logsWithoutUnwantedExceptionMessages = (await webApplicationInstance.GetLogOutputAsync())
.SplitByNewLines()
.Where(message =>
!message.ContainsOrdinalIgnoreCase("System.IO.DirectoryNotFoundException: Could not find a part of the path") &&
!message.ContainsOrdinalIgnoreCase(
"System.IO.IOException: The filename, directory name, or volume label syntax is incorrect") &&
!message.ContainsOrdinalIgnoreCase("System.InvalidOperationException: This action intentionally causes an exception!"));

logsWithoutUnwantedExceptionMessages.ShouldNotContain(item => item.Contains("|ERROR|"));
});
maxRuleDurationInMinutes: 1,
additionalPermittedErrorLinePatterns:
[
"System.IO.DirectoryNotFoundException: Could not find a part of the path",
"System.IO.IOException: The filename, directory name, or volume label syntax is incorrect",
"System.InvalidOperationException: This action intentionally causes an exception!",
nameof(ExceptionContextLoggingMiddleware),
BenedekFarkas marked this conversation as resolved.
Show resolved Hide resolved
]));
BenedekFarkas marked this conversation as resolved.
Show resolved Hide resolved

private static void FalsePositive(
SecurityScanConfiguration configuration,
Expand Down
Loading