This commit is contained in:
@@ -112,7 +112,7 @@ namespace raven_integration
|
||||
uint OriginalConcurrencyToken = a.ObjectResponse["result"]["concurrencyToken"].Value<uint>();
|
||||
|
||||
//Now TechFullAuthToken attempt to modify it via patch
|
||||
var newName = Util.Uniquify("ServerShouldDisAllowOwnerOnlyRightsUserToPatchNonOwned - UPDATED TEST WIDGET");
|
||||
var newName = Util.Uniquify("ServerShouldDisAllowOwnerOnlyRightsUserToPatchNonOwned - UPDATED TEST WIDGETB");
|
||||
string patchJson = "[{\"value\": \"" + newName + "\",\"path\": \"/name\",\"op\": \"replace\"}]";
|
||||
a = await Util.PatchAsync("Widget/" + Id.ToString() + "/" + OriginalConcurrencyToken.ToString(), await Util.GetTokenAsync( "TechFull"), patchJson);
|
||||
//2004 unauthorized expected
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace raven_integration
|
||||
public static string Uniquify(string s)
|
||||
{
|
||||
|
||||
return s + ((DateTimeOffset)DateTime.Now).ToUnixTimeSeconds();
|
||||
return s + ((DateTimeOffset)DateTime.Now).ToUnixTimeMilliseconds().ToString();
|
||||
}
|
||||
|
||||
public async static Task<string> GetTokenAsync(string login, string password = null)
|
||||
|
||||
Reference in New Issue
Block a user