Files
raven/test/raven-integration/User/UserInactive.cs
2018-09-04 17:00:16 +00:00

32 lines
698 B
C#

using System;
using Xunit;
using Newtonsoft.Json.Linq;
using FluentAssertions;
namespace raven_integration
{
public class UserInactive
{
/// <summary>
/// Inactive user should not be able to login
/// </summary>
[Fact]
public async void InactiveUserCantLogin()
{
dynamic creds = new JObject();
creds.password = creds.login = "TEST_INACTIVE";
ApiResponse a = await Util.PostAsync("Auth", null, creds.ToString());
Util.ValidateErrorCodeResponse(a,2004, 401);
}
//==================================================
}//eoc
}//eons