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:
@@ -81,7 +81,8 @@ public class InstallAreaRoutesTests
|
||||
var route = endpoints.DataSources.First();
|
||||
Assert.AreEqual(1, route.Endpoints.Count);
|
||||
|
||||
Assert.AreEqual("install/{controller?}/{action?} HTTP: GET", route.Endpoints[0].ToString());
|
||||
var routeEndpoint = (RouteEndpoint)route.Endpoints[0];
|
||||
Assert.AreEqual("install/{controller?}/{action?}", routeEndpoint.RoutePattern.RawText);
|
||||
}
|
||||
|
||||
private InstallAreaRoutes GetInstallAreaRoutes(RuntimeLevel level) =>
|
||||
|
||||
Reference in New Issue
Block a user