This commit is contained in:
@@ -67,8 +67,8 @@ namespace raven_integration
|
|||||||
|
|
||||||
//check PUT worked
|
//check PUT worked
|
||||||
ApiResponse checkPUTWorked = await Util.GetAsync("Tag/" + tagId.ToString(), await Util.GetTokenAsync("BizAdminFull"));
|
ApiResponse checkPUTWorked = await Util.GetAsync("Tag/" + tagId.ToString(), await Util.GetTokenAsync("BizAdminFull"));
|
||||||
Util.ValidateNoErrorInResponse(checkPUTWorked);
|
Util.ValidateNoErrorInResponse(checkPUTWorked);
|
||||||
checkPUTWorked.ObjectResponse["result"]["name"].Value<string>().Should().Be(w1.name.ToString().ToLowerInvariant());
|
checkPUTWorked.ObjectResponse["result"]["name"].Value<string>().Should().Be(w1.name.ToString().ToLowerInvariant().Replace(" ", "-"));
|
||||||
uint concurrencyToken = PUTTestResponse.ObjectResponse["result"]["concurrencyToken"].Value<uint>();
|
uint concurrencyToken = PUTTestResponse.ObjectResponse["result"]["concurrencyToken"].Value<uint>();
|
||||||
|
|
||||||
//PATCH
|
//PATCH
|
||||||
@@ -80,7 +80,7 @@ namespace raven_integration
|
|||||||
//check PATCH worked
|
//check PATCH worked
|
||||||
ApiResponse checkPATCHWorked = await Util.GetAsync("Tag/" + tagId.ToString(), await Util.GetTokenAsync("BizAdminFull"));
|
ApiResponse checkPATCHWorked = await Util.GetAsync("Tag/" + tagId.ToString(), await Util.GetTokenAsync("BizAdminFull"));
|
||||||
Util.ValidateNoErrorInResponse(checkPATCHWorked);
|
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
|
// //DELETE
|
||||||
ApiResponse DELETETestResponse = await Util.DeleteAsync("Tag/" + tagId.ToString(), await Util.GetTokenAsync("BizAdminFull"));
|
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)
|
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)
|
public async static Task<string> GetTokenAsync(string login, string password = null)
|
||||||
|
|||||||
Reference in New Issue
Block a user