Uh oh!
There was an error while loading. Please reload this page.
feat(datastore): Add Datastore Admin API samples - #4121
Conversation
@BenWhitehead, @crwilcox, I've used the code generated by Alex Vaskman (see the generation configurations PR), to run tests. They are okay:
I've written the code in Datastore fashion for now. Ready for any changes requests. |
BenWhitehead
commented
Jun 18, 2020
I think it's okay to not have tests for the export/import calls, since those are |
tmatsuo
commented
Jun 22, 2020
I think we should add a test. For bucket access and config, please tell us the requirements. We can set it up. |
BenWhitehead
commented
Jun 22, 2020
Hey @tmatsuo, This is the quick list of what I believe would be needed to run import/export integration tests:
|
tmatsuo
commented
Jun 24, 2020
We're already using a storage bucket specified in Re: permission I added those permissions to the service accounts. I think |
tmatsuo
commented
Jun 24, 2020
Can you also update the required env vars and permissions to run the tests in the README file? Actually you'll need to update README.rst.in and run the readmegen nox session to re-generate the README.rst file. I think you can use |
@BenWhitehead, @tmatsuo, looks like we were provided with all the necessary permissions in our project, thanks. I've run the tests locally - they're okay (I assume on kokoro they'll be failing until the next Datastore release): I've unioned And, if I understood correctly, this
Pushed. There is no |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
IlyaFaer
commented
Jul 14, 2020
Thanks, @crwilcox! All the files are there now. I suppose only renovate PR is left, and kokoro checks will become green. |
tmatsuo
commented
Jul 16, 2020
@IlyaFaer FYI, I think the test will automatically executed if you join googlecloudplatform org. |
BenWhitehead
commented
Jul 16, 2020
@IlyaFaer looks like there are some test bootstrapping issues |
@BenWhitehead, @crwilcox, I've updated the branch with renovate PR changes. Now another error appeared: ____________ERRORcollectingdatastore/cloud-client/admin_test.py_____________Traceback (mostrecentcalllast):
File"/workspace/datastore/cloud-client/admin_test.py", line19, in<module>importadminFile"/workspace/datastore/cloud-client/admin.py", line15, in<module>fromgoogle.cloud.datastore_admin_v1.gapicimportdatastore_admin_clientFile"/workspace/datastore/cloud-client/.nox/py-3-6/lib/python3.6/site-packages/google/cloud/datastore_admin_v1/__init__.py", line23, in<module>fromgoogle.cloud.datastore_admin_v1.gapicimportdatastore_admin_clientFile"/workspace/datastore/cloud-client/.nox/py-3-6/lib/python3.6/site-packages/google/cloud/datastore_admin_v1/gapic/datastore_admin_client.py", line48, in<module>"google-cloud-datastore-admin",
File"/workspace/datastore/cloud-client/.nox/py-3-6/lib/python3.6/site-packages/pkg_resources/__init__.py", line481, inget_distributiondist=get_provider(dist)
File"/workspace/datastore/cloud-client/.nox/py-3-6/lib/python3.6/site-packages/pkg_resources/__init__.py", line357, inget_providerreturnworking_set.find(moduleOrReq) orrequire(str(moduleOrReq))[0]
File"/workspace/datastore/cloud-client/.nox/py-3-6/lib/python3.6/site-packages/pkg_resources/__init__.py", line900, inrequireneeded=self.resolve(parse_requirements(requirements))
File"/workspace/datastore/cloud-client/.nox/py-3-6/lib/python3.6/site-packages/pkg_resources/__init__.py", line786, inresolveraiseDistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The'google-cloud-datastore-admin'distributionwasnotfoundandisrequiredbytheapplicationI suspect the problem caused with the generated lines: There is no such a Python package |
@tmatsuo, @crwilcox, @BenWhitehead, all the checks are green 🎉 |


Fixes#4120