diff --git a/airbyte-integrations/connectors/source-surveymonkey/Dockerfile b/airbyte-integrations/connectors/source-surveymonkey/Dockerfile index bafae7870f18c..cdc81916013d2 100644 --- a/airbyte-integrations/connectors/source-surveymonkey/Dockerfile +++ b/airbyte-integrations/connectors/source-surveymonkey/Dockerfile @@ -12,5 +12,5 @@ RUN pip install . ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=0.1.0 +LABEL io.airbyte.version=0.1.1 LABEL io.airbyte.name=airbyte/source-surveymonkey diff --git a/airbyte-integrations/connectors/source-surveymonkey/acceptance-test-config.yml b/airbyte-integrations/connectors/source-surveymonkey/acceptance-test-config.yml index 20a0cb69b8118..8b261bbe5d846 100644 --- a/airbyte-integrations/connectors/source-surveymonkey/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-surveymonkey/acceptance-test-config.yml @@ -6,7 +6,7 @@ tests: - config_path: "secrets/config.json" status: "succeed" - config_path: "integration_tests/invalid_config.json" - status: "failed" + status: "exception" discovery: - config_path: "secrets/config.json" basic_read: @@ -18,7 +18,7 @@ tests: #incremental: # - config_path: "secrets/config.json" # configured_catalog_path: "integration_tests/configured_catalog.json" - # future_state_path: "integration_tests/abnormal_state.json" + # future_state_path: "integration_tests/abnormal_state.json" full_refresh: - config_path: "secrets/config.json" configured_catalog_path: "integration_tests/configured_catalog.json" diff --git a/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/schemas/survey_questions.json b/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/schemas/survey_questions.json index a2f185cb6ad82..450ad174b1e2e 100644 --- a/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/schemas/survey_questions.json +++ b/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/schemas/survey_questions.json @@ -21,16 +21,16 @@ "type": "string" }, "layout": { - "type": "string" + "type": ["object", "null"] }, "sorting": { - "type": "string" + "type": ["string", "null"] }, "required": { - "type": "string" + "type": ["string", "null"] }, "validation": { - "type": "string" + "type": ["string", "null"] }, "forced_ranking": { "type": "boolean" diff --git a/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/spec.json b/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/spec.json index 9e5e21a96c7f8..08e3f37d80300 100644 --- a/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/spec.json +++ b/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/spec.json @@ -11,8 +11,8 @@ "title": "Start Date", "type": "string", "description": "The date from which you'd like to replicate the data", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$", - "examples": "2021-01-01T00:00:00Z" + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z?$", + "examples": ["2021-01-01T00:00:00Z"] }, "access_token": { "type": "string", diff --git a/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/streams.py b/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/streams.py index 357fcce5c8b2b..ceba59df6099c 100644 --- a/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/streams.py +++ b/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/streams.py @@ -99,7 +99,7 @@ def read_records( This API is very very rate limited, we need to reuse everything possible. We use the "new_episodes" record mode to save and reuse all requests in slices, details, etc.. """ - with vcr.use_cassette(cache_file.name, record_mode="new_episodes", serializer="json"): + with vcr.use_cassette(cache_file.name, record_mode="new_episodes", serializer="json", decode_compressed_response=True): yield from super().read_records( sync_mode=sync_mode, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state ) diff --git a/docs/integrations/sources/surveymonkey.md b/docs/integrations/sources/surveymonkey.md index 37f4d1e0a6457..fdacfe9c57a69 100644 --- a/docs/integrations/sources/surveymonkey.md +++ b/docs/integrations/sources/surveymonkey.md @@ -57,4 +57,5 @@ Then go to Settings and copy your access token | Version | Date | Pull Request | Subject | | :------ | :-------- | :----- | :------ | -| 0.1.0 | 2021-07-06 | [4097](https://github.com/airbytehq/airbyte/pull/4097) | Initial Release | \ No newline at end of file +| 0.1.1 | 2021-09-10 | [5983](https://github.com/airbytehq/airbyte/pull/5983) | Fix caching for gzip compressed http response | +| 0.1.0 | 2021-07-06 | [4097](https://github.com/airbytehq/airbyte/pull/4097) | Initial Release |