-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oliver Meyer
committed
Jul 5, 2021
1 parent
3a32f0b
commit e50c89d
Showing
4 changed files
with
192 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
airbyte-integrations/connectors/source-dixa/integration_tests/abnormal_state.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"todo-stream-name": { | ||
"todo-field-name": "todo-abnormal-value" | ||
"conversation_export": { | ||
"updated_at": 9999999999999 | ||
} | ||
} |
211 changes: 178 additions & 33 deletions
211
airbyte-integrations/connectors/source-dixa/integration_tests/configured_catalog.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,201 @@ | ||
// TODO: Construct a configured catalog that can be used for testing. Each stream's `json_schema` field should match the corresponding json schema file. | ||
{ | ||
"streams": [ | ||
{ | ||
"sync_mode": "incremental", | ||
"destination_sync_mode": "append", | ||
"cursor_field": ["updated_at"], | ||
"stream": { | ||
"name": "customers", | ||
"name": "conversation_export", | ||
"supported_sync_modes": ["full_refresh", "incremental"], | ||
"source_defined_cursor": true, | ||
"default_cursor_field": ["updated_at"], | ||
"source_defined_primary_key": [["id"]], | ||
"json_schema": { | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"required": [ | ||
"id", "created_at", "initial_channel", "requester_id" | ||
], | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"id": { | ||
"type": "integer" | ||
}, | ||
"created_at": { | ||
"type": "integer" | ||
}, | ||
"initial_channel": { | ||
"type": "string" | ||
}, | ||
"requester_id": { | ||
"type": "string" | ||
}, | ||
"requester_name": { | ||
"type": ["null", "string"] | ||
}, | ||
"name": { | ||
"requester_email": { | ||
"type": ["null", "string"] | ||
}, | ||
"signup_date": { | ||
"type": ["null", "string"], | ||
"format": "date-time" | ||
} | ||
} | ||
}, | ||
"supported_sync_modes": ["full_refresh"] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
}, | ||
{ | ||
"stream": { | ||
"name": "employees", | ||
"json_schema": { | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"requester_phone_number": { | ||
"type": ["null", "string"] | ||
}, | ||
"name": { | ||
"queued_at": { | ||
"type": ["null", "integer"] | ||
}, | ||
"queue_id": { | ||
"type": ["null", "string"] | ||
}, | ||
"years_of_service": { | ||
"queue_name": { | ||
"type": ["null", "string"] | ||
}, | ||
"closed_at": { | ||
"type": ["null", "integer"] | ||
}, | ||
"start_date": { | ||
"type": ["null", "string"], | ||
"format": "date-time" | ||
"rating_score": { | ||
"type": ["null", "integer"] | ||
}, | ||
"rating_message": { | ||
"type": ["null", "string"] | ||
}, | ||
"ratings": { | ||
"type": "object", | ||
"properties": { | ||
"rating_score": { | ||
"type": ["null", "integer"] | ||
}, | ||
"rating_message": { | ||
"type": ["null", "string"] | ||
}, | ||
"rating_type": { | ||
"type": ["null", "string"] | ||
}, | ||
"rating_created_timestamp": { | ||
"type": ["null", "integer"] | ||
}, | ||
"rating_offered_timestamp": { | ||
"type": ["null", "integer"] | ||
}, | ||
"rating_status": { | ||
"type": ["null", "string"] | ||
}, | ||
"rating_language": { | ||
"type": ["null", "string"] | ||
}, | ||
"rating_modified_timestamp": { | ||
"type": ["null", "integer"] | ||
}, | ||
"rating_rated_timestamp": { | ||
"type": ["null", "integer"] | ||
}, | ||
"rating_scheduled_timestamp": { | ||
"type": ["null", "integer"] | ||
}, | ||
"rating_scheduled_for_timestamp": { | ||
"type": ["null", "integer"] | ||
}, | ||
"rating_unscheduled_timestamp": { | ||
"type": ["null", "integer"] | ||
}, | ||
"rating_cancelled_timestamp": { | ||
"type": ["null", "integer"] | ||
} | ||
} | ||
}, | ||
"direction": { | ||
"type": ["null", "string"] | ||
}, | ||
"assigned_at": { | ||
"type": ["null", "integer"] | ||
}, | ||
"assignee_id": { | ||
"type": ["null", "string"] | ||
}, | ||
"assignee_name": { | ||
"type": ["null", "string"] | ||
}, | ||
"assignee_email": { | ||
"type": ["null", "string"] | ||
}, | ||
"assignee_phone_number": { | ||
"type": ["null", "string"] | ||
}, | ||
"to_provisioned_phone_number_id": { | ||
"type": ["null", "string"] | ||
}, | ||
"to_provisioned_phone_number_name": { | ||
"type": ["null", "string"] | ||
}, | ||
"total_duration": { | ||
"type": ["null", "integer"] | ||
}, | ||
"handling_duration": { | ||
"type": ["null", "integer"] | ||
}, | ||
"dixa_email_integration_id": { | ||
"type": ["null", "string"] | ||
}, | ||
"dixa_email_integration_sender_name": { | ||
"type": ["null", "string"] | ||
}, | ||
"forwarding_email": { | ||
"type": ["null", "string"] | ||
}, | ||
"facebook_page_id": { | ||
"type": ["null", "string"] | ||
}, | ||
"facebook_page_name": { | ||
"type": ["null", "string"] | ||
}, | ||
"widget_id": { | ||
"type": ["null", "string"] | ||
}, | ||
"widget_name": { | ||
"type": ["null", "string"] | ||
}, | ||
"tags": { | ||
"type": ["null", "array"], | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"conversation_wrapup_notes": { | ||
"type": ["null", "array"], | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"transferee_name": { | ||
"type": ["null", "string"] | ||
}, | ||
"transfer_time": { | ||
"type": ["null", "integer"] | ||
}, | ||
"originating_country": { | ||
"type": ["null", "string"] | ||
}, | ||
"status": { | ||
"type": ["null", "string"] | ||
}, | ||
"updated_at": { | ||
"type": ["null", "integer"] | ||
}, | ||
"last_message_created_at": { | ||
"type": ["null", "integer"] | ||
}, | ||
"from_provisioned_phone_number_id": { | ||
"type": ["null", "string"] | ||
}, | ||
"from_provisioned_phone_number_name": { | ||
"type": ["null", "string"] | ||
}, | ||
"subject": { | ||
"type": ["null", "string"] | ||
}, | ||
"anonymized_at": { | ||
"type": ["null", "integer"] | ||
} | ||
} | ||
}, | ||
"supported_sync_modes": ["full_refresh", "incremental"] | ||
}, | ||
"sync_mode": "incremental", | ||
"destination_sync_mode": "append" | ||
} | ||
} | ||
} | ||
] | ||
} |
3 changes: 2 additions & 1 deletion
3
airbyte-integrations/connectors/source-dixa/integration_tests/invalid_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"todo-wrong-field": "this should be an incomplete config file, used in standard tests" | ||
"start_timestamp": 1625263200000, | ||
"batch_size": 1 | ||
} |