From 29defea3b82c46e37d3f11f73f5fe8cbd70123f5 Mon Sep 17 00:00:00 2001 From: Liang Zhang Date: Mon, 2 Oct 2023 21:54:39 +0800 Subject: [PATCH] Fix import test case config files (#28624) --- .../resources/conf/import/config-duplicated-logic-table.yaml | 2 ++ .../test/resources/conf/import/config-empty-database-name.yaml | 2 ++ .../core/src/test/resources/conf/import/config-encrypt.yaml | 2 ++ .../test/resources/conf/import/config-invalid-algorithm.yaml | 2 ++ .../core/src/test/resources/conf/import/config-mask.yaml | 2 ++ .../test/resources/conf/import/config-readwrite-splitting.yaml | 3 +++ .../core/src/test/resources/conf/import/config-shadow.yaml | 2 ++ .../core/src/test/resources/conf/import/config-sharding.yaml | 2 ++ 8 files changed, 17 insertions(+) diff --git a/proxy/backend/core/src/test/resources/conf/import/config-duplicated-logic-table.yaml b/proxy/backend/core/src/test/resources/conf/import/config-duplicated-logic-table.yaml index 446c64bc569af..4c573579be6fa 100644 --- a/proxy/backend/core/src/test/resources/conf/import/config-duplicated-logic-table.yaml +++ b/proxy/backend/core/src/test/resources/conf/import/config-duplicated-logic-table.yaml @@ -19,6 +19,7 @@ databaseName: sharding_db dataSources: ds_0: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_0 username: root password: @@ -28,6 +29,7 @@ dataSources: maxPoolSize: 50 minPoolSize: 1 ds_1: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_1 username: root password: diff --git a/proxy/backend/core/src/test/resources/conf/import/config-empty-database-name.yaml b/proxy/backend/core/src/test/resources/conf/import/config-empty-database-name.yaml index c48a6296b3da3..d9f809eee1114 100644 --- a/proxy/backend/core/src/test/resources/conf/import/config-empty-database-name.yaml +++ b/proxy/backend/core/src/test/resources/conf/import/config-empty-database-name.yaml @@ -17,6 +17,7 @@ dataSources: ds_0: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_0 username: root password: @@ -26,6 +27,7 @@ dataSources: maxPoolSize: 50 minPoolSize: 1 ds_1: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_1 username: root password: diff --git a/proxy/backend/core/src/test/resources/conf/import/config-encrypt.yaml b/proxy/backend/core/src/test/resources/conf/import/config-encrypt.yaml index c6b0fdd565e1b..8db3648f7d7bb 100644 --- a/proxy/backend/core/src/test/resources/conf/import/config-encrypt.yaml +++ b/proxy/backend/core/src/test/resources/conf/import/config-encrypt.yaml @@ -19,6 +19,7 @@ databaseName: encrypt_db dataSources: ds_0: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_0 username: root password: @@ -28,6 +29,7 @@ dataSources: maxPoolSize: 50 minPoolSize: 1 ds_1: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_1 username: root password: diff --git a/proxy/backend/core/src/test/resources/conf/import/config-invalid-algorithm.yaml b/proxy/backend/core/src/test/resources/conf/import/config-invalid-algorithm.yaml index 887b2d93a6ae6..9299647c8cf06 100644 --- a/proxy/backend/core/src/test/resources/conf/import/config-invalid-algorithm.yaml +++ b/proxy/backend/core/src/test/resources/conf/import/config-invalid-algorithm.yaml @@ -19,6 +19,7 @@ databaseName: sharding_db dataSources: ds_0: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_0 username: root password: @@ -28,6 +29,7 @@ dataSources: maxPoolSize: 50 minPoolSize: 1 ds_1: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_1 username: root password: diff --git a/proxy/backend/core/src/test/resources/conf/import/config-mask.yaml b/proxy/backend/core/src/test/resources/conf/import/config-mask.yaml index 6479e7c954aa6..1b2540db74f28 100644 --- a/proxy/backend/core/src/test/resources/conf/import/config-mask.yaml +++ b/proxy/backend/core/src/test/resources/conf/import/config-mask.yaml @@ -19,6 +19,7 @@ databaseName: mask_db dataSources: ds_0: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_0 username: root password: @@ -28,6 +29,7 @@ dataSources: maxPoolSize: 50 minPoolSize: 1 ds_1: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_1 username: root password: diff --git a/proxy/backend/core/src/test/resources/conf/import/config-readwrite-splitting.yaml b/proxy/backend/core/src/test/resources/conf/import/config-readwrite-splitting.yaml index 4b09a4e1d1834..30af779bda02d 100644 --- a/proxy/backend/core/src/test/resources/conf/import/config-readwrite-splitting.yaml +++ b/proxy/backend/core/src/test/resources/conf/import/config-readwrite-splitting.yaml @@ -19,6 +19,7 @@ databaseName: readwrite_splitting_db dataSources: write_ds: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_write_ds username: root password: @@ -28,6 +29,7 @@ dataSources: maxPoolSize: 50 minPoolSize: 1 read_ds_0: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_read_ds_0 username: root password: @@ -37,6 +39,7 @@ dataSources: maxPoolSize: 50 minPoolSize: 1 read_ds_1: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_read_ds_1 username: root password: diff --git a/proxy/backend/core/src/test/resources/conf/import/config-shadow.yaml b/proxy/backend/core/src/test/resources/conf/import/config-shadow.yaml index ec52ad40e70cc..b4f03f17c7f08 100644 --- a/proxy/backend/core/src/test/resources/conf/import/config-shadow.yaml +++ b/proxy/backend/core/src/test/resources/conf/import/config-shadow.yaml @@ -19,6 +19,7 @@ databaseName: shadow_db dataSources: ds: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_0 username: root password: @@ -28,6 +29,7 @@ dataSources: maxPoolSize: 50 minPoolSize: 1 shadow_ds: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_1 username: root password: diff --git a/proxy/backend/core/src/test/resources/conf/import/config-sharding.yaml b/proxy/backend/core/src/test/resources/conf/import/config-sharding.yaml index 77cb41c42d3d7..f0e52abd78ca8 100644 --- a/proxy/backend/core/src/test/resources/conf/import/config-sharding.yaml +++ b/proxy/backend/core/src/test/resources/conf/import/config-sharding.yaml @@ -19,6 +19,7 @@ databaseName: sharding_db dataSources: ds_0: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_0 username: root password: @@ -28,6 +29,7 @@ dataSources: maxPoolSize: 50 minPoolSize: 1 ds_1: + dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource url: jdbc:mock://127.0.0.1/demo_ds_1 username: root password: