Skip to content

Commit 89ba0df

Browse files
committed
fix: update integration tests
1 parent 62f0def commit 89ba0df

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/test/csharp/pgadapter_npgsql_tests/npgsql_tests/NpgsqlTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public void TestUpdateAllDataTypes()
278278
new () {Value = DateTime.Parse("2022-04-02"), DbType = DbType.Date},
279279
new () {Value = "test_string"},
280280
new () {Value = JsonDocument.Parse("{\"key\": \"value\"}")},
281-
new () {Value = "test"},
281+
new () {Value = "testÄ"},
282282
}
283283
};
284284
var updateCount = cmd.ExecuteNonQuery();
@@ -384,7 +384,7 @@ public void TestInsertAllDataTypesReturning()
384384
new () {Value = DateTime.Parse("2022-02-16T13:18:02.123456789Z").ToUniversalTime(), DbType = DbType.DateTimeOffset},
385385
new () {Value = new NpgsqlInterval(14, 3, 14400000000L + 300000000L + 6789000L)},
386386
new () {Value = DateTime.Parse("2022-03-29"), DbType = DbType.Date},
387-
new () {Value = "test"},
387+
new () {Value = "testÄ"},
388388
new () {Value = JsonDocument.Parse("{\"key\":\"value\"}")},
389389
}
390390
};

src/test/java/com/google/cloud/spanner/pgadapter/csharp/ITNpgsqlTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void insertTestData() {
120120
.set("col_date")
121121
.to(Date.parseDate("2022-03-29"))
122122
.set("col_varchar")
123-
.to("test")
123+
.to("testÄ")
124124
.set("col_jsonb")
125125
.to("{\"key\": \"value\"}")
126126
.set("col_array_bigint")
@@ -392,7 +392,7 @@ public void testBinaryCopyOut() throws IOException, InterruptedException {
392392
addNullRow();
393393
String result = execute("TestBinaryCopyOut", createConnectionString());
394394
assertEqualsIgnoreControlCharacters(
395-
"1\tTrue\tdGVzdA==\t3.14\t3.14\t100\t6.626\t20220216T131802123456\t14M3DT14706789000\t20220329\ttest\t{\"key\": \"value\"}\t[1, , 2]\t[True, , False]\t[Ynl0ZXMx, , Ynl0ZXMy]\t[3.14, , -99.99]\t[3.14, , -99.99]\t[-100, , -200]\t[6.626, , -3.14]\t[20220216T161802123456, , 20000101T000000]\tNULL\t[20230220, , 20000101]\t[string1, , string2]\t[{\"key\": \"value1\"}, , {\"key\": \"value2\"}]\n"
395+
"1\tTrue\tdGVzdA==\t3.14\t3.14\t100\t6.626\t20220216T131802123456\t14M3DT14706789000\t20220329\ttestÄ\t{\"key\": \"value\"}\t[1, , 2]\t[True, , False]\t[Ynl0ZXMx, , Ynl0ZXMy]\t[3.14, , -99.99]\t[3.14, , -99.99]\t[-100, , -200]\t[6.626, , -3.14]\t[20220216T161802123456, , 20000101T000000]\tNULL\t[20230220, , 20000101]\t[string1, , string2]\t[{\"key\": \"value1\"}, , {\"key\": \"value2\"}]\n"
396396
+ "2\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\tNULL\n"
397397
+ "Success\n",
398398
result);
@@ -404,7 +404,7 @@ public void testTextCopyOut() throws IOException, InterruptedException {
404404
addNullRow();
405405
String result = execute("TestTextCopyOut", createConnectionString());
406406
assertEqualsIgnoreControlCharacters(
407-
"1\tt\t\\\\x74657374\t3.14\t3.14\t100\t6.626\t2022-02-16 14:18:02.123456+01\tP1Y2M3DT4H5M6.789S\t2022-03-29\ttest\t{\"key\": \"value\"}\t{1,NULL,2}\t{t,NULL,f}\t{\"\\\\\\\\x627974657331\",NULL,\"\\\\\\\\x627974657332\"}\t{3.14,NULL,-99.99}\t{3.14,NULL,-99.99}\t{-100,NULL,-200}\t{6.626,NULL,-3.14}\t{\"2022-02-16 17:18:02.123456+01\",NULL,\"2000-01-01 01:00:00+01\"}\t\\N\t{\"2023-02-20\",NULL,\"2000-01-01\"}\t{\"string1\",NULL,\"string2\"}\t{\"{\\\\\"key\\\\\": \\\\\"value1\\\\\"}\",NULL,\"{\\\\\"key\\\\\": \\\\\"value2\\\\\"}\"}\n"
407+
"1\tt\t\\\\x74657374\t3.14\t3.14\t100\t6.626\t2022-02-16 14:18:02.123456+01\tP1Y2M3DT4H5M6.789S\t2022-03-29\ttestÄ\t{\"key\": \"value\"}\t{1,NULL,2}\t{t,NULL,f}\t{\"\\\\\\\\x627974657331\",NULL,\"\\\\\\\\x627974657332\"}\t{3.14,NULL,-99.99}\t{3.14,NULL,-99.99}\t{-100,NULL,-200}\t{6.626,NULL,-3.14}\t{\"2022-02-16 17:18:02.123456+01\",NULL,\"2000-01-01 01:00:00+01\"}\t\\N\t{\"2023-02-20\",NULL,\"2000-01-01\"}\t{\"string1\",NULL,\"string2\"}\t{\"{\\\\\"key\\\\\": \\\\\"value1\\\\\"}\",NULL,\"{\\\\\"key\\\\\": \\\\\"value2\\\\\"}\"}\n"
408408
+ "2\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\t\\N\n"
409409
+ "Success\n",
410410
result);

src/test/java/com/google/cloud/spanner/pgadapter/golang/ITPgx5Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public void insertTestData() {
149149
.set("col_date")
150150
.to(Date.parseDate("2022-03-29"))
151151
.set("col_varchar")
152-
.to("test")
152+
.to("testÄ")
153153
.set("col_jsonb")
154154
.to("{\"key\": \"value\"}")
155155
.build()));

src/test/java/com/google/cloud/spanner/pgadapter/golang/ITPgxTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public void insertTestData() {
150150
.set("col_date")
151151
.to(Date.parseDate("2022-03-29"))
152152
.set("col_varchar")
153-
.to("test")
153+
.to("testÄ")
154154
.set("col_jsonb")
155155
.to("{\"key\": \"value\"}")
156156
.set("col_array_bigint")

0 commit comments

Comments
 (0)