diff --git a/Dockerfile b/Dockerfile
index 3895f5fcf..de1b25aee 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,7 +24,8 @@ RUN dotnet restore \
&& dotnet test tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Core.Tests/Squidex.Domain.Apps.Core.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Entities.Tests/Squidex.Domain.Apps.Entities.Tests.csproj \
- && dotnet test tests/Squidex.Domain.Users.Tests/Squidex.Domain.Users.Tests.csproj
+ && dotnet test tests/Squidex.Domain.Users.Tests/Squidex.Domain.Users.Tests.csproj \
+ && dotnet test tests/Squidex.Tests/Squidex.Tests.csproj
# Publish
RUN dotnet publish src/Squidex/Squidex.csproj --output /out/ --configuration Release
diff --git a/src/Squidex/Pipeline/CommandMiddlewares/EnrichWithSchemaIdCommandMiddleware.cs b/src/Squidex/Pipeline/CommandMiddlewares/EnrichWithSchemaIdCommandMiddleware.cs
index 40b660c8a..e385b6025 100644
--- a/src/Squidex/Pipeline/CommandMiddlewares/EnrichWithSchemaIdCommandMiddleware.cs
+++ b/src/Squidex/Pipeline/CommandMiddlewares/EnrichWithSchemaIdCommandMiddleware.cs
@@ -32,6 +32,8 @@ namespace Squidex.Pipeline.CommandMiddlewares
if (actionContextAccessor.ActionContext == null)
{
await next();
+
+ return;
}
if (context.Command is ISchemaCommand schemaCommand && schemaCommand.SchemaId == null)
diff --git a/src/Squidex/Pipeline/EnforceHttpsMiddleware.cs b/src/Squidex/Pipeline/EnforceHttpsMiddleware.cs
index 556f90fb8..5cbc5efbe 100644
--- a/src/Squidex/Pipeline/EnforceHttpsMiddleware.cs
+++ b/src/Squidex/Pipeline/EnforceHttpsMiddleware.cs
@@ -36,9 +36,9 @@ namespace Squidex.Pipeline
if (!string.Equals(context.Request.Scheme, "https", StringComparison.OrdinalIgnoreCase))
{
- var newUrl = string.Concat("https://", hostName, context.Request.Path);
+ var newUrl = string.Concat("https://", hostName, context.Request.Path, context.Request.QueryString);
- context.Response.Redirect(newUrl + context.Request.QueryString, true);
+ context.Response.Redirect(newUrl, true);
}
else
{
diff --git a/src/Squidex/Squidex.csproj b/src/Squidex/Squidex.csproj
index e898de24f..773334ee1 100644
--- a/src/Squidex/Squidex.csproj
+++ b/src/Squidex/Squidex.csproj
@@ -11,6 +11,11 @@
true
+
+ full
+ True
+
+
diff --git a/tests/RunCoverage.ps1 b/tests/RunCoverage.ps1
index 6affb6d9e..3b46fc1dc 100644
--- a/tests/RunCoverage.ps1
+++ b/tests/RunCoverage.ps1
@@ -3,6 +3,7 @@ Param(
[switch]$appsCore,
[switch]$appsEntities,
[switch]$users,
+ [switch]$web,
[switch]$all
)
@@ -64,6 +65,17 @@ if ($all -Or $users) {
-oldStyle
}
+if ($all -Or $web) {
+ &"$folderHome\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe" `
+ -register:user `
+ -target:"C:\Program Files\dotnet\dotnet.exe" `
+ -targetargs:"test $folderWorking\Squidex.Tests\Squidex.Tests.csproj" `
+ -filter:"+[Squidex]Squidex.Pipeline*" `
+ -skipautoprops `
+ -output:"$folderWorking\$folderReports\Web.xml" `
+ -oldStyle
+}
+
&"$folderHome\.nuget\packages\ReportGenerator\3.1.1\tools\ReportGenerator.exe" `
-reports:"$folderWorking\$folderReports\*.xml" `
-targetdir:"$folderWorking\$folderReports\Output"
\ No newline at end of file
diff --git a/tests/Squidex.Tests/Pipeline/ActionContextLogAppenderTests.cs b/tests/Squidex.Tests/Pipeline/ActionContextLogAppenderTests.cs
deleted file mode 100644
index 04dbaf26e..000000000
--- a/tests/Squidex.Tests/Pipeline/ActionContextLogAppenderTests.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-// ==========================================================================
-// Squidex Headless CMS
-// ==========================================================================
-// Copyright (c) Squidex UG (haftungsbeschränkt)
-// All rights reserved. Licensed under the MIT license.
-// ==========================================================================
-
-using System;
-using System.Collections.Generic;
-using FakeItEasy;
-using Microsoft.AspNetCore.Http;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.AspNetCore.Mvc.Abstractions;
-using Microsoft.AspNetCore.Mvc.Infrastructure;
-using Microsoft.AspNetCore.Routing;
-using Moq;
-using Squidex.Infrastructure.Log;
-using Squidex.Pipeline;
-using Xunit;
-
-namespace Squidex.Tests.Pipeline
-{
- public class ActionContextLogAppenderTests
- {
- private readonly Mock actionContextAccessor = new Mock();
- private readonly Mock httpContextMock = new Mock();
- private readonly ActionDescriptor actionDescriptor = new ActionDescriptor();
- private readonly RouteData routeData = new RouteData();
- private readonly Guid requestId = Guid.NewGuid();
- private readonly IDictionary