This commit is contained in:
@@ -43,7 +43,7 @@ namespace raven_integration
|
|||||||
d = new JObject();
|
d = new JObject();
|
||||||
d.login = UniqueName;
|
d.login = UniqueName;
|
||||||
d.password = UniqueName;
|
d.password = UniqueName;
|
||||||
a = await Util.PostAsync("Auth", null, d.ToString());
|
a = await Util.PostAsync("auth", null, d.ToString());
|
||||||
string downloadToken = a.ObjectResponse["data"]["dlt"].Value<string>();
|
string downloadToken = a.ObjectResponse["data"]["dlt"].Value<string>();
|
||||||
|
|
||||||
//////////////////////////////////////////
|
//////////////////////////////////////////
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using FluentAssertions;
|
|||||||
namespace raven_integration
|
namespace raven_integration
|
||||||
{
|
{
|
||||||
|
|
||||||
public class Auth
|
public class auth
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
@@ -25,7 +25,7 @@ namespace raven_integration
|
|||||||
dynamic d = new JObject();
|
dynamic d = new JObject();
|
||||||
d.login = "BOGUS";
|
d.login = "BOGUS";
|
||||||
d.password = "ACCOUNT";
|
d.password = "ACCOUNT";
|
||||||
ApiResponse a = await Util.PostAsync("Auth", null, d.ToString());
|
ApiResponse a = await Util.PostAsync("auth", null, d.ToString());
|
||||||
Util.ValidateErrorCodeResponse(a, 2003, 401);
|
Util.ValidateErrorCodeResponse(a, 2003, 401);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ namespace raven_integration
|
|||||||
creds.login = login;
|
creds.login = login;
|
||||||
creds.password = password;
|
creds.password = password;
|
||||||
|
|
||||||
ApiResponse a = await Util.PostAsync("Auth", null, creds.ToString());
|
ApiResponse a = await Util.PostAsync("auth", null, creds.ToString());
|
||||||
//Put this in when having concurrency issue during auth and old style dl token creation during login
|
//Put this in when having concurrency issue during auth and old style dl token creation during login
|
||||||
// ValidateDataReturnResponseOk(a);
|
// ValidateDataReturnResponseOk(a);
|
||||||
|
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ namespace raven_integration
|
|||||||
dynamic DCreds = new JObject();
|
dynamic DCreds = new JObject();
|
||||||
DCreds.password = d.password;
|
DCreds.password = d.password;
|
||||||
DCreds.login = d.login;
|
DCreds.login = d.login;
|
||||||
a = await Util.PostAsync("Auth", null, DCreds.ToString());
|
a = await Util.PostAsync("auth", null, DCreds.ToString());
|
||||||
Util.ValidateDataReturnResponseOk(a);
|
Util.ValidateDataReturnResponseOk(a);
|
||||||
|
|
||||||
//GET user (login changed concurrency token above)
|
//GET user (login changed concurrency token above)
|
||||||
@@ -204,7 +204,7 @@ namespace raven_integration
|
|||||||
//dynamic DCreds = new JObject();
|
//dynamic DCreds = new JObject();
|
||||||
DCreds.password = NewPassword;
|
DCreds.password = NewPassword;
|
||||||
// DCreds.login = d.login;
|
// DCreds.login = d.login;
|
||||||
a = await Util.PostAsync("Auth", null, DCreds.ToString());
|
a = await Util.PostAsync("auth", null, DCreds.ToString());
|
||||||
Util.ValidateDataReturnResponseOk(a);
|
Util.ValidateDataReturnResponseOk(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace raven_integration
|
|||||||
{
|
{
|
||||||
dynamic DCreds = new JObject();
|
dynamic DCreds = new JObject();
|
||||||
DCreds.password = DCreds.login = "TEST_INACTIVE";
|
DCreds.password = DCreds.login = "TEST_INACTIVE";
|
||||||
ApiResponse a = await Util.PostAsync("Auth", null, DCreds.ToString());
|
ApiResponse a = await Util.PostAsync("auth", null, DCreds.ToString());
|
||||||
Util.ValidateErrorCodeResponse(a,2003, 401);
|
Util.ValidateErrorCodeResponse(a,2003, 401);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
util.cs
2
util.cs
@@ -96,7 +96,7 @@ namespace raven_integration
|
|||||||
// creds.login = login;
|
// creds.login = login;
|
||||||
// creds.password = password;
|
// creds.password = password;
|
||||||
|
|
||||||
// ApiResponse a = await Util.PostAsync("Auth", null, creds.ToString());
|
// ApiResponse a = await Util.PostAsync("auth", null, creds.ToString());
|
||||||
// //Put this in when having concurrency issue during auth and old style dl token creation during login
|
// //Put this in when having concurrency issue during auth and old style dl token creation during login
|
||||||
// ValidateDataReturnResponseOk(a);
|
// ValidateDataReturnResponseOk(a);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user