This commit is contained in:
@@ -68,7 +68,8 @@ namespace raven_integration
|
||||
//update w2id
|
||||
D2.name = Util.Uniquify("UPDATED VIA PUT SECOND TEST User");
|
||||
D2.concurrency = R2.ObjectResponse["data"]["concurrency"].Value<uint>();
|
||||
ApiResponse PUTTestResponse = await Util.PutAsync("User/" + d2Id.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"), D2.ToString());
|
||||
D2.id=d2Id;
|
||||
ApiResponse PUTTestResponse = await Util.PutAsync("User" , await Util.GetTokenAsync("manager", "l3tm3in"), D2.ToString());
|
||||
Util.ValidateHTTPStatusCode(PUTTestResponse, 200);
|
||||
|
||||
//check PUT worked
|
||||
@@ -149,7 +150,8 @@ namespace raven_integration
|
||||
|
||||
D.name = Util.Uniquify("PutConcurrencyViolationShouldFail UPDATE VIA PUT ");
|
||||
D.concurrency = OriginalConcurrencyToken - 1;//bad token
|
||||
ApiResponse PUTTestResponse = await Util.PutAsync("User/" + D1Id.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
||||
D.id=D1Id;
|
||||
ApiResponse PUTTestResponse = await Util.PutAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
||||
Util.ValidateConcurrencyError(PUTTestResponse);
|
||||
}
|
||||
|
||||
@@ -197,7 +199,7 @@ namespace raven_integration
|
||||
var NewPassword = "NEW_PASSWORD";
|
||||
d.password = NewPassword;
|
||||
d.login=DCreds.login;
|
||||
a = await Util.PutAsync("User/" + UserId.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"), d.ToString());
|
||||
a = await Util.PutAsync("User", await Util.GetTokenAsync("manager", "l3tm3in"), d.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
|
||||
//Test can login with new creds
|
||||
|
||||
Reference in New Issue
Block a user