Anda dapat menguji atau memublikasikan integrasi dari editor integrasi setelah menambahkan dan mengonfigurasi integrasi dengan pemicu, tugas, dan koneksi edge yang diperlukan. Saat Anda menguji integrasi menggunakan konsol Google Cloud , integrasi akan dieksekusi dalam mode sinkron.
Anda mungkin juga bisa mendapatkan
izin yang diperlukan melalui peran
khusus atau peran
bawaan lainnya.
Menguji integrasi
Jika ingin, Anda dapat menguji integrasi sebelum memublikasikannya untuk memverifikasi bahwa integrasi berfungsi sebagaimana mestinya. Pengujian integrasi memungkinkan Anda bereksperimen dengan nilai variabel input integrasi, dan membantu mengidentifikasi kesalahan apa pun dalam alur koneksi integrasi.
Untuk menjalankan pengujian integrasi, pilih salah satu opsi berikut:
Memublikasikan versi integrasi akan men-deploy versi integrasi tersebut, dan menempatkannya dalam status aktif. Semua versi integrasi yang dipublikasikan sebelumnya akan otomatis dibatalkan publikasinya, dan semua layanan yang mengandalkan versi integrasi yang dipublikasikan sebelumnya akan otomatis menggunakan versi terbaru yang dipublikasikan.
Untuk memublikasikan integrasi, pilih salah satu opsi berikut:
Membatalkan publikasi versi integrasi yang aktif akan membatalkan deployment versi integrasi tersebut, dan menempatkannya dalam status snapshot. Semua layanan yang mengandalkan versi integrasi yang dipublikasikan akan otomatis dihentikan.
Untuk membatalkan publikasi integrasi, pilih salah satu opsi berikut:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-25 UTC."],[[["\u003cp\u003eYou can test an integration to verify its functionality and identify faults before publishing, but note that integrations with suspension-based tasks cannot be tested prior to publishing.\u003c/p\u003e\n"],["\u003cp\u003eTesting an integration in the Google Cloud console executes it in synchronous mode, allowing for the editing of input variables, retesting, and viewing execution logs.\u003c/p\u003e\n"],["\u003cp\u003ePublishing an integration version deploys it in an active state, automatically unpublishing any previous version and directing all services to the latest version.\u003c/p\u003e\n"],["\u003cp\u003eUnpublishing an active integration version undeploys it, moving it to a snapshot state and stopping any dependent services.\u003c/p\u003e\n"],["\u003cp\u003eAn user needs the Application Integration Service Agent role to get the permissions required to test or publish an integration.\u003c/p\u003e\n"]]],[],null,["# Test and publish integrations\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nTest and publish integrations\n=============================\n\n\nYou can test or publish an integration from the [integration editor](/application-integration/docs/integrations-ui-layout) after you have added and configured the integration with the necessary [triggers](/application-integration/docs/trigger-overview), [tasks](/application-integration/docs/task-overview), and [edge](/application-integration/docs/edge-overview) connections. When you test an integration using the Google Cloud console, the integration is executed in the [synchronous mode](/application-integration/docs/triggers#execution-modes).\n\nRequired role\n-------------\n\n\nTo get the permissions that\nyou need to test or publish an integration,\n\nask your administrator to grant you the\n\n\n[Application Integration Service Agent](/iam/docs/roles-permissions/integrations#integrations.serviceAgent) (`roles/integrations.serviceAgent`)\nIAM role on the project.\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nYou might also be able to get\nthe required permissions through [custom\nroles](/iam/docs/creating-custom-roles) or other [predefined\nroles](/iam/docs/roles-overview#predefined).\n\nTest an integration\n-------------------\n\n\nOptionally, if you want to verify that your integration is working as intended, you can test it before publishing. Testing an integration lets you experiment with the integration input variable values, and helps in identifying any faults in the integration connection flow.\n\n\n| **Note:** Integrations that are configured with suspension-based tasks, such as [Approval task](/application-integration/docs/approval-task), [Suspend task](/application-integration/docs/run-suspend-task), or [Timer task](/application-integration/docs/run-timer-task), cannot be tested before [publishing](#publish-integrations) the integration.\n\n\u003cbr /\u003e\n\n\nTo test run an integration, select one of the following options:\n\n### Console\n\n1. In the Google Cloud console, go to the **Application Integration** page.\n\n [Go to Application Integration](https://console.cloud.google.com/integrations)\n2. Click **Integrations** from the left navigation menu to open the **Integrations** page.\n3. Select the integration that you want to test. \u003cbr /\u003e\n\n4. In the designer navigation bar, click **Test** .\n\n\n If you have multiple triggers configured in your integration, then select the trigger from which you want to\n test run your integration. The **Test Integration** pane appears.\n5. Click **Test integration** .\n\n\n Application Integration test runs the integration and displays the execution result in the **Test Integration** pane:\n - To edit the input variables, click **Edit input variables**.\n - To retest the integration, click **Retest integration**.\n - To restore the values, click **Restore values**.\n - To view and inspect the [execution logs](/application-integration/docs/viewing-logs) of the test run, click **View logs**.\n - If you have [enabled Cloud Logging](/application-integration/docs/cloud-logging#enable-cloud-logging), then to view logs in Cloud Logging, click **View Cloud logs**.\n - To edit the integration without creating a new version of the integration, click **Edit integration**.\n - To close the test operation and return to the integration editor, click **Close**.\n\n### API\n\n\nCall the [`projects.locations.integrations.test`](/application-integration/docs/reference/rest/v1/projects.locations.integrations/test) method.\n\nTo set the timeout of the flow, set the `X-Server-Timeout` field in the header. By default, the timeout is 120 seconds. For a list of pre-defined set of request parameters, see [System parameters](/apis/docs/system-parameters).\n\nPublish an integration\n----------------------\n\n\nPublishing an integration version deploys that integration version, and puts it in an [active state](/application-integration/docs/integration-versions). Any previously published version of the integration will automatically be unpublished, and all the services that rely on the previously published integration version will automatically use the latest published version.\n\n\nTo publish an integration, select one of the following options:\n\n### Console\n\n1. In the Google Cloud console, go to the **Application Integration** page.\n\n [Go to Application Integration](https://console.cloud.google.com/integrations)\n2. Click **Integrations** from the left navigation menu to open the **Integrations** page.\n3. Select the integration that you want to publish.\u003cbr /\u003e\n\n4. In the designer navigation bar, click the **Version dropdown**, and select the integration version that you want to publish.\n5. Click **Publish** .\n\n The **Autogenerate Integration description** dialog appears. If you want to generate a description, click **Sure, continue** . Otherwise, click **No, just publish**.\n\n\nUpon successfully publishing your integration, you can view and inspect the [execution logs](/application-integration/docs/integration-execution-logs) of the published integration. To view logs, click **Logs** in the toolbar of the integration editor.\n\n\nBy default, Application Integration locks an integration from editing when it is published. To make any changes to the published integration, click **Enable editing** in the integration editor. Editing a published integration will create a new version of that integration.\n\n### API\n\n\nCall the [`projects.locations.integrations.versions.publish`](/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/publish) method.\n\n### Unpublish an integration\n\n\nUnpublishing an [active](/application-integration/docs/integration-versions) integration version undeploys that integration version, and puts it in a [snapshot](/application-integration/docs/integration-versions) state. Any services that rely on the published version of the integration will automatically be stopped.\n\n\nTo unpublish an integration, select one of the following options:\n\n### Console\n\n1. In the Google Cloud console, go to the **Application Integration** page.\n\n [Go to Application Integration](https://console.cloud.google.com/integrations)\n2. Click **Integrations** from the left navigation menu to open the **Integrations** page.\n3. Select the integration that you want to unpublish.\u003cbr /\u003e\n\n4. In the designer navigation bar, click the **Version dropdown**, and select the integration version that you want to unpublish.\n5. Click **Unpublish** .\n\n\n After the integration is successfully unpublished, you can click **Enable editing** in the integration editor to edit the integration. Editing the integration will create a new version of that integration.\n\n### API\n\n\nCall the [`projects.locations.integrations.versions.unpublish`](/application-integration/docs/reference/rest/v1/projects.locations.integrations.versions/unpublish) method.\n\nQuota and limits\n----------------\n\nFor information about Application Integration quotas and limits, see [Quotas and limits](/application-integration/docs/quotas).\n\nBest practice\n-------------\n\n- Define the usability of a [variable (input variable or output variable)](/application-integration/docs/variables) before testing your integration. See Integration variables.\n- Define [error handling](/application-integration/docs/error-handling) for your integration.\n\nQuotas and limits\n-----------------\n\nFor information about quotas and limits, see [Quotas and limits](/application-integration/docs/quotas)."]]