Testes de integração do Pub/Sub
bookmark_borderbookmark
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Demonstra como integrar um recurso acionado pelo Pub/Sub.
Exemplo de código
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],[],[[["This document provides instructions and code examples for integration testing functions triggered by Pub/Sub events in Java, Node.js, PHP, and Python."],["The examples utilize the Functions Framework to run and test functions locally, ensuring they behave as expected when deployed."],["Each code sample showcases how to simulate a Pub/Sub message via an HTTP request to the locally running function, and verifies that the function correctly processes the message."],["The code uses methods to set up and tear down the local testing environment, and utilize libraries such as `resilience4j` for Java, `wait-port` for Node.js, `Symfony` for PHP, and `requests` for Python, to handle retries, server processes and other tasks."],["Instructions on setting up Application Default Credentials for authenticating to Cloud Run functions are provided, along with links to further documentation."]]],[]]