This commit is contained in:
2018-09-04 17:00:16 +00:00
parent f1ce2baa63
commit a15e02db54
10 changed files with 70 additions and 16 deletions

View File

@@ -0,0 +1,31 @@
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