From f1f0e56cd73b7a6be260cc0c40292b928c19cecd Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 30 Apr 2019 17:13:31 +0000 Subject: [PATCH] --- Attachments/AttachmentTest.cs | 2 +- User/UserInactive.cs | 2 +- Widget/WidgetRights.cs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Attachments/AttachmentTest.cs b/Attachments/AttachmentTest.cs index bc77b88..bded9ee 100644 --- a/Attachments/AttachmentTest.cs +++ b/Attachments/AttachmentTest.cs @@ -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); } diff --git a/User/UserInactive.cs b/User/UserInactive.cs index 64b99fe..9e7a06b 100644 --- a/User/UserInactive.cs +++ b/User/UserInactive.cs @@ -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); } diff --git a/Widget/WidgetRights.cs b/Widget/WidgetRights.cs index d149952..15dc512 100644 --- a/Widget/WidgetRights.cs +++ b/Widget/WidgetRights.cs @@ -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); }