Skip to content

Commit

Permalink
Configure acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Meyer committed Jul 5, 2021
1 parent 3a32f0b commit e50c89d
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tests:
- config_path: "secrets/config.json"
status: "succeed"
- config_path: "integration_tests/invalid_config.json"
status: "exception"
status: "failed"
discovery:
- config_path: "secrets/config.json"
basic_read:
Expand All @@ -21,10 +21,14 @@ tests:
# extra_fields: no
# exact_order: no
# extra_records: yes
incremental: # TODO if your connector does not implement incremental sync, remove this block
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
future_state_path: "integration_tests/abnormal_state.json"
full_refresh:
incremental:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
# future_state_path: "integration_tests/abnormal_state.json"
# We skip the full_refresh test because of unusual behaviour in the Dixa API.
# We observed cases where a record was updated without the updated_at value changing.
# See the thread below for further information:
# https://airbytehq.slack.com/archives/C01VDDEGL7M/p1625319909273300
# full_refresh:
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog.json"
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
}
}
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"
}
}
}
]
}
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
}

0 comments on commit e50c89d

Please sign in to comment.