Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for UserFields in ZendeskApi_v2 #599

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Fix: remove the space

ffb6b88
Select commit
Loading
Failed to load commit list.
Open

Add Support for UserFields in ZendeskApi_v2 #599

Fix: remove the space
ffb6b88
Select commit
Loading
Failed to load commit list.
Azure Pipelines / Speedygeek.ZendeskApi_v2 failed Aug 21, 2024 in 3m 30s

Build #3.13.0-PullRequest599.24 had test failures

Details

Tests

  • Failed: 1,188 (87.87%)
  • Passed: 156 (11.54%)
  • Other: 8 (0.59%)
  • Total: 1,352

Annotations

Check failure on line 14886 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Speedygeek.ZendeskApi_v2

Build log #L14886

Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1

Check failure on line 14891 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Speedygeek.ZendeskApi_v2

Build log #L14891

Dotnet command failed with non-zero exit code on the following projects : [
  'D:\\a\\1\\s\\tests\\ZendeskApi_v2.Tests\\ZendeskApi_v2.Tests.csproj'
]

Check failure on line 1 in ZendeskApi_v2.Tests.HelpCenter.UserSegmentTests.CanCreateUpdateAndDeleteUserSegmentsAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Speedygeek.ZendeskApi_v2

ZendeskApi_v2.Tests.HelpCenter.UserSegmentTests.CanCreateUpdateAndDeleteUserSegmentsAsync

System.Net.WebException : The remote server returned an error: (403) Forbidden.Error content:  
 Resource String: help_center/user_segments.json  + 
 Body: {
  "user_segment": {
    "name": "My Test User Segment Async",
    "user_type": "signed_in_users",
    "built_in": false
  }
}Date: Wed, 21 Aug 2024 06:54:35 GMT
Transfer-Encoding: chunked
Connection: keep-alive
X-UA-Compatible: IE=edge
x-zendesk-api-version: v2
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
x-rate-limit: 700
x-rate-limit-remaining: 635
x-zendesk-processed-host-header: csharpapi.zendesk.com
Strict-Transport-Security: max-age=31536000; includeSubDomains
x-zendesk-origin-server: app-server-76544bfc85-j7dtb
Cache-Control: no-cache
x-runtime: 0.030975
X-Zendesk-API-Gateway: yes
X-Zendesk-Zorg: yes
X-Request-ID: 8b68b66bfbaec98b-IAD
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=1ItoPqj8uwK1P6wLTW2CfbVRJQl9udLhVUDX4jzsd8aBLJxNFk0BYNEk0ij2mIDejj3wnv0F6heXDb0NaDxEWbxcWqHTyAUuL9CqpTv0SQLxKCIwjM6WEp%2BtxQPd%2BocGjvvvrtximA%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}
Set-Cookie: __cfruid=860ea4eecaea613aab037b1f8ed6725c435f2e45-1724223275; path=/; domain=.csharpapi.zendesk.com; HttpOnly; Secure; SameSite=None
Server: cloudflare
CF-RAY: 8b68b66bfbaec98b-IAD
Content-Type: text/html


Data:
  jsonException: 
  ----> System.Net.WebException : The remote server returned an error: (403) Forbidden.
Raw output
   at ZendeskApi_v2.Core.RunRequestAsync(String resource, String requestMethod, Object body, Nullable`1 timeout, Dictionary`2 formParameters) in /_/src/ZendeskApi_v2/Core.cs:line 440
   at ZendeskApi_v2.Core.RunRequestAsync[T](String resource, String requestMethod, Object body, Nullable`1 timeout, Dictionary`2 formParameters) in /_/src/ZendeskApi_v2/Core.cs:line 381
   at ZendeskApi_v2.Core.GenericPostAsync[T](String resource, Object body) in /_/src/ZendeskApi_v2/Core.cs:line 551
   at ZendeskApi_v2.Requests.HelpCenter.UserSegments.CreateUserSegmentAsync(UserSegment UserSegment) in /_/src/ZendeskApi_v2/Requests/HelpCenter/UserSegments.cs:line 164
   at ZendeskApi_v2.Tests.HelpCenter.UserSegmentTests.CanCreateUpdateAndDeleteUserSegmentsAsync() in D:\a\1\s\tests\ZendeskApi_v2.Tests\HelpCenter\UserSegmentTests.cs:line 134
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()
--WebException
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location ---
   at ZendeskApi_v2.Core.RunRequestAsync(String resource, String requestMethod, Object body, Nullable`1 timeout, Dictionary`2 formParameters) in /_/src/ZendeskApi_v2/Core.cs:line 440

Check failure on line 1 in ZendeskApi_v2.Tests.UserTests.CanGetMultipleUsersAsync

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Speedygeek.ZendeskApi_v2

ZendeskApi_v2.Tests.UserTests.CanGetMultipleUsersAsync

System.AggregateException : One or more errors occurred. (The remote server returned an error: (401) Unauthorized.Error content: {"error":"Couldn't authenticate you"} 
 Resource String: users.json?per_page=10&page=1  + 
Date: Wed, 21 Aug 2024 06:55:00 GMT
Connection: keep-alive
WWW-Authenticate: Basic realm="Web Password"
Strict-Transport-Security: max-age=31536000; includeSubDomains
Cache-Control: no-cache
Set-Cookie: _zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca; path=/; expires=Thu, 21 Aug 2025 06:34:27 GMT; secure; HttpOnly; SameSite=None, __cfruid=065c72ca15e66e9e77f5fd143eafe31124487a65-1724223300; path=/; domain=.csharpapi.zendesk.com; HttpOnly; Secure; SameSite=None
x-zendesk-origin-server: classic-app-server-7fcf6bcfbd-cz68p
x-runtime: 0.028700
X-Zendesk-API-Gateway: yes
X-Zendesk-Zorg: yes
X-Request-ID: 8b68b70dad101775-IAD
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=3TdG1Ce1S00g3MrypRtr0CW1lqgm%2BqS8TER7FrIU0e4sS%2Bwj%2B5i8arEzHXDE%2BrCiXoXlDZy9XwGBwL3f11lRJ3B9avpueWk5srgLgqT8V%2FL64zJLnVYZVUp11VxJxyjrOloYIbhkZA%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 8b68b70dad101775-IAD
Content-Type: application/json; charset=utf-8
Content-Length: 37

)
  ----> System.Net.WebException : The remote server returned an error: (401) Unauthorized.Error content: {"error":"Couldn't authenticate you"} 
 Resource String: users.json?per_page=10&page=1  + 
Date: Wed, 21 Aug 2024 06:55:00 GMT
Connection: keep-alive
WWW-Authenticate: Basic realm="Web Password"
Strict-Transport-Security: max-age=31536000; includeSubDomains
Cache-Control: no-cache
Set-Cookie: _zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca; path=/; expires=Thu, 21 Aug 2025 06:34:27 GMT; secure; HttpOnly; SameSite=None, __cfruid=065c72ca15e66e9e77f5fd143eafe31124487a65-1724223300; path=/; domain=.csharpapi.zendesk.com; HttpOnly; Secure; SameSite=None
x-zendesk-origin-server: classic-app-server-7fcf6bcfbd-cz68p
x-runtime: 0.028700
X-Zendesk-API-Gateway: yes
X-Zendesk-Zorg: yes
X-Request-ID: 8b68b70dad101775-IAD
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=3TdG1Ce1S00g3MrypRtr0CW1lqgm%2BqS8TER7FrIU0e4sS%2Bwj%2B5i8arEzHXDE%2BrCiXoXlDZy9XwGBwL3f11lRJ3B9avpueWk5srgLgqT8V%2FL64zJLnVYZVUp11VxJxyjrOloYIbhkZA%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 8b68b70dad101775-IAD
Content-Type: application/json; charset=utf-8
Content-Length: 37


Data:
  jsonException: {"error":"Couldn't authenticate you"}
  ----> System.Net.WebException : The remote server returned an error: (401) Unauthorized.
Raw output
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at ZendeskApi_v2.Tests.UserTests.CanGetMultipleUsersAsync() in D:\a\1\s\tests\ZendeskApi_v2.Tests\UserTests.cs:line 473
--WebException
   at ZendeskApi_v2.Core.RunRequestAsync(String resource, String requestMethod, Object body, Nullable`1 timeout, Dictionary`2 formParameters) in /_/src/ZendeskApi_v2/Core.cs:line 440
   at ZendeskApi_v2.Core.RunRequestAsync[T](String resource, String requestMethod, Object body, Nullable`1 timeout, Dictionary`2 formParameters) in /_/src/ZendeskApi_v2/Core.cs:line 381
   at ZendeskApi_v2.Core.GenericGetAsync[T](String resource) in /_/src/ZendeskApi_v2/Core.cs:line 479
   at ZendeskApi_v2.Core.GenericPagedGetAsync[T](String resource, Nullable`1 perPage, Nullable`1 page) in /_/src/ZendeskApi_v2/Core.cs:line 502
   at ZendeskApi_v2.Requests.Users.GetAllUsersAsync(Nullable`1 perPage, Nullable`1 page, UserSideLoadOptions sideLoadOptions) in /_/src/ZendeskApi_v2/Requests/Users.cs:line 550
--WebException
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location ---
   at ZendeskApi_v2.Core.RunRequestAsync(String resource, String requestMethod, Object body, Nullable`1 timeout, Dictionary`2 formParameters) in /_/src/ZendeskApi_v2/Core.cs:line 440

Check failure on line 1 in ZendeskApi_v2.Tests.ScheduleTests.CanUpdateIntervals

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Speedygeek.ZendeskApi_v2

ZendeskApi_v2.Tests.ScheduleTests.CanUpdateIntervals

OneTimeSetUp: System.Net.WebException : The remote server returned an error: (401) Unauthorized.Error content: {"error":"Couldn't authenticate you"} 
 Resource String: business_hours/schedules.json  + 
Date: Wed, 21 Aug 2024 06:54:41 GMT
Connection: keep-alive
WWW-Authenticate: Basic realm="Web Password"
Strict-Transport-Security: max-age=31536000; includeSubDomains
Cache-Control: no-cache
Set-Cookie: _zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca; path=/; expires=Thu, 21 Aug 2025 06:32:32 GMT; secure; HttpOnly; SameSite=None, __cfruid=f933adbb4691e73e878401443a5d0c104a4ec89a-1724223281; path=/; domain=.csharpapi.zendesk.com; HttpOnly; Secure; SameSite=None
x-zendesk-origin-server: classic-app-server-7fcf6bcfbd-z66r5
x-runtime: 0.036826
X-Zendesk-API-Gateway: yes
X-Zendesk-Zorg: yes
X-Request-ID: 8b68b6949e343adb-IAD
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=I6e0Zkrc1S8Y6AIK%2BZu3GiziK0Ph8oipgwZ%2F%2F%2BbZ9tEGWgwYvrtiqB31X1euVPKDWogRKshsnI%2BsfczdVpNkHkcRtb%2FtTcNzPs9Oo0Wl8WPwhrVuI4lESperR4v8vmkyxFeP6dSabQ%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 8b68b6949e343adb-IAD
Content-Type: application/json; charset=utf-8
Content-Length: 37


Data:
  jsonException: {"error":"Couldn't authenticate you"}
  ----> System.Net.WebException : The remote server returned an error: (401) Unauthorized.

Check failure on line 1 in ZendeskApi_v2.Tests.TicketTests.CanGetMultipleTicketsSingleTicket

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Speedygeek.ZendeskApi_v2

ZendeskApi_v2.Tests.TicketTests.CanGetMultipleTicketsSingleTicket

System.Net.WebException : The remote server returned an error: (401) Unauthorized.Error content: {"error":"Couldn't authenticate you"} 
 Resource String: tickets/show_many.json?ids=990  + 
Date: Wed, 21 Aug 2024 06:54:49 GMT
Connection: keep-alive
WWW-Authenticate: Basic realm="Web Password"
Strict-Transport-Security: max-age=31536000; includeSubDomains
Cache-Control: no-cache
Set-Cookie: _zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca; path=/; expires=Thu, 21 Aug 2025 06:30:45 GMT; secure; HttpOnly; SameSite=None, __cfruid=332fac619636c47bf275a60feb09b7017681e38d-1724223289; path=/; domain=.csharpapi.zendesk.com; HttpOnly; Secure; SameSite=None
x-zendesk-origin-server: classic-app-server-7fcf6bcfbd-8n7vw
x-runtime: 0.035699
X-Zendesk-API-Gateway: yes
X-Zendesk-Zorg: yes
X-Request-ID: 8b68b6c72b933adb-IAD
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=qPPIUSiTJslB30myatVzJcAo9%2FKNs3tafgGqfUTu75x6ANRGDfP%2FQ3%2BB2ytIdyHaY2bWh6rcoHppBLgyKZplmV%2FNV%2FaL6Q%2FaUyZ%2BSpkB4wHRX%2FunDKMxgXNBEYUpfVy16cuhaQSC3w%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 8b68b6c72b933adb-IAD
Content-Type: application/json; charset=utf-8
Content-Length: 37


Data:
  jsonException: {"error":"Couldn't authenticate you"}
  ----> System.Net.WebException : The remote server returned an error: (401) Unauthorized.
Raw output
   at ZendeskApi_v2.Core.RunRequest(String resource, String requestMethod, Object body, Nullable`1 timeout, Dictionary`2 formParameters) in /_/src/ZendeskApi_v2/Core.cs:line 188
   at ZendeskApi_v2.Core.RunRequest[T](String resource, String requestMethod, Object body, Nullable`1 timeout, Dictionary`2 formParameters) in /_/src/ZendeskApi_v2/Core.cs:line 121
   at ZendeskApi_v2.Core.GenericGet[T](String resource) in /_/src/ZendeskApi_v2/Core.cs:line 229
   at ZendeskApi_v2.Requests.Tickets.GetMultipleTickets(IEnumerable`1 ids, TicketSideLoadOptionsEnum sideLoadOptions) in /_/src/ZendeskApi_v2/Requests/Tickets.cs:line 418
   at ZendeskApi_v2.Tests.TicketTests.CanGetMultipleTicketsSingleTicket() in D:\a\1\s\tests\ZendeskApi_v2.Tests\TicketTests.cs:line 307
--WebException
   at System.Net.HttpWebRequest.GetResponse()
   at ZendeskApi_v2.Core.RunRequest(String resource, String requestMethod, Object body, Nullable`1 timeout, Dictionary`2 formParameters) in /_/src/ZendeskApi_v2/Core.cs:line 188