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

OSOE-935: Migrating test project to xUnit v3 #137

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.1-alpha.0.osoe-935" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.HelpfulLibraries.OrchardCore" Version="12.0.0" />
<PackageReference Include="Lombiq.HelpfulExtensions" Version="10.0.0" />
<PackageReference Include="Lombiq.HelpfulExtensions" Version="10.0.1-alpha.0.osoe-935" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.1-alpha.0.osoe-935" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.1-alpha.0.osoe-935" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public static void ConfigureIdleTenantManagementTestSettings(this OrchardCoreUIT
(_, fakeLogCollectorOptions) => fakeLogCollectorOptions.FilteredLevels.Add(LogLevel.Information);

configuration.AssertAppLogsAsync = app =>
app.LogsShouldNotContainAsync(logEntry =>
AppLogAssertionHelper.NotMediaCacheEntries(logEntry) && logEntry.Level != LogLevel.Information);
app.LogsShouldNotContainAsync(
logEntry => AppLogAssertionHelper.NotMediaCacheEntries(logEntry) && logEntry.Level != LogLevel.Information,
configuration.TestCancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ await context.GoToSetupPageAndSetupOrchardCoreAsync(
// Due to the background ask scheduling configuration in ConfigureIdleTenantManagementTestSettings(), the
// background task should run within not much more than a minute (background tasks are run with a frequency of
// at least a minute, due to the limitation of cron expressions). Polling for it here.
await Task.Delay(TimeSpan.FromMinutes(1));
await Task.Delay(TimeSpan.FromMinutes(1), context.Configuration.TestCancellationToken);
await ReliabilityHelper.DoWithRetriesOrFailAsync(
async () =>
{
var logEntries = await context.Application.GetLogEntriesFromAllLogsAsync();
var logEntries = await context.Application.GetLogEntriesFromAllLogsAsync(context.Configuration.TestCancellationToken);
return logEntries.Any(logEntry =>
logEntry.Message == $"Shutting down tenant \"{IdleTenantName}\" because of idle timeout.");
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.1-alpha.0.osoe-935" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.1-alpha.0.osoe-935" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.1-alpha.0.osoe-935" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.1-alpha.0.osoe-935" />
</ItemGroup>

</Project>
Loading