I'd like to export live datastore and import it into my local datastore emulator and run tests on them.
The key mapping gets thrown off because app_id gets set to b~ in all KeyProperties.
1) Exporting all entities: gcloud datastore export gs://<mybucket>
2) Copy export to local folder: gsutil -m cp -r gs://<mybucket>/<backup_folder> <local_folder>
3) Import to local datastore: curl -X POST localhost:<emulator_port>/v1/projects/<app-id>:import -H 'Content-Type: application/json' -d '{"input_url":"<local_folder>/<file>.overall_export_metadata"}'
4) Launch dev_appserver.py with --support_datastore_emulator=true --application <app-id>
Everything above seems to work, you can pull up all your entities, however, entities with KeyProperty's fail because the Key value have app set to b~<app-id>.