Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

test: Mock server for testing#1213

Merged
kevkim-codes merged 10 commits intogoogleapis:mainfrom
danieljbruce:mock-server-for-testing
Nov 18, 2024
Merged

test: Mock server for testing#1213
kevkim-codes merged 10 commits intogoogleapis:mainfrom
danieljbruce:mock-server-for-testing

Conversation

@danieljbruce
Copy link
Copy Markdown
Contributor

@danieljbruce danieljbruce commented Dec 13, 2023

Summary

This PR introduces a mock server that can be used with tests to debug grpc errors.

Changes

  1. mock-server/README.md contains instructions for using the mock server.
  2. mock-server/datastore-server.ts contains the code for setting up the grpc server.
  3. mock-server/package.json contains other packages that are needed for the mock server test.
  4. test/try-server.ts contains an example of a test that uses the mock server.

This will be useful for debugging grpc issues.
This mock server will be super useful for ensuring that the right data gets transmitted in private preview so that we can confirm the client library is working correctly.
We use the ts file instead.
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: datastore Issues related to the googleapis/nodejs-datastore API. labels Dec 13, 2023
@danieljbruce danieljbruce reopened this Nov 14, 2024
@danieljbruce danieljbruce changed the title Mock server for testing test: Mock server for testing Nov 14, 2024
@danieljbruce danieljbruce marked this pull request as ready for review November 14, 2024 21:36
@danieljbruce danieljbruce requested a review from a team November 14, 2024 21:36
@danieljbruce danieljbruce requested a review from a team as a code owner November 14, 2024 21:36
@danieljbruce danieljbruce added the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 14, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 14, 2024
@danieljbruce danieljbruce added the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 14, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 14, 2024
@kevkim-codes kevkim-codes merged commit ea17528 into googleapis:main Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: datastore Issues related to the googleapis/nodejs-datastore API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants