Skip to content

fixit: Update to Gen App Builder Tests #10092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 26, 2023
Merged

fixit: Update to Gen App Builder Tests #10092

merged 6 commits into from
May 26, 2023

Conversation

holtskinner
Copy link
Contributor

@holtskinner holtskinner commented May 26, 2023

Fixes #10066

  • Update tests to use returned values instead of print output
  • Switch to use v1 GA endpoint
  • Remove alias for library import

@holtskinner holtskinner requested review from a team as code owners May 26, 2023 16:08
@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: discoveryengine Issues related to the Discovery Engine API API. labels May 26, 2023
@holtskinner holtskinner added the kokoro:run Add this label to force Kokoro to re-run the tests. label May 26, 2023
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label May 26, 2023
@holtskinner holtskinner changed the title fix(tests): Update to Gen App Builder Operations Test fix(tests): Update to Gen App Builder Tests May 26, 2023
@holtskinner holtskinner changed the title fix(tests): Update to Gen App Builder Tests fixit: Update to Gen App Builder Tests May 26, 2023
@holtskinner holtskinner added the kokoro:run Add this label to force Kokoro to re-run the tests. label May 26, 2023
- `ListDocumentsPager` the return type for `client.list_documents` is not exposed as a type from the client library
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label May 26, 2023
@holtskinner holtskinner added the kokoro:run Add this label to force Kokoro to re-run the tests. label May 26, 2023
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label May 26, 2023
@@ -44,5 +42,7 @@ def list_documents_sample(
for result in response:
print(result)

return response
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider returning a relevant object within the response that matches the name of the method. Is there a list that comes back as part of the response you can return?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's hard to get the results this way because it returns a Pager object.

I don't know if it's possible to put a type annotation for because it's not exposed as a type in the client library (but I could be wrong)

@engelke engelke added the automerge Merge the pull request once unit tests and other checks pass. label May 26, 2023
@engelke engelke merged commit 002e988 into main May 26, 2023
@engelke engelke deleted the genapp-tests branch May 26, 2023 23:48
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: discoveryengine Issues related to the Discovery Engine API API. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

discoveryengine.operations_sample_test: test_list_operations failed
5 participants