This commit is contained in:
@@ -67,8 +67,8 @@ namespace raven_integration
|
||||
|
||||
//check PUT worked
|
||||
ApiResponse checkPUTWorked = await Util.GetAsync("Tag/" + tagId.ToString(), await Util.GetTokenAsync("BizAdminFull"));
|
||||
Util.ValidateNoErrorInResponse(checkPUTWorked);
|
||||
checkPUTWorked.ObjectResponse["result"]["name"].Value<string>().Should().Be(w1.name.ToString().ToLowerInvariant());
|
||||
Util.ValidateNoErrorInResponse(checkPUTWorked);
|
||||
checkPUTWorked.ObjectResponse["result"]["name"].Value<string>().Should().Be(w1.name.ToString().ToLowerInvariant().Replace(" ", "-"));
|
||||
uint concurrencyToken = PUTTestResponse.ObjectResponse["result"]["concurrencyToken"].Value<uint>();
|
||||
|
||||
//PATCH
|
||||
@@ -80,7 +80,7 @@ namespace raven_integration
|
||||
//check PATCH worked
|
||||
ApiResponse checkPATCHWorked = await Util.GetAsync("Tag/" + tagId.ToString(), await Util.GetTokenAsync("BizAdminFull"));
|
||||
Util.ValidateNoErrorInResponse(checkPATCHWorked);
|
||||
checkPATCHWorked.ObjectResponse["result"]["name"].Value<string>().Should().Be(newName.ToLowerInvariant());
|
||||
checkPATCHWorked.ObjectResponse["result"]["name"].Value<string>().Should().Be(newName.ToLowerInvariant().Replace(" ", "-"));
|
||||
|
||||
// //DELETE
|
||||
ApiResponse DELETETestResponse = await Util.DeleteAsync("Tag/" + tagId.ToString(), await Util.GetTokenAsync("BizAdminFull"));
|
||||
|
||||
@@ -21,8 +21,7 @@ namespace raven_integration
|
||||
|
||||
public static string Uniquify(string s)
|
||||
{
|
||||
|
||||
return s + ((DateTimeOffset)DateTime.Now).ToUnixTimeMilliseconds().ToString();
|
||||
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