2021-04-11 22:04:12 +00:00
|
|
|
|
using System.Net.Http;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Wabbajack.BuildServer.Test;
|
|
|
|
|
using Wabbajack.Common;
|
|
|
|
|
using Xunit;
|
|
|
|
|
using Xunit.Abstractions;
|
|
|
|
|
|
|
|
|
|
namespace Wabbajack.Server.Test
|
|
|
|
|
{
|
|
|
|
|
public class AuthorControlTests : ABuildServerSystemTest
|
|
|
|
|
{
|
|
|
|
|
public AuthorControlTests(ITestOutputHelper output, SingletonAdaptor<BuildServerFixture> fixture) : base(output, fixture)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
public async Task LoginRedirects()
|
|
|
|
|
{
|
|
|
|
|
var client = new HttpClient();
|
|
|
|
|
var result =
|
|
|
|
|
await client.GetStringAsync($"{Consts.WabbajackBuildServerUri}author_controls/login/{Fixture.APIKey}");
|
|
|
|
|
|
2021-04-13 21:59:40 +00:00
|
|
|
|
Assert.Contains("Wabbajack Files", result);
|
2021-04-11 22:04:12 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|