This commit is contained in:
2020-05-13 22:36:32 +00:00
parent 2201f9c72d
commit 69491c3093
6 changed files with 8 additions and 8 deletions

View File

@@ -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>();
////////////////////////////////////////// //////////////////////////////////////////

View File

@@ -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);
} }

View File

@@ -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);

View File

@@ -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);
} }

View File

@@ -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);
} }

View File

@@ -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);