mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
28 lines
752 B
C#
28 lines
752 B
C#
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}");
|
|
|
|
Assert.Contains("Wabbajack Files -", result);
|
|
}
|
|
}
|
|
}
|