This commit is contained in:
@@ -65,7 +65,7 @@ namespace raven_integration
|
|||||||
|
|
||||||
//PATCH
|
//PATCH
|
||||||
string newEmail = "patchtestuseroptions@helloayanova.com";
|
string newEmail = "patchtestuseroptions@helloayanova.com";
|
||||||
string patchJson = "[{\"value\": \"" + newEmail + "\",\"path\": \"/emailAddress\",\"op\": \"replace\"}]";
|
string patchJson = "[{\"value\": \"" + newEmail + "\",\"path\": \"/emailAddress\",\"op\": \"replace\"}]";
|
||||||
ApiResponse PATCHTestResponse = await Util.PatchAsync("UserOptions/" + UserId.ToString() + "/" + concurrencyToken.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"), patchJson);
|
ApiResponse PATCHTestResponse = await Util.PatchAsync("UserOptions/" + UserId.ToString() + "/" + concurrencyToken.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"), patchJson);
|
||||||
Util.ValidateHTTPStatusCode(PATCHTestResponse, 200);
|
Util.ValidateHTTPStatusCode(PATCHTestResponse, 200);
|
||||||
|
|
||||||
@@ -79,10 +79,12 @@ namespace raven_integration
|
|||||||
// concurrencyToken = R.ObjectResponse["result"]["concurrencyToken"].Value<uint>();
|
// concurrencyToken = R.ObjectResponse["result"]["concurrencyToken"].Value<uint>();
|
||||||
|
|
||||||
//DELETE USER
|
//DELETE USER
|
||||||
// ApiResponse DELETETestResponse = await Util.DeleteAsync("User/" + d2Id.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"));
|
ApiResponse DELETETestResponse = await Util.DeleteAsync("User/" + UserId.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"));
|
||||||
// Util.ValidateHTTPStatusCode(DELETETestResponse, 204);
|
Util.ValidateHTTPStatusCode(DELETETestResponse, 204);
|
||||||
|
|
||||||
//CHECK DELETE USER REMOVED USEROPTIONS
|
//CHECK DELETE USER REMOVED USEROPTIONS
|
||||||
|
R = await Util.GetAsync("UserOptions/" + UserId.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"));
|
||||||
|
Util.ValidateResponseNotFound(R);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user