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): enable more tests on emulator #5442

Merged
merged 6 commits into from
Feb 4, 2022

Conversation

olavloite
Copy link
Contributor

The emulator now supports all data types that are also supported by
Cloud Spanner. The integration tests also unnecessarily skipped a large
number of tests that tried to insert untyped null values as it was
assumed that this was not supported. That is however supported for most
data types, and only DATE and TIMESTAMP need to be skipped.

Updates #GoogleCloudPlatform/cloud-spanner-emulator#31

The emulator now supports all data types that are also supported by
Cloud Spanner. The integration tests also unnecessarily skipped a large
number of tests that tried to insert untyped null values as it was
assumed that this was not supported. That is however supported for most
data types, and only DATE and TIMESTAMP need to be skipped.

Updates #GoogleCloudPlatform/cloud-spanner-emulator#31
@olavloite olavloite requested review from a team as code owners February 3, 2022 19:21
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: spanner Issues related to the Spanner API. labels Feb 3, 2022
spanner/integration_test.go Show resolved Hide resolved
@@ -1647,7 +1644,6 @@ func TestIntegration_BasicTypes(t *testing.T) {
{col: "String", val: "foo", want: NullString{"foo", true}},
{col: "String", val: NullString{"bar", true}, want: "bar"},
{col: "String", val: NullString{"bar", false}, want: NullString{"", false}},
{col: "String", val: nil, want: NullString{}},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed as it was a duplicate (the same test is on line 1737). This also applies to a couple of other tests below.

spanner/emulator_test.sh Show resolved Hide resolved
spanner/integration_test.go Show resolved Hide resolved
@olavloite olavloite enabled auto-merge (squash) February 4, 2022 07:20
@olavloite
Copy link
Contributor Author

Build error is caused by a missing library on the test server that seems to be required by the latest version of the emulator:

./emulator_main: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.26' not found (required by ./emulator_main)`

@olavloite olavloite merged commit 08aceb2 into main Feb 4, 2022
@olavloite olavloite deleted the spanner-enable-more-tests-on-emulator branch February 4, 2022 08:06
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. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants