This commit is contained in:
2019-04-30 17:13:31 +00:00
parent 0d3e60600f
commit f1f0e56cd7
3 changed files with 6 additions and 6 deletions

View File

@@ -113,7 +113,7 @@ namespace raven_integration
ApiResponse a = await Util.PostFormDataAsync("Attachment", formDataContent, await Util.GetTokenAsync("BizAdminLimited"));
//2004 unauthorized
Util.ValidateErrorCodeResponse(a, 2004, 401);
Util.ValidateErrorCodeResponse(a, 2004, 403);
}

View File

@@ -18,7 +18,7 @@ namespace raven_integration
dynamic DCreds = new JObject();
DCreds.password = DCreds.login = "TEST_INACTIVE";
ApiResponse a = await Util.PostAsync("Auth", null, DCreds.ToString());
Util.ValidateErrorCodeResponse(a,2004, 401);
Util.ValidateErrorCodeResponse(a,2003, 401);
}

View File

@@ -30,7 +30,7 @@ namespace raven_integration
{
ApiResponse a = await Util.GetAsync("Widget/listwidgets", await Util.GetTokenAsync( "OpsAdminFull"));
//2004 unauthorized
Util.ValidateErrorCodeResponse(a, 2004, 401);
Util.ValidateErrorCodeResponse(a, 2004, 403);
}
@@ -53,7 +53,7 @@ namespace raven_integration
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync( "BizAdminLimited"), d.ToString());
//2004 unauthorized
Util.ValidateErrorCodeResponse(a, 2004, 401);
Util.ValidateErrorCodeResponse(a, 2004, 403);
}
@@ -120,7 +120,7 @@ namespace raven_integration
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
Util.ValidateErrorCodeResponse(a, 2004, 401);
Util.ValidateErrorCodeResponse(a, 2004, 403);
}
@@ -193,7 +193,7 @@ namespace raven_integration
d.name = newName;
a = await Util.PutAsync("Widget/" + Id.ToString(), await Util.GetTokenAsync( "TechFull"), d.ToString());
//2004 unauthorized expected
Util.ValidateErrorCodeResponse(a, 2004, 401);
Util.ValidateErrorCodeResponse(a, 2004, 403);
}