From dd2969253b0040f9f633adb28a26800f3c53ee10 Mon Sep 17 00:00:00 2001 From: Dean Marcussen Date: Fri, 18 Dec 2020 15:20:26 +0000 Subject: [PATCH] Remove ci integration tests --- src/OrchardCore.Build/Dependencies.props | 5 ++-- .../Apis/Recipes/AgencyRecipeTests.cs | 28 ------------------ .../Apis/Recipes/BlogRecipeTests.cs | 28 ------------------ .../Apis/Recipes/ComingSoonRecipeTests.cs | 29 ------------------- .../Apis/Recipes/HeadlessRecipeTests.cs | 29 ------------------- 5 files changed, 2 insertions(+), 117 deletions(-) delete mode 100644 test/OrchardCore.Tests/Apis/Recipes/AgencyRecipeTests.cs delete mode 100644 test/OrchardCore.Tests/Apis/Recipes/BlogRecipeTests.cs delete mode 100644 test/OrchardCore.Tests/Apis/Recipes/ComingSoonRecipeTests.cs delete mode 100644 test/OrchardCore.Tests/Apis/Recipes/HeadlessRecipeTests.cs diff --git a/src/OrchardCore.Build/Dependencies.props b/src/OrchardCore.Build/Dependencies.props index c5fe7b7983e..ff9fd69ce60 100644 --- a/src/OrchardCore.Build/Dependencies.props +++ b/src/OrchardCore.Build/Dependencies.props @@ -38,9 +38,8 @@ - - - + + diff --git a/test/OrchardCore.Tests/Apis/Recipes/AgencyRecipeTests.cs b/test/OrchardCore.Tests/Apis/Recipes/AgencyRecipeTests.cs deleted file mode 100644 index 84b8443aca4..00000000000 --- a/test/OrchardCore.Tests/Apis/Recipes/AgencyRecipeTests.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System.Threading.Tasks; -using OrchardCore.Tests.Apis.Context; -using OrchardCore.Tests.Apis.Context.Attributes; -using Xunit; - -namespace OrchardCore.Tests.Apis.Recipes -{ - public class AgencyRecipeTests - { - [Theory] - [SqliteData] - [SqlServerData] - [MySqlData] - [PostgreSqlData] - public async Task ShouldCreateAgency(string databaseProvider, string connectionString) - { - using var context = new AgencyContext() - .WithDatabaseProvider(databaseProvider) - .WithConnectionString(connectionString); - - // Act - await context.InitializeAsync(); - - var result = await context.Client.GetAsync("/"); - Assert.True(result.IsSuccessStatusCode); - } - } -} diff --git a/test/OrchardCore.Tests/Apis/Recipes/BlogRecipeTests.cs b/test/OrchardCore.Tests/Apis/Recipes/BlogRecipeTests.cs deleted file mode 100644 index 53348509ca1..00000000000 --- a/test/OrchardCore.Tests/Apis/Recipes/BlogRecipeTests.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System.Threading.Tasks; -using OrchardCore.Tests.Apis.Context; -using OrchardCore.Tests.Apis.Context.Attributes; -using Xunit; - -namespace OrchardCore.Tests.Apis.Recipes -{ - public class BlogRecipeTests - { - [Theory] - [SqliteData] - [SqlServerData] - [MySqlData] - [PostgreSqlData] - public async Task ShouldCreateBlog(string databaseProvider, string connectionString) - { - using var context = new SiteContext() - .WithDatabaseProvider(databaseProvider) - .WithConnectionString(connectionString); - - // Act - await context.InitializeAsync(); - - var result = await context.Client.GetAsync("/"); - Assert.True(result.IsSuccessStatusCode); - } - } -} diff --git a/test/OrchardCore.Tests/Apis/Recipes/ComingSoonRecipeTests.cs b/test/OrchardCore.Tests/Apis/Recipes/ComingSoonRecipeTests.cs deleted file mode 100644 index 9646d048c51..00000000000 --- a/test/OrchardCore.Tests/Apis/Recipes/ComingSoonRecipeTests.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System.Threading.Tasks; -using OrchardCore.Tests.Apis.Context; -using OrchardCore.Tests.Apis.Context.Attributes; -using Xunit; - -namespace OrchardCore.Tests.Apis.Recipes -{ - public class ComingSoonRecipeTests - { - [Theory] - [SqliteData] - [SqlServerData] - [MySqlData] - [PostgreSqlData] - public async Task ShouldCreateComingSoon(string databaseProvider, string connectionString) - { - using var context = new SiteContext() - .WithRecipe("ComingSoon") - .WithDatabaseProvider(databaseProvider) - .WithConnectionString(connectionString); - - // Act - await context.InitializeAsync(); - - var result = await context.Client.GetAsync("/"); - Assert.True(result.IsSuccessStatusCode); - } - } -} diff --git a/test/OrchardCore.Tests/Apis/Recipes/HeadlessRecipeTests.cs b/test/OrchardCore.Tests/Apis/Recipes/HeadlessRecipeTests.cs deleted file mode 100644 index 5b7babc3adf..00000000000 --- a/test/OrchardCore.Tests/Apis/Recipes/HeadlessRecipeTests.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System.Threading.Tasks; -using OrchardCore.Tests.Apis.Context; -using OrchardCore.Tests.Apis.Context.Attributes; -using Xunit; - -namespace OrchardCore.Tests.Apis.Recipes -{ - public class HeadlessRecipeTests - { - [Theory] - [SqliteData] - [SqlServerData] - [MySqlData] - [PostgreSqlData] - public async Task ShouldCreateHeadless(string databaseProvider, string connectionString) - { - using var context = new SiteContext() - .WithRecipe("Headless") - .WithDatabaseProvider(databaseProvider) - .WithConnectionString(connectionString); - - // Act - await context.InitializeAsync(); - - var result = await context.Client.GetAsync("/"); - Assert.True(result.IsSuccessStatusCode); - } - } -}