This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user