This commit is contained in:
@@ -87,11 +87,7 @@ namespace raven_integration
|
|||||||
ApiResponse DELETETestResponse = await Util.DeleteAsync("User/" + d2Id.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"));
|
ApiResponse DELETETestResponse = await Util.DeleteAsync("User/" + d2Id.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"));
|
||||||
Util.ValidateHTTPStatusCode(DELETETestResponse, 204);
|
Util.ValidateHTTPStatusCode(DELETETestResponse, 204);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//TODO: Test password updating code
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test not found
|
/// Test not found
|
||||||
@@ -118,10 +114,6 @@ namespace raven_integration
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -152,13 +144,9 @@ namespace raven_integration
|
|||||||
D.concurrencyToken = OriginalConcurrencyToken - 1;//bad token
|
D.concurrencyToken = OriginalConcurrencyToken - 1;//bad token
|
||||||
ApiResponse PUTTestResponse = await Util.PutAsync("User/" + D1Id.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
ApiResponse PUTTestResponse = await Util.PutAsync("User/" + D1Id.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
||||||
Util.ValidateConcurrencyError(PUTTestResponse);
|
Util.ValidateConcurrencyError(PUTTestResponse);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -219,7 +207,6 @@ namespace raven_integration
|
|||||||
R = await Util.PostAsync("Auth", null, DCreds.ToString());
|
R = await Util.PostAsync("Auth", null, DCreds.ToString());
|
||||||
Util.ValidateDataReturnResponseOk(R);
|
Util.ValidateDataReturnResponseOk(R);
|
||||||
|
|
||||||
|
|
||||||
//PUT
|
//PUT
|
||||||
var NewPassword = "NEW_PASSWORD";
|
var NewPassword = "NEW_PASSWORD";
|
||||||
D.password = NewPassword;
|
D.password = NewPassword;
|
||||||
@@ -265,7 +252,6 @@ namespace raven_integration
|
|||||||
R = await Util.PostAsync("Auth", null, DCreds.ToString());
|
R = await Util.PostAsync("Auth", null, DCreds.ToString());
|
||||||
Util.ValidateDataReturnResponseOk(R);
|
Util.ValidateDataReturnResponseOk(R);
|
||||||
|
|
||||||
|
|
||||||
//PATCH
|
//PATCH
|
||||||
var newPassword = "NEW_PASSWORD";
|
var newPassword = "NEW_PASSWORD";
|
||||||
string patchJson = "[{\"value\": \"" + newPassword + "\",\"path\": \"/password\",\"op\": \"replace\"}]";
|
string patchJson = "[{\"value\": \"" + newPassword + "\",\"path\": \"/password\",\"op\": \"replace\"}]";
|
||||||
|
|||||||
Reference in New Issue
Block a user