From a23b2a3cc880f2c0e570a9cc79650fb872cee286 Mon Sep 17 00:00:00 2001 From: marcosmarxm Date: Tue, 19 Dec 2023 10:05:41 -0300 Subject: [PATCH] fix tests --- .../integration_tests/abnormal_state.json | 16 ++++++++++++---- .../connectors/source-sendinblue/setup.py | 2 +- .../source_sendinblue/manifest.yaml | 8 ++++---- .../source_sendinblue/schemas/campaigns.json | 8 +++++++- .../source_sendinblue/schemas/contacts.json | 5 ++++- .../source_sendinblue/schemas/templates.json | 8 +++++++- 6 files changed, 35 insertions(+), 12 deletions(-) diff --git a/airbyte-integrations/connectors/source-sendinblue/integration_tests/abnormal_state.json b/airbyte-integrations/connectors/source-sendinblue/integration_tests/abnormal_state.json index 52b0f2c2118f..663a73cd59d6 100644 --- a/airbyte-integrations/connectors/source-sendinblue/integration_tests/abnormal_state.json +++ b/airbyte-integrations/connectors/source-sendinblue/integration_tests/abnormal_state.json @@ -1,5 +1,13 @@ -{ - "todo-stream-name": { - "todo-field-name": "todo-abnormal-value" +[ + { + "type": "STREAM", + "stream": { + "stream_state": { + "modifiedAt": "2050-10-31T02:00:22.240+01:00" + }, + "stream_descriptor": { + "name": "contacts" + } + } } -} +] diff --git a/airbyte-integrations/connectors/source-sendinblue/setup.py b/airbyte-integrations/connectors/source-sendinblue/setup.py index 03d9985367a3..0b5269c46b84 100644 --- a/airbyte-integrations/connectors/source-sendinblue/setup.py +++ b/airbyte-integrations/connectors/source-sendinblue/setup.py @@ -6,7 +6,7 @@ from setuptools import find_packages, setup MAIN_REQUIREMENTS = [ - "airbyte-cdk~=0.1", + "airbyte-cdk", ] TEST_REQUIREMENTS = [ diff --git a/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/manifest.yaml b/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/manifest.yaml index 27a913cba80f..83667afcd717 100644 --- a/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/manifest.yaml +++ b/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/manifest.yaml @@ -27,12 +27,12 @@ definitions: type: DatetimeBasedCursor cursor_field: modifiedAt cursor_datetime_formats: - - '%Y-%m-%dT%H:%M:%S.%f%z' - datetime_format: '%Y-%m-%dT%H:%M:%S.%f%z' + - "%Y-%m-%dT%H:%M:%S.%f%z" + datetime_format: "%Y-%m-%dT%H:%M:%S.%f%z" start_datetime: type: MinMaxDatetime - datetime: '2000-01-01T00:00:00Z' - datetime_format: '%Y-%m-%dT%H:%M:%SZ' + datetime: "2000-01-01T00:00:00Z" + datetime_format: "%Y-%m-%dT%H:%M:%SZ" start_time_option: inject_into: request_parameter field_name: modifiedSince diff --git a/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/schemas/campaigns.json b/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/schemas/campaigns.json index 02ab48afdaf0..b72b892c4360 100644 --- a/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/schemas/campaigns.json +++ b/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/schemas/campaigns.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": true, "properties": { "id": { "type": ["null", "integer"] @@ -24,7 +25,9 @@ "type": ["null", "string"] }, "sender": { - "type": ["null", "object"] + "type": ["null", "object"], + "additionalProperties": true, + "properties": {} }, "replyTo": { "type": ["null", "string"] @@ -62,6 +65,9 @@ "modifiedAt": { "type": ["null", "string"] }, + "previewText": { + "type": ["null", "string"] + }, "shareLink": { "type": ["null", "string"] }, diff --git a/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/schemas/contacts.json b/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/schemas/contacts.json index e23ac3c423a2..d20dfde96bab 100644 --- a/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/schemas/contacts.json +++ b/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/schemas/contacts.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": true, "properties": { "id": { "type": ["null", "integer"] @@ -24,7 +25,9 @@ "type": ["null", "string"] }, "attributes": { - "type": ["null", "object"] + "type": ["null", "object"], + "additionalProperties": true, + "properties": {} } } } diff --git a/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/schemas/templates.json b/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/schemas/templates.json index 8c4fd441f208..e57f22730e2e 100644 --- a/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/schemas/templates.json +++ b/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/schemas/templates.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": true, "properties": { "id": { "type": ["null", "integer"] @@ -18,7 +19,12 @@ "type": ["null", "boolean"] }, "sender": { - "type": ["null", "object"] + "type": ["null", "object"], + "additionalProperties": true, + "properties": {} + }, + "subject": { + "type": ["null", "string"] }, "replyTo": { "type": ["null", "string"]