Skip to content
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

Normalize emulator support #70

Closed
3 tasks
tseaver opened this issue Aug 13, 2020 · 0 comments
Closed
3 tasks

Normalize emulator support #70

tseaver opened this issue Aug 13, 2020 · 0 comments
Assignees
Labels
api: datastore Issues related to the googleapis/python-datastore API. triage me I really want to be triaged.

Comments

@tseaver
Copy link
Contributor

tseaver commented Aug 13, 2020

Follow the google-cloud-firestore implementation:

  • Drop use of the google.cloud.environment_variables indirection for the environment variable names driving emulation (likely also DISABLE_GRPC and GCD_DATASET.
  • Document the environment variables locally, as well as how to run the datastore emulator.
  • If the DATASTORE_EMULATOR_HOST environment variable is set, use an "insecure channel", to avoid requiring credentials (see Datastore: Client requires authentication even when connecting to the datastore emulator #11). That won't work, as the datastore client straddles both HTTP and gRPC. Instead, use AnonymousCredentials if none are supplied.
@tseaver tseaver self-assigned this Aug 13, 2020
@product-auto-label product-auto-label bot added the api: datastore Issues related to the googleapis/python-datastore API. label Aug 13, 2020
tseaver added a commit that referenced this issue Aug 13, 2020
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the googleapis/python-datastore API. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants