New Backoffice - Exposing hardcoded Open API contract (#12953)
* Only expose swagger ui when in development
* Only expose swagger ui when in development + Test confirming the contract is respected + contract
* Rollback test code
* Fix up formatting
* Add reference to managementapi in integration tests.
* Revert "Add reference to managementapi in integration tests."
This reverts commit 67e2bf827758767e9031d40d146d6f27fd6c031e.
* Fix integration tests
* Add reference to management api in integration tests
* Fix up schema
* Fixed tests
* Fix test.. do not execute that composer twice
* Revert "Updated dependencies and fixed new NRT issues"
This reverts commit b2b2903a6e.
* Added debug info to test, to debug on azure pipeline
* Try and fix OpenApi test
* Only run test in release
* Try fixing OpenApi.json
Co-authored-by: Nikolaj <nikolajlauridsen@protonmail.ch>
This commit is contained in:
@@ -19,6 +19,9 @@ using Umbraco.Cms.Core.Composing;
|
||||
using Umbraco.Cms.Core.DependencyInjection;
|
||||
using Umbraco.Cms.Core.Services;
|
||||
using Umbraco.Cms.Core.Web;
|
||||
using Umbraco.Cms.ManagementApi;
|
||||
using Umbraco.Cms.ManagementApi.Configuration;
|
||||
using Umbraco.Cms.ManagementApi.Controllers.Install;
|
||||
using Umbraco.Cms.Persistence.Sqlite;
|
||||
using Umbraco.Cms.Persistence.SqlServer;
|
||||
using Umbraco.Cms.Tests.Common.Testing;
|
||||
@@ -26,7 +29,6 @@ using Umbraco.Cms.Tests.Integration.DependencyInjection;
|
||||
using Umbraco.Cms.Tests.Integration.Testing;
|
||||
using Umbraco.Cms.Web.BackOffice.Controllers;
|
||||
using Umbraco.Cms.Web.Common.Controllers;
|
||||
using Umbraco.Cms.Web.Common.Hosting;
|
||||
using Umbraco.Cms.Web.Website.Controllers;
|
||||
using Umbraco.Extensions;
|
||||
|
||||
@@ -238,6 +240,9 @@ namespace Umbraco.Cms.Tests.Integration.TestServerTest
|
||||
|
||||
// Adds Umbraco.Tests.Integration
|
||||
mvcBuilder.AddApplicationPart(typeof(UmbracoTestServerTestBase).Assembly);
|
||||
|
||||
// Adds Umbraco.Tests.Integration
|
||||
mvcBuilder.AddApplicationPart(typeof(InstallControllerBase).Assembly);
|
||||
})
|
||||
.AddWebServer()
|
||||
.AddWebsite()
|
||||
@@ -245,6 +250,8 @@ namespace Umbraco.Cms.Tests.Integration.TestServerTest
|
||||
.AddUmbracoSqliteSupport()
|
||||
.AddTestServices(TestHelper); // This is the important one!
|
||||
|
||||
new ManagementApiComposer().Compose(builder);
|
||||
|
||||
CustomTestSetup(builder);
|
||||
builder.Build();
|
||||
}
|
||||
@@ -254,6 +261,7 @@ namespace Umbraco.Cms.Tests.Integration.TestServerTest
|
||||
/// </summary>
|
||||
protected virtual void ConfigureTestServices(IServiceCollection services)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Configure(IApplicationBuilder app)
|
||||
|
||||
Reference in New Issue
Block a user