From d7d6473051ac824a5c773ad6b8620f783b04100e Mon Sep 17 00:00:00 2001 From: Jon Wihl Date: Tue, 19 Mar 2024 23:04:20 -0400 Subject: [PATCH] updated snapshot testing --- source-facebook-marketing/test.flow.yaml | 34 +++++++++++++++++-- .../snapshots__discover__capture.stdout.json | 24 +++++-------- 2 files changed, 40 insertions(+), 18 deletions(-) diff --git a/source-facebook-marketing/test.flow.yaml b/source-facebook-marketing/test.flow.yaml index 6ca9daf1db..c599739449 100644 --- a/source-facebook-marketing/test.flow.yaml +++ b/source-facebook-marketing/test.flow.yaml @@ -4,8 +4,6 @@ import: captures: acmeCo/source-facebook-marketing: endpoint: - # connector: - # image: ghcr.io/estuary/source-facebook-marketing:testing local: command: - python @@ -20,10 +18,14 @@ captures: - resource: stream: ad_sets syncMode: incremental + cursorField: + - updated_time target: acmeCo/ad_sets - resource: stream: ads syncMode: incremental + cursorField: + - updated_time target: acmeCo/ads - resource: stream: ad_creatives @@ -32,34 +34,50 @@ captures: - resource: stream: ads_insights syncMode: incremental + cursorField: + - date_start target: acmeCo/ads_insights - resource: stream: ads_insights_age_and_gender syncMode: incremental + cursorField: + - date_start target: acmeCo/ads_insights_age_and_gender - resource: stream: ads_insights_country syncMode: incremental + cursorField: + - date_start target: acmeCo/ads_insights_country - resource: stream: ads_insights_region syncMode: incremental + cursorField: + - date_start target: acmeCo/ads_insights_region - resource: stream: ads_insights_dma syncMode: incremental + cursorField: + - date_start target: acmeCo/ads_insights_dma - resource: stream: ads_insights_platform_and_device syncMode: incremental + cursorField: + - date_start target: acmeCo/ads_insights_platform_and_device - resource: stream: ads_insights_action_type syncMode: incremental + cursorField: + - date_start target: acmeCo/ads_insights_action_type - resource: stream: campaigns syncMode: incremental + cursorField: + - updated_time target: acmeCo/campaigns - resource: stream: custom_conversions @@ -68,12 +86,24 @@ captures: - resource: stream: images syncMode: incremental + cursorField: + - updated_time target: acmeCo/images - resource: stream: videos syncMode: incremental + cursorField: + - updated_time target: acmeCo/videos + - resource: + stream: activities + syncMode: incremental + cursorField: + - event_time + target: acmeCo/activities - resource: stream: customads_insights_publisher_platform syncMode: incremental + cursorField: + - date_start target: acmeCo/customads_insights_publisher_platform diff --git a/source-facebook-marketing/tests/snapshots/snapshots__discover__capture.stdout.json b/source-facebook-marketing/tests/snapshots/snapshots__discover__capture.stdout.json index cc3b7fb179..44486b7a68 100644 --- a/source-facebook-marketing/tests/snapshots/snapshots__discover__capture.stdout.json +++ b/source-facebook-marketing/tests/snapshots/snapshots__discover__capture.stdout.json @@ -14016,8 +14016,7 @@ "format": "date", "type": [ "string" - ], - "default": "" + ] }, "date_stop": { "format": "date", @@ -17752,8 +17751,7 @@ "format": "date", "type": [ "string" - ], - "default": "" + ] }, "date_stop": { "format": "date", @@ -21504,8 +21502,7 @@ "format": "date", "type": [ "string" - ], - "default": "" + ] }, "date_stop": { "format": "date", @@ -25248,8 +25245,7 @@ "format": "date", "type": [ "string" - ], - "default": "" + ] }, "date_stop": { "format": "date", @@ -28992,8 +28988,7 @@ "format": "date", "type": [ "string" - ], - "default": "" + ] }, "date_stop": { "format": "date", @@ -32736,8 +32731,7 @@ "format": "date", "type": [ "string" - ], - "default": "" + ] }, "date_stop": { "format": "date", @@ -36496,8 +36490,7 @@ "format": "date", "type": [ "string" - ], - "default": "" + ] }, "date_stop": { "format": "date", @@ -39267,8 +39260,7 @@ "format": "date", "type": [ "string" - ], - "default": "" + ] }, "date_stop": { "format": "date",