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

test(spanner): relax an expectation about JSON keys in emulator #7517

Merged
merged 1 commit into from
Oct 26, 2021

Conversation

devbww
Copy link
Contributor

@devbww devbww commented Oct 26, 2021

The Spanner emulator is gaining support for JSON values, which means
we need to start changing some test expectations. We were somewhat
particular about what errors to expect so that we could discern when
the emulator's behavior started to change.

In this test case, where we use a JSON column as a primary key (which
is always an error), we were expecting a parse error on the word
"JSON", but, for now, we're happy with any kind of error. We might
still get the "INVALID_ARGUMENT" parsing error, or we could get the
true "INVALID_ARGUMENT" primary-key error, or we might even get
"UNIMPLEMENTED" if the emulator has JSON support dynamically disabled.


This change is Reviewable

The Spanner emulator is gaining support for JSON values, which means
we need to start changing some test expectations.  We were somewhat
particular about what errors to expect so that we could discern when
the emulator's behavior started to change.

In this test case, where we use a JSON column as a primary key (which
is always an error), we were expecting a parse error on the word
"JSON", but, for now, we're happy with any kind of error.  We might
still get the "INVALID_ARGUMENT" parsing error, or we could get the
true "INVALID_ARGUMENT" primary-key error, or we might even get
"UNIMPLEMENTED" if the emulator has JSON support dynamically disabled.
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 26, 2021
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Oct 26, 2021
@google-cloud-cpp-bot
Copy link
Collaborator

Google Cloud Build Logs
For commit: 0c4898392972d90ba0472df248e4ebf4c22b4cc8

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@devbww devbww marked this pull request as ready for review October 26, 2021 08:07
@devbww devbww requested a review from a team as a code owner October 26, 2021 08:07
@codecov
Copy link

codecov bot commented Oct 26, 2021

Codecov Report

Merging #7517 (0c48983) into main (0cd97d7) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #7517   +/-   ##
=======================================
  Coverage   93.66%   93.66%           
=======================================
  Files        1361     1361           
  Lines      118103   118101    -2     
=======================================
- Hits       110624   110623    -1     
+ Misses       7479     7478    -1     
Impacted Files Coverage Δ
...tegration_tests/database_admin_integration_test.cc 57.49% <100.00%> (-0.15%) ⬇️
...tegration_tests/database_admin_integration_test.cc 56.98% <100.00%> (-0.17%) ⬇️
...bigtable/examples/bigtable_hello_instance_admin.cc 81.31% <0.00%> (-2.20%) ⬇️
.../cloud/storage/benchmarks/throughput_experiment.cc 74.37% <0.00%> (-0.51%) ⬇️
...cloud/pubsub/internal/subscription_session_test.cc 98.00% <0.00%> (+0.24%) ⬆️
...le/cloud/storage/internal/curl_download_request.cc 89.25% <0.00%> (+1.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0cd97d7...0c48983. Read the comment docs.

@devbww devbww merged commit 38959b4 into googleapis:main Oct 26, 2021
@devbww devbww deleted the spanner-emulator-json branch October 26, 2021 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants