Skip to content

feat(platform): ship scenarios for the Google Drive connector #5313

Open

Description

@tale-code-bot

Part of #5272, split off while working on it (task TALE-365): one connector per change.

Status quo. Google Drive (configs/platform/system/connectors/google-drive/connector.yml) ships no scenarios, so google-drive is not on SCENARIO_CONNECTORS in services/platform/lib/shared/schemas/shipped-connectors.test.ts. Its actions:

  • yaml-js live bodies: reads list_files, download_file.

Asked. Give every action its scenarios, and add google-drive to SCENARIO_CONNECTORS:

  • Each read ships at least success, empty and error, and each write success, refusal and duplicate.
  • Each error scenario raises what the action really raises: the same message, and the HTTP status only where that error carries one.
  • Prove each scenario of an action against its live body: give SCENARIO_PROOFS in the catalog test the vendor's answer that the scenario stands for, as the Slack and Jev entries do. Given that answer, the body returns the scenario's output or throws its error.
  • Use synthetic data only: the repository is public.
  • The proofs pin the scenario names, so a renamed or removed scenario fails the catalog test.

Builds on #5272's first part, the Jev connector (task TALE-365, branch feat/jev-connector-scenarios). It turns the Slack-only proof table into SCENARIO_PROOFS for every listed connector: a proof answers each request by <METHOD> <url> with the response the live host builds (toConnectorResponse), and hands the body the credential's secrets as a live call does. Start from feature-train once that change is on it.

Notes.

  • download_file fetches the file with ctx.files.download, which the proof host does not hand a body yet. That download runs in the live host (services/platform/lib/connectors/live-host.ts) and fails there, not in the body: REQUEST_FAILED, download of <file> failed (<status>) from <host>, with the vendor's status. Its error scenarios raise that failure.
  • The live body's url is always empty, because the blob sink answers no URL (services/platform/backend/domains/connectors/blob-sink.ts), while the mock gives one. A zero-byte file, the natural empty, is refused by the organization's blob store (FILE_SIZE_INVALID, Invalid blob size). The change decides what download_file's empty stands for, and says why.

Done means: google-drive is on SCENARIO_CONNECTORS, the catalog test proves each of its scenarios, and docs/{en,de,fr}/develop/connectors.md#scenarios stays true.

Activity

  1. added
    feat
    service: platform
    agent-ready
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyfeatservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions