Skip to content

Commit

Permalink
#1038 source freshdesk: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davydov-d committed Nov 21, 2022
1 parent f6267c0 commit 52d8488
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ acceptance_tests:
incremental:
tests:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
configured_catalog_path: "integration_tests/incremental_catalog.json"
future_state:
future_state_path: "integration_tests/abnormal_state.json"
full_refresh:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
[
{
"type": "STREAM",
"stream": {
"stream_state": {
"updated_at": "2121-11-01T00:00:00Z"
},
"stream_descriptor": {
"name": "agents"
}
}
},
{
"type": "STREAM",
"stream": {
"stream_state": {
"updated_at": "2121-11-01T00:00:00Z"
},
"stream_descriptor": {
"name": "companies"
}
}
},
{
"type": "STREAM",
"stream": {
Expand All @@ -32,39 +10,6 @@
}
}
},
{
"type": "STREAM",
"stream": {
"stream_state": {
"updated_at": "2121-11-01T00:00:00Z"
},
"stream_descriptor": {
"name": "conversations"
}
}
},
{
"type": "STREAM",
"stream": {
"stream_state": {
"updated_at": "2121-11-01T00:00:00Z"
},
"stream_descriptor": {
"name": "groups"
}
}
},
{
"type": "STREAM",
"stream": {
"stream_state": {
"updated_at": "2121-11-01T00:00:00Z"
},
"stream_descriptor": {
"name": "roles"
}
}
},
{
"type": "STREAM",
"stream": {
Expand All @@ -76,28 +21,6 @@
}
}
},
{
"type": "STREAM",
"stream": {
"stream_state": {
"updated_at": "2121-11-01T00:00:00Z"
},
"stream_descriptor": {
"name": "skills"
}
}
},
{
"type": "STREAM",
"stream": {
"stream_state": {
"updated_at": "2121-11-01T00:00:00Z"
},
"stream_descriptor": {
"name": "surveys"
}
}
},
{
"type": "STREAM",
"stream": {
Expand All @@ -108,16 +31,5 @@
"name": "tickets"
}
}
},
{
"type": "STREAM",
"stream": {
"stream_state": {
"updated_at": "2121-11-01T00:00:00Z"
},
"stream_descriptor": {
"name": "time_entries"
}
}
}
]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{"stream": "agents", "data": {"available": false, "occasional": true, "id": 67013469930, "ticket_scope": 1, "created_at": "2020-10-22T02:37:15Z", "updated_at": "2020-10-22T02:37:15Z", "last_active_at": null, "available_since": null, "type": "support_agent", "contact": {"active": false, "email": "[email protected]", "job_title": null, "language": "en", "last_login_at": null, "mobile": null, "name": "Customer Service", "phone": null, "time_zone": "Magadan", "created_at": "2020-10-22T02:37:15Z", "updated_at": "2020-10-22T02:37:15Z"}, "signature": null}, "emitted_at": 1668611230080}
{"stream": "agents", "data": {"available": false, "occasional": false, "id": 67013469919, "ticket_scope": 1, "created_at": "2020-10-22T02:37:13Z", "updated_at": "2022-08-29T06:56:57Z", "last_active_at": "2022-08-29T06:56:57Z", "available_since": null, "type": "support_agent", "contact": {"active": true, "email": "[email protected]", "job_title": null, "language": "en", "last_login_at": "2022-08-04T12:16:22Z", "mobile": null, "name": "Team Airbyte", "phone": null, "time_zone": "Magadan", "created_at": "2020-10-22T02:37:13Z", "updated_at": "2020-10-22T03:30:13Z"}, "signature": null}, "emitted_at": 1668611230082}
{"stream": "agents", "data": {"available": false, "occasional": false, "id": 67013469919, "ticket_scope": 1, "created_at": "2020-10-22T02:37:13Z", "updated_at": "2022-11-16T15:27:33Z", "last_active_at": "2022-11-16T15:27:33Z", "available_since": null, "type": "support_agent", "contact": {"active": true, "email": "[email protected]", "job_title": null, "language": "en", "last_login_at": "2022-08-29T06:56:57Z", "mobile": null, "name": "Team Airbyte", "phone": null, "time_zone": "Magadan", "created_at": "2020-10-22T02:37:13Z", "updated_at": "2020-10-22T03:30:13Z"}, "signature": null}, "emitted_at": 1668611230082}
{"stream": "agents", "data": {"available": false, "occasional": true, "id": 67021120644, "ticket_scope": 1, "created_at": "2021-02-11T22:20:50Z", "updated_at": "2021-12-01T00:09:07Z", "last_active_at": null, "available_since": null, "type": "support_agent", "contact": {"active": false, "email": "[email protected]", "job_title": null, "language": "en", "last_login_at": null, "mobile": null, "name": "Test Agent 1", "phone": null, "time_zone": "Magadan", "created_at": "2021-02-11T22:20:50Z", "updated_at": "2021-02-11T22:20:50Z"}, "signature": "<div dir=\"ltr\"><p><br></p>\n</div>"}, "emitted_at": 1668611230084}
{"stream": "agents", "data": {"available": false, "occasional": true, "id": 67021120892, "ticket_scope": 1, "created_at": "2021-02-11T22:21:44Z", "updated_at": "2021-12-01T00:09:07Z", "last_active_at": null, "available_since": null, "type": "support_agent", "contact": {"active": false, "email": "[email protected]", "job_title": null, "language": "en", "last_login_at": null, "mobile": null, "name": "Test Agent 10", "phone": null, "time_zone": "Magadan", "created_at": "2021-02-11T22:21:44Z", "updated_at": "2021-02-11T22:21:44Z"}, "signature": "<div dir=\"ltr\"><p><br></p>\n</div>"}, "emitted_at": 1668611230085}
{"stream": "agents", "data": {"available": false, "occasional": true, "id": 67021120894, "ticket_scope": 1, "created_at": "2021-02-11T22:21:45Z", "updated_at": "2021-12-01T00:09:07Z", "last_active_at": null, "available_since": null, "type": "support_agent", "contact": {"active": false, "email": "[email protected]", "job_title": null, "language": "en", "last_login_at": null, "mobile": null, "name": "Test Agent 11", "phone": null, "time_zone": "Magadan", "created_at": "2021-02-11T22:21:45Z", "updated_at": "2021-02-11T22:21:45Z"}, "signature": "<div dir=\"ltr\"><p><br></p>\n</div>"}, "emitted_at": 1668611230087}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"streams": [
{
"stream": {
"name": "contacts",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"]
},
"sync_mode": "incremental",
"cursor_field": ["updated_at"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "tickets",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"]
},
"sync_mode": "incremental",
"cursor_field": ["updated_at"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "satisfaction_ratings",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"]
},
"sync_mode": "incremental",
"destination_sync_mode": "append",
"cursor_field": ["updated_at"]
}
]
}

0 comments on commit 52d8488

Please sign in to comment.