This commit is contained in:
@@ -62,20 +62,8 @@ namespace raven_integration
|
|||||||
R.ObjectResponse["result"]["uiColor"].Value<int>().Should().Be((int)D2.UiColor);
|
R.ObjectResponse["result"]["uiColor"].Value<int>().Should().Be((int)D2.UiColor);
|
||||||
concurrencyToken = R.ObjectResponse["result"]["concurrencyToken"].Value<uint>();
|
concurrencyToken = R.ObjectResponse["result"]["concurrencyToken"].Value<uint>();
|
||||||
|
|
||||||
// //update w2id
|
|
||||||
// D2.name = Util.Uniquify("UPDATED VIA PUT SECOND TEST User");
|
|
||||||
// D2.OwnerId = 1;
|
|
||||||
// D2.concurrencyToken = R2.ObjectResponse["result"]["concurrencyToken"].Value<uint>();
|
|
||||||
// ApiResponse PUTTestResponse = await Util.PutAsync("User/" + d2Id.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"), D2.ToString());
|
|
||||||
// Util.ValidateHTTPStatusCode(PUTTestResponse, 200);
|
|
||||||
|
|
||||||
// //check PUT worked
|
//PATCH
|
||||||
// ApiResponse checkPUTWorked = await Util.GetAsync("User/" + d2Id.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"));
|
|
||||||
// Util.ValidateNoErrorInResponse(checkPUTWorked);
|
|
||||||
// checkPUTWorked.ObjectResponse["result"]["name"].Value<string>().Should().Be(D2.name.ToString());
|
|
||||||
// uint concurrencyToken = PUTTestResponse.ObjectResponse["result"]["concurrencyToken"].Value<uint>();
|
|
||||||
|
|
||||||
// //PATCH
|
|
||||||
// var newName = Util.Uniquify("UPDATED VIA PATCH SECOND TEST User");
|
// var newName = Util.Uniquify("UPDATED VIA PATCH SECOND TEST User");
|
||||||
// string patchJson = "[{\"value\": \"" + newName + "\",\"path\": \"/name\",\"op\": \"replace\"}]";
|
// string patchJson = "[{\"value\": \"" + newName + "\",\"path\": \"/name\",\"op\": \"replace\"}]";
|
||||||
// ApiResponse PATCHTestResponse = await Util.PatchAsync("User/" + d2Id.ToString() + "/" + concurrencyToken.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"), patchJson);
|
// ApiResponse PATCHTestResponse = await Util.PatchAsync("User/" + d2Id.ToString() + "/" + concurrencyToken.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"), patchJson);
|
||||||
@@ -86,9 +74,11 @@ namespace raven_integration
|
|||||||
// Util.ValidateNoErrorInResponse(checkPATCHWorked);
|
// Util.ValidateNoErrorInResponse(checkPATCHWorked);
|
||||||
// checkPATCHWorked.ObjectResponse["result"]["name"].Value<string>().Should().Be(newName);
|
// checkPATCHWorked.ObjectResponse["result"]["name"].Value<string>().Should().Be(newName);
|
||||||
|
|
||||||
// //DELETE
|
//DELETE USER
|
||||||
// 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);
|
||||||
|
|
||||||
|
//CHECK DELETE USER REMOVED USEROPTIONS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user