diff --git a/airbyte-integrations/connectors/source-granola/acceptance-test-config.yml b/airbyte-integrations/connectors/source-granola/acceptance-test-config.yml new file mode 100644 index 000000000000..5c6c5efa8d9a --- /dev/null +++ b/airbyte-integrations/connectors/source-granola/acceptance-test-config.yml @@ -0,0 +1,31 @@ +# See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) +# for more information about how to configure these tests +connector_image: airbyte/source-granola:dev +acceptance_tests: + spec: + tests: + - spec_path: "manifest.yaml" + connection: + tests: + - config_path: "secrets/config.json" + status: "succeed" + - config_path: "integration_tests/invalid_config.json" + status: "failed" + discovery: + tests: + - config_path: "secrets/config.json" + basic_read: + tests: + - config_path: "secrets/config.json" + configured_catalog_path: "integration_tests/configured_catalog.json" + empty_streams: [] + incremental: + tests: + - config_path: "secrets/config.json" + configured_catalog_path: "integration_tests/configured_catalog.json" + future_state: + future_state_path: "integration_tests/abnormal_state.json" + full_refresh: + tests: + - config_path: "secrets/config.json" + configured_catalog_path: "integration_tests/configured_catalog.json" diff --git a/airbyte-integrations/connectors/source-granola/integration_tests/abnormal_state.json b/airbyte-integrations/connectors/source-granola/integration_tests/abnormal_state.json new file mode 100644 index 000000000000..7a45cfebf3f2 --- /dev/null +++ b/airbyte-integrations/connectors/source-granola/integration_tests/abnormal_state.json @@ -0,0 +1,13 @@ +[ + { + "type": "STREAM", + "stream": { + "stream_state": { + "created_at": "2122-01-01T00:00:00Z" + }, + "stream_descriptor": { + "name": "notes" + } + } + } +] diff --git a/airbyte-integrations/connectors/source-granola/integration_tests/configured_catalog.json b/airbyte-integrations/connectors/source-granola/integration_tests/configured_catalog.json index 0ae6e8faaec7..1fb9c85b052c 100644 --- a/airbyte-integrations/connectors/source-granola/integration_tests/configured_catalog.json +++ b/airbyte-integrations/connectors/source-granola/integration_tests/configured_catalog.json @@ -6,12 +6,22 @@ "json_schema": {}, "supported_sync_modes": ["full_refresh", "incremental"], "source_defined_cursor": true, - "default_cursor_field": ["updated_at"], + "default_cursor_field": ["created_at"], "source_defined_primary_key": [["id"]] }, "sync_mode": "incremental", - "cursor_field": ["updated_at"], + "cursor_field": ["created_at"], "destination_sync_mode": "append" + }, + { + "stream": { + "name": "detailed_notes", + "json_schema": {}, + "supported_sync_modes": ["full_refresh"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" } ] } diff --git a/airbyte-integrations/connectors/source-granola/integration_tests/invalid_config.json b/airbyte-integrations/connectors/source-granola/integration_tests/invalid_config.json new file mode 100644 index 000000000000..297bdd6dbb8f --- /dev/null +++ b/airbyte-integrations/connectors/source-granola/integration_tests/invalid_config.json @@ -0,0 +1,4 @@ +{ + "api_key": "invalid-api-key", + "start_date": "2025-01-01" +} diff --git a/airbyte-integrations/connectors/source-granola/metadata.yaml b/airbyte-integrations/connectors/source-granola/metadata.yaml index 418f6b315731..311997adc4eb 100644 --- a/airbyte-integrations/connectors/source-granola/metadata.yaml +++ b/airbyte-integrations/connectors/source-granola/metadata.yaml @@ -7,7 +7,7 @@ data: connectorSubtype: api connectorType: source definitionId: 9023923c-002f-4131-9554-3ebdf56540a4 - dockerImageTag: 0.2.12 + dockerImageTag: 0.2.13 dockerRepository: airbyte/source-granola documentationUrl: https://docs.airbyte.com/integrations/sources/granola githubIssueLabel: source-granola diff --git a/docs/integrations/sources/granola.md b/docs/integrations/sources/granola.md index ec1450593b96..c4fd87c8fc3c 100644 --- a/docs/integrations/sources/granola.md +++ b/docs/integrations/sources/granola.md @@ -125,6 +125,7 @@ For programmatic configuration, use these parameter names: | Version | Date | Pull Request | Subject | | :------ | :--- | :----------- | :------ | +| 0.2.13 | 2026-08-12 | [84276](https://github.com/airbytehq/airbyte/pull/84276) | Add acceptance test coverage and correct the configured catalog | | 0.2.12 | 2026-08-12 | [84278](https://github.com/airbytehq/airbyte/pull/84278) | Retry rate-limited and server-error responses with backoff honoring Retry-After | | 0.2.11 | 2026-08-11 | [83964](https://github.com/airbytehq/airbyte/pull/83964) | Update dependencies | | 0.2.10 | 2026-08-04 | [83481](https://github.com/airbytehq/airbyte/pull/83481) | Update dependencies |