-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Adding bigtable-emulator tox environment. #2322
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
Conversation
|
LGTM, this is the right set of stuff to be skipping. |
|
w00t. |
tox.ini
Outdated
| python {toxinidir}/system_tests/run_emulator.py --package=bigtable | ||
| passenv = | ||
| GOOGLE_CLOUD_DISABLE_GRPC | ||
| deps = {[testenv:datastore-emulator]deps} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
system_tests/run_emulator.py
Outdated
| wait_ready_prefix(popen, _PS_READY_LINE_PREFIX) | ||
|
|
||
|
|
||
| def bigtable_wait_ready(popen): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
| _DS_READY_LINE = '[datastore] Dev App Server is now running.\n' | ||
| _PS_READY_LINE_PREFIX = '[pubsub] INFO: Server started, listening on ' | ||
| _BT_READY_LINE_PREFIX = '[bigtable] Cloud Bigtable emulator running on ' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| if Config.IN_EMULATOR is not None: | ||
| self.skipTest( | ||
| 'Instance Admin API not supported in Bigtable emulator') | ||
| self.instances_to_delete = [] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
afc36e2 to
c877adf
Compare
|
@daspecster @tseaver PTAL. (Also on LGTM, please remind me to squash.) |
|
LGTM unless @tseaver has more. |
c877adf to
6805312
Compare
Also updating the pubsub system test with similar support for detection of the emulator at run-time rather than import time. Fixes googleapis#2242.
6805312 to
b42bdc8
Compare
|
Glad to see this merged! Can we do a release on the back of this? We want to add emulator documentation that mentions the python support. |
|
Good to know, thanks @dhermes. |
|
Sure thing |
Also updating the pubsub system test with similar support for detection of the emulator at run-time rather than import time.
Fixes #2242.
FYI @garye this is the current output: