* Add configuration/code to not run certain tests based on variables/release builds * Applied longrunning testAttribute to the worst offenders (>200ms on my machine) * Fix yaml notation * split up windows/non windows test runs * Added supression for moved tests * Fix yaml validation issues * Change yaml string parameter null value to empty string * Convert empty strings to whitespace strings * Rename and cleanup some paramater to better reflect why we use them * Nightly build test * Change nightly build authentication type * template paramater fix * Update nightly pipeline name --------- Co-authored-by: Sven Geusens <sge@umbraco.dk>
30 lines
801 B
C#
30 lines
801 B
C#
// Copyright (c) Umbraco.
|
|
// See LICENSE for more details.
|
|
|
|
using System.Net;
|
|
using System.Threading.Tasks;
|
|
using NUnit.Framework;
|
|
using Umbraco.Cms.Tests.Common.Attributes;
|
|
using Umbraco.Cms.Tests.Integration.TestServerTest;
|
|
using Umbraco.Cms.Web.BackOffice.Controllers;
|
|
|
|
namespace Umbraco.Cms.Tests.Integration.Umbraco.Web.BackOffice.Controllers;
|
|
|
|
[TestFixture]
|
|
public class BackOfficeAssetsControllerTests : UmbracoTestServerTestBase
|
|
{
|
|
[Test]
|
|
[LongRunning]
|
|
public async Task EnsureSuccessStatusCode()
|
|
{
|
|
// Arrange
|
|
var url = PrepareApiControllerUrl<BackOfficeAssetsController>(x => x.GetSupportedLocales());
|
|
|
|
// Act
|
|
var response = await Client.GetAsync(url);
|
|
|
|
// Assert
|
|
Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
|
|
}
|
|
}
|