Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(data-warehouse): add 3 missing tables to the Easypost source (#117651)

Tom Owers0dfcf980e0c3
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md
index 0285344c9d65..3b684b131e1d 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md
@@ -4116,9 +4116,9 @@ Diffed against: <https://docs.easypost.com/docs/carrier-accounts>
- [x] `GET /v2/claims` — insurance claims with amount, status and resolution - transactional and completely absent (only insurances are synced) (high)
- [x] `GET /v2/metadata/carriers` — carrier service levels, predefined packages and supported options - resolves the service/carrier codes on shipments and rates (medium)
- [x] `GET /v2/end_shippers` — end shipper records referenced by international shipments (medium)
-- [ ] `GET /v2/users/children` — child user roster for platforms that break spend and volume down by sub-account (medium)
-- [ ] `GET /v2/reports/{type}` — generated shipment/payment_log/tracker/refund report objects, useful for reconciling billing (low)
-- [ ] `GET /v2/carrier_types` — lookup of available carrier types and their credential fields (low)
+- [x] `GET /v2/users/children` — child user roster for platforms that break spend and volume down by sub-account (medium)
+- [x] `GET /v2/reports/{type}` — generated shipment/payment_log/tracker/refund report objects, useful for reconciling billing (low)
+- [x] `GET /v2/carrier_types` — lookup of available carrier types and their credential fields (low)
Note: Diffed against the 45 /docs/\* pages in docs.easypost.com/sitemap.xml and read the endpoint tables on each candidate page. Orders, parcels, customs_infos and customs_items have create/retrieve only - no index endpoint - so they cannot back a warehouse table and were excluded rather than reported as gaps.
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/canonical_descriptions.py
index 0d205b10ceb9..73dde5097899 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/canonical_descriptions.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/canonical_descriptions.py
@@ -195,4 +195,42 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"updated_at": "When the pickup was last updated.",
},
},
+ "carrier_types": {
+ "description": "A carrier account type available to the account, with the credential fields needed to create a carrier account of that type.",
+ "docs_url": "https://docs.easypost.com/docs/carrier-types",
+ "columns": {
+ "type": 'The carrier account type (e.g. "UpsAccount").',
+ "readable": "The human-readable name of the carrier type.",
+ "logo": "Logo of the carrier type.",
+ "fields": "The attributes needed to create a carrier account of this type: auto_link, custom_workflow, credentials and test_credentials, each with a label and visibility.",
+ },
+ },
+ "child_users": {
+ "description": "A child user: a sub-account whose billing flows through the parent user, used by platforms to separate customers.",
+ "docs_url": "https://docs.easypost.com/docs/users/child-users",
+ "columns": {
+ "id": 'Unique identifier for the user, begins with "user_".',
+ "parent_id": "The id of the parent user.",
+ "name": "The name of the child user.",
+ "phone_number": "The phone number of the user.",
+ "verified": "Whether the user is verified.",
+ "created_at": "When the child user was created.",
+ },
+ },
+ "reports": {
+ "description": "A generated CSV report that logs the objects of one type created in a date range. All report types are synced into this table.",
+ "docs_url": "https://docs.easypost.com/docs/reports",
+ "columns": {
+ "id": 'Unique identifier for the report. The prefix shows the type (e.g. "shprep_" for a shipment report, "plrep_" for a payment log report).',
+ "object": 'The report type (e.g. "ShipmentReport", "PaymentLogReport", "RefundReport").',
+ "mode": 'Whether the report was created in "test" or "production" mode.',
+ "status": "Status of the report: new, available, failed, or empty.",
+ "start_date": "First date (YYYY-MM-DD) the report covers.",
+ "end_date": "Last date (YYYY-MM-DD) the report covers.",
+ "include_children": "Whether the report includes objects created by child users.",
+ "url_expires_at": "When the download link of the report expires.",
+ "created_at": "When the report was created.",
+ "updated_at": "When the report was last updated.",
+ },
+ },
}
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/easypost.py b/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/easypost.py
index fb89be0b2b59..25532d5939d8 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/easypost.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/easypost.py
@@ -1,4 +1,3 @@
-import dataclasses
from collections.abc import Iterator
from datetime import UTC, datetime
from typing import Any
@@ -7,6 +6,8 @@ import requests
from structlog.types import FilteringBoundLogger
from tenacity import retry, retry_if_exception_type, stop_after_attempt, wait_exponential_jitter
+from posthog.dataclasses import frozen
+
from products.warehouse_sources.backend.temporal.data_imports.sources.common.http import make_tracked_session
from products.warehouse_sources.backend.temporal.data_imports.sources.common.resumable import ResumableSourceManager
from products.warehouse_sources.backend.temporal.data_imports.sources.common.typings import SourceResponse
@@ -22,11 +23,15 @@ class EasypostRetryableError(Exception):
pass
+@frozen
class EasypostResumeConfig:
# `before_id` of the page we last yielded. EasyPost paginates newest-first, so advancing the
# cursor means asking for records created *before* this id. `None` resumes from the first page.
before_id: str | None = None
+ # Same, for endpoints that page oldest-first via `after_id`.
+ after_id: str | None = None
+ # Path value (e.g. report type) the cursor belongs to, for endpoints walked once per value.
+ path_value: str | None = None
def _ensure_utc(value: datetime) -> datetime:
@@ -86,10 +91,19 @@ def validate_credentials(api_key: str) -> bool:
return False
+def _strip_fields(value: Any, redacted_fields: tuple[str, ...]) -> Any:
+ # Recurse so a nested object (a child user's own `children`) cannot carry the field through.
+ if isinstance(value, dict):
+ return {k: _strip_fields(v, redacted_fields) for k, v in value.items() if k not in redacted_fields}
+ if isinstance(value, list):
+ return [_strip_fields(v, redacted_fields) for v in value]
+ return value
+
+
def _redact(items: list[dict[str, Any]], redacted_fields: tuple[str, ...]) -> list[dict[str, Any]]:
if not redacted_fields:
return items
- return [{k: v for k, v in item.items() if k not in redacted_fields} for item in items]
+ return _strip_fields(items, redacted_fields)
def get_rows(
@@ -104,15 +118,16 @@ def get_rows(
config = EASYPOST_ENDPOINTS[endpoint]
incremental_field_name = incremental_field or "created_at"
- session = make_tracked_session(redact_values=(api_key,))
+ # The fields stripped from rows are secrets; keep the raw responses out of HTTP sample capture too.
+ session = make_tracked_session(redact_values=(api_key,), capture=not config.redacted_fields)
session.auth = (api_key, "")
- url = f"{EASYPOST_BASE_URL}{config.path}"
+ collection_key = config.response_key or config.name
if not config.paginated:
# Lookup endpoints answer with the whole collection in one response — no cursor and no
# `has_more`, so there is nothing to resume from or to watermark against.
- data = _fetch_page(session, url, {}, logger)
- collection = data if config.returns_bare_list else data.get(config.name, [])
+ data = _fetch_page(session, f"{EASYPOST_BASE_URL}{config.path}", {}, logger)
+ collection = data if config.returns_bare_list else data.get(collection_key, [])
if collection:
yield _redact(collection, config.redacted_fields)
return
@@ -128,45 +143,61 @@ def get_rows(
if last_value_dt is not None and config.supports_start_datetime:
start_datetime = _format_datetime(last_value_dt)
+ path_values: tuple[str | None, ...] = config.path_values or (None,)
+ cursor_param = "after_id" if config.ascending else "before_id"
resume = resumable_source_manager.load_state() if resumable_source_manager.can_resume() else None
- before_id = resume.before_id if resume else None
- if before_id:
- logger.debug(f"EasyPost: resuming {endpoint} from before_id={before_id}")
-
- while True:
- params: dict[str, Any] = {"page_size": PAGE_SIZE}
- if before_id:
- params["before_id"] = before_id
- if start_datetime:
- params["start_datetime"] = start_datetime
-
- data = _fetch_page(session, url, params, logger)
- items = data.get(config.name, [])
- if not items:
- break
-
- has_more = bool(data.get("has_more", False))
-
- reached_watermark = False
- rows: list[dict[str, Any]] = []
- for item in items:
- if last_value_dt is not None:
- created = _parse_datetime(item.get(incremental_field_name))
- if created is not None and created <= last_value_dt:
- reached_watermark = True
- break
- rows.append(item)
-
- if rows:
- yield _redact(rows, config.redacted_fields)
- # Save the cursor for the page we just yielded (not the next one) so a crash re-fetches
- # and re-yields this page — merge dedupes on the `id` primary key — rather than skipping it.
- resumable_source_manager.save_state(EasypostResumeConfig(before_id=before_id))
-
- if reached_watermark or not has_more:
- break
-
- before_id = items[-1]["id"]
+ start_index = 0
+ cursor_id: str | None = None
+ if resume and resume.path_value in path_values:
+ start_index = path_values.index(resume.path_value)
+ cursor_id = resume.after_id if config.ascending else resume.before_id
+ if cursor_id:
+ logger.debug(f"EasyPost: resuming {endpoint} from {cursor_param}={cursor_id}")
+
+ for path_value in path_values[start_index:]:
+ url = f"{EASYPOST_BASE_URL}{config.path.format(path_value) if path_value else config.path}"
+
+ while True:
+ params: dict[str, Any] = {"page_size": PAGE_SIZE}
+ if cursor_id:
+ params[cursor_param] = cursor_id
+ if start_datetime:
+ params["start_datetime"] = start_datetime
+
+ data = _fetch_page(session, url, params, logger)
+ items = data.get(collection_key, [])
+ if not items:
+ break
+
+ has_more = bool(data.get("has_more", False))
+
+ reached_watermark = False
+ rows: list[dict[str, Any]] = []
+ for item in items:
+ if last_value_dt is not None:
+ created = _parse_datetime(item.get(incremental_field_name))
+ if created is not None and created <= last_value_dt:
+ reached_watermark = True
+ break
+ rows.append(item)
+
+ if rows:
+ yield _redact(rows, config.redacted_fields)
+ # Save the cursor for the page we just yielded (not the next one) so a crash re-fetches
+ # and re-yields this page — merge dedupes on the `id` primary key — rather than skipping it.
+ if config.ascending:
+ resumable_source_manager.save_state(EasypostResumeConfig(after_id=cursor_id, path_value=path_value))
+ else:
+ resumable_source_manager.save_state(
+ EasypostResumeConfig(before_id=cursor_id, path_value=path_value)
+ )
+
+ if reached_watermark or not has_more:
+ break
+
+ cursor_id = items[-1]["id"]
+
+ cursor_id = None
def easypost_source(
@@ -192,8 +223,9 @@ def easypost_source(
incremental_field=incremental_field,
),
primary_keys=config.primary_keys,
- # EasyPost list endpoints return records newest-first (descending creation time).
- sort_mode="desc",
+ # EasyPost list endpoints return records newest-first (descending creation time), except
+ # the ones that page forward with `after_id`.
+ sort_mode="asc" if config.ascending else "desc",
partition_count=1,
partition_size=1,
partition_mode="datetime" if config.partition_key else None,
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/settings.py
index 292eea540d05..eb5de0302727 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/settings.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/settings.py
@@ -31,6 +31,12 @@ class EasypostEndpointConfig:
returns_bare_list: bool = False
# Top-level keys dropped from every row before it reaches the warehouse.
redacted_fields: tuple[str, ...] = ()
+ # Collection key of the list response when it differs from the endpoint name.
+ response_key: Optional[str] = None
+ # /users/children pages oldest-first with `after_id` and documents no `before_id`.
+ ascending: bool = False
+ # Values substituted for `{}` in `path`. Each value is walked in turn into the same table.
+ path_values: tuple[str, ...] = ()
def _created_at_fields() -> list[IncrementalField]:
@@ -46,8 +52,8 @@ def _created_at_fields() -> list[IncrementalField]:
# Cursor-paginated list endpoints (before_id/after_id + has_more) that all share the EasyPost
# object shape: a globally-unique prefixed `id`, plus `created_at` / `updated_at` ISO-8601
-# timestamps. `start_datetime` filters server-side on `created_at`. `/carrier_accounts` and
-# `/metadata/carriers` are lookups answered in a single unpaginated response. `/parcels` has no
+# timestamps. `start_datetime` filters server-side on `created_at`. `/carrier_accounts`,
+# `/carrier_types` and `/metadata/carriers` are lookups answered in a single unpaginated response. `/parcels` has no
# list endpoint and `/webhooks` is unpaginated, so neither is exposed as a sync table here.
EASYPOST_ENDPOINTS: dict[str, EasypostEndpointConfig] = {
"addresses": EasypostEndpointConfig(
@@ -88,6 +94,31 @@ EASYPOST_ENDPOINTS: dict[str, EasypostEndpointConfig] = {
paginated=False,
supports_start_datetime=False,
),
+ "carrier_types": EasypostEndpointConfig(
+ name="carrier_types",
+ path="/carrier_types",
+ # The credential fields each carrier account type needs. Labels and visibility only, no
+ # values. Like /carrier_accounts it is production-key only and unpaginated.
+ incremental_fields=[],
+ partition_key=None,
+ primary_keys=["type"],
+ should_sync_default=False,
+ paginated=False,
+ supports_start_datetime=False,
+ returns_bare_list=True,
+ ),
+ "child_users": EasypostEndpointConfig(
+ name="child_users",
+ path="/users/children",
+ # No time filter, so full refresh only. Production-key only.
+ incremental_fields=[],
+ should_sync_default=False,
+ supports_start_datetime=False,
+ response_key="children",
+ ascending=True,
+ # A User object can carry its API keys.
+ redacted_fields=("api_keys",),
+ ),
"claims": EasypostEndpointConfig(
name="claims",
path="/claims",
@@ -124,6 +155,18 @@ EASYPOST_ENDPOINTS: dict[str, EasypostEndpointConfig] = {
path="/refunds",
incremental_fields=_created_at_fields(),
),
+ "reports": EasypostEndpointConfig(
+ name="reports",
+ path="/reports/{}",
+ # Reports change status after creation (new -> available) and the list takes no time
+ # filter, so full refresh only. Ids carry a per-type prefix, so `id` stays unique.
+ incremental_fields=[],
+ should_sync_default=False,
+ supports_start_datetime=False,
+ path_values=("cash_flow", "insurance", "payment_log", "refund", "shipment", "shipment_invoice", "tracker"),
+ # Signed download link to the report CSV.
+ redacted_fields=("url",),
+ ),
"scan_forms": EasypostEndpointConfig(
name="scan_forms",
path="/scan_forms",
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/tests/test_easypost.py b/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/tests/test_easypost.py
index 6a03229d4580..4ee20fbc2764 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/tests/test_easypost.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/tests/test_easypost.py
@@ -14,7 +14,10 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.easypost.e
_parse_datetime,
validate_credentials,
)
-from products.warehouse_sources.backend.temporal.data_imports.sources.easypost.settings import ENDPOINTS
+from products.warehouse_sources.backend.temporal.data_imports.sources.easypost.settings import (
+ EASYPOST_ENDPOINTS,
+ ENDPOINTS,
+)
from products.warehouse_sources.backend.temporal.data_imports.sources.easypost.source import EasypostSource
from products.warehouse_sources.backend.temporal.data_imports.sources.generated_configs.easypost import (
EasypostSourceConfig,
@@ -96,14 +99,112 @@ class TestGetRows:
assert result.params("before_id") == [None]
+class TestChildUsers:
+ def test_pages_forward_via_after_id(self) -> None:
+ # /users/children documents only `after_id`, and answers under "children", not the table name.
+ result = _driver().run(
+ "child_users",
+ [
+ ScriptedResponse(json={"children": [{"id": "user_1"}, {"id": "user_2"}], "has_more": True}),
+ ScriptedResponse(json={"children": [{"id": "user_3"}], "has_more": False}),
+ ],
+ )
+ assert result.raised is None
+ assert [row["id"] for row in result.rows] == ["user_1", "user_2", "user_3"]
+ assert result.paths == ["/v2/users/children"] * 2
+ assert result.params("after_id") == [None, "user_2"]
+ assert result.params("before_id") == [None, None]
+ assert result.saved_states == [EasypostResumeConfig(after_id=None), EasypostResumeConfig(after_id="user_2")]
+ assert result.response is not None
+ assert result.response.sort_mode == "asc"
+
+ def test_resumes_from_saved_after_id(self) -> None:
+ result = _driver().run(
+ "child_users",
+ [ScriptedResponse(json={"children": [{"id": "user_3"}], "has_more": False})],
+ resume_state=EasypostResumeConfig(after_id="user_2"),
+ )
+ assert result.raised is None
+ assert result.params("after_id") == ["user_2"]
+
+ def test_api_keys_never_reach_the_warehouse(self) -> None:
+ result = _driver().run(
+ "child_users",
+ [
+ ScriptedResponse(
+ json={
+ "children": [
+ {
+ "id": "user_1",
+ "name": "Child",
+ "api_keys": [{"object": "ApiKey", "key": "EZAKfake0000", "mode": "production"}],
+ "children": [{"id": "user_2", "api_keys": [{"key": "EZAKfake1111"}]}],
+ }
+ ],
+ "has_more": False,
+ }
+ )
+ ],
+ )
+ assert result.raised is None
+ assert result.rows == [{"id": "user_1", "name": "Child", "children": [{"id": "user_2"}]}]
+
+
+REPORT_TYPES = EASYPOST_ENDPOINTS["reports"].path_values
+
+
+class TestReports:
+ def test_walks_every_report_type_and_resets_the_cursor(self) -> None:
+ responses = [
+ ScriptedResponse(json={"reports": [{"id": "cfrep_1"}, {"id": "cfrep_2"}], "has_more": True}),
+ ScriptedResponse(json={"reports": [{"id": "cfrep_3"}], "has_more": False}),
+ *[ScriptedResponse(json={"reports": [], "has_more": False}) for _ in REPORT_TYPES[1:-1]],
+ ScriptedResponse(json={"reports": [{"id": "trkrep_1", "url": "https://example.com/signed"}]}),
+ ]
+ result = _driver().run("reports", responses)
+ assert result.raised is None
+ assert result.rows == [{"id": "cfrep_1"}, {"id": "cfrep_2"}, {"id": "cfrep_3"}, {"id": "trkrep_1"}]
+ assert result.paths == [
+ "/v2/reports/cash_flow",
+ *[f"/v2/reports/{report_type}" for report_type in REPORT_TYPES],
+ ]
+ assert result.params("before_id") == [None, "cfrep_2", *[None] * (len(REPORT_TYPES) - 1)]
+ assert result.saved_states == [
+ EasypostResumeConfig(before_id=None, path_value="cash_flow"),
+ EasypostResumeConfig(before_id="cfrep_2", path_value="cash_flow"),
+ EasypostResumeConfig(before_id=None, path_value="tracker"),
+ ]
+
+ @parameterized.expand(
+ [
+ ("mid_type", EasypostResumeConfig(before_id="shprep_9", path_value="shipment"), "shipment", "shprep_9"),
+ ("unknown_type", EasypostResumeConfig(before_id="xrep_1", path_value="retired"), "cash_flow", None),
+ ("legacy_state", EasypostResumeConfig(before_id="shprep_9"), "cash_flow", None),
+ ]
+ )
+ def test_resume(
+ self, _name: str, state: EasypostResumeConfig, first_type: str, first_before_id: str | None
+ ) -> None:
+ expected_types = REPORT_TYPES[REPORT_TYPES.index(first_type) :]
+ result = _driver().run(
+ "reports",
+ [ScriptedResponse(json={"reports": [], "has_more": False}) for _ in expected_types],
+ resume_state=state,
+ )
+ assert result.raised is None
+ assert result.paths == [f"/v2/reports/{t}" for t in expected_types]
+ assert result.params("before_id") == [first_before_id, *[None] * (len(expected_types) - 1)]
+
+
class TestUnpaginatedEndpoints:
- def test_bare_list_response_is_yielded_whole(self) -> None:
- # /carrier_accounts answers with a bare JSON array, not the {"<name>": [...]} wrapper every
+ @parameterized.expand([("carrier_accounts", "/carrier_accounts"), ("carrier_types", "/carrier_types")])
+ def test_bare_list_response_is_yielded_whole(self, endpoint: str, path: str) -> None:
+ # These endpoints answer with a bare JSON array, not the {"<name>": [...]} wrapper every
# other endpoint uses, so extraction has to branch on the endpoint rather than the payload.
- result = _driver().run("carrier_accounts", [ScriptedResponse(json=[{"id": "ca_1"}, {"id": "ca_2"}])])
+ result = _driver().run(endpoint, [ScriptedResponse(json=[{"id": "x_1"}, {"id": "x_2"}])])
assert result.raised is None
- assert [row["id"] for row in result.rows] == ["ca_1", "ca_2"]
- assert result.urls == ["https://api.easypost.com/v2/carrier_accounts"]
+ assert [row["id"] for row in result.rows] == ["x_1", "x_2"]
+ assert result.urls == [f"https://api.easypost.com/v2{path}"]
def test_carrier_credentials_never_reach_the_warehouse(self) -> None:
# EasyPost masks password-type credential values but returns the rest in plaintext, and
@@ -156,14 +257,20 @@ class TestGetRowsRedaction:
# Same secret-leak guard as validate_credentials, on the sync request path.
result = _driver("secret-key").run("shipments", [ScriptedResponse(json={"shipments": [], "has_more": False})])
assert result.raised is None
- assert result.session_options == [{"redact_values": ("secret-key",)}]
+ assert result.session_options == [{"redact_values": ("secret-key",), "capture": True}]
+
+ def test_endpoints_that_strip_fields_are_not_captured(self) -> None:
+ result = _driver().run("reports", [ScriptedResponse(json={"reports": [], "has_more": False}) for _ in range(7)])
+ assert result.raised is None
+ assert all(options["capture"] is False for options in result.session_options)
class TestEasypostSource:
- @parameterized.expand([(name,) for name in ENDPOINTS])
+ @parameterized.expand([(name,) for name in ENDPOINTS if not EASYPOST_ENDPOINTS[name].ascending])
def test_source_response_shape(self, endpoint: str) -> None:
- payload = [] if endpoint == "carrier_accounts" else {endpoint: [], "has_more": False}
- result = _driver().run(endpoint, [ScriptedResponse(json=payload)])
+ config = EASYPOST_ENDPOINTS[endpoint]
+ payload: Any = [] if config.returns_bare_list else {config.response_key or endpoint: [], "has_more": False}
+ result = _driver().run(endpoint, always(ScriptedResponse(json=payload)))
response = result.response
assert result.raised is None
assert response is not None
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/tests/test_easypost_source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/tests/test_easypost_source.py
index ca2d66938bb3..56d07d452c67 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/tests/test_easypost_source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/easypost/tests/test_easypost_source.py
@@ -28,7 +28,7 @@ class TestGetSchemas:
assert [f["field"] for f in schema.incremental_fields] == ["created_at"]
assert schema.supports_append is True
- @parameterized.expand([("carrier_accounts",), ("carriers",)])
+ @parameterized.expand([("carrier_accounts",), ("carriers",), ("carrier_types",), ("child_users",), ("reports",)])
def test_lookup_schemas_are_full_refresh_only(self, endpoint: str) -> None:
# These endpoints expose no cursor at all, so offering incremental or append would let a
# user pick a sync type that silently re-reads the whole collection every run.
@@ -38,7 +38,9 @@ class TestGetSchemas:
assert schema.supports_incremental is False
assert schema.supports_append is False
- @parameterized.expand([("carrier_accounts",), ("end_shippers",)])
+ @parameterized.expand(
+ [("carrier_accounts",), ("end_shippers",), ("carrier_types",), ("child_users",), ("reports",)]
+ )
def test_restricted_endpoints_are_not_selected_by_default(self, endpoint: str) -> None:
# EasyPost gates both endpoints: /carrier_accounts rejects test keys, and the EndShipper
# API is opened per account. Selecting either by default fails a table nobody asked for.