This commit is contained in:
2018-10-03 20:58:48 +00:00
parent fbf05d9bac
commit 2493b1161a
2 changed files with 4 additions and 5 deletions

View File

@@ -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"));

View File

@@ -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)