totalo opened a new issue #12157:
URL: https://github.com/apache/shardingsphere/issues/12157
since #12155 merged.
In the windows environment, there is an error, but it is normal in other
environments, I will solve it as soon as possible.
```
Error:
assertAppend(org.apache.shardingsphere.mode.persist.service.impl.DataSourcePersistServiceTest)
Time elapsed: 0.002 s <<< FAILURE!
org.mockito.exceptions.verification.junit.ArgumentsAreDifferent:
Argument(s) are different! Wanted:
repository.persist(
"/metadata/foo_db/dataSources",
"foo_ds:
driverClassName: com.mysql.jdbc.Driver
password: root
dataSourceClassName: org.apache.shardingsphere.test.mock.MockedDataSource
connectionInitSqls:
- set names utf8mb4;
- set names utf8;
url: jdbc:mysql://localhost:3306/foo_ds
username: root
"
);
-> at
org.apache.shardingsphere.mode.persist.service.impl.DataSourcePersistServiceTest.assertAppend(DataSourcePersistServiceTest.java:87)
Actual invocation has different arguments:
repository.persist(
"/metadata/foo_db/dataSources",
"foo_ds:
driverClassName: com.mysql.jdbc.Driver
password: root
dataSourceClassName: org.apache.shardingsphere.test.mock.MockedDataSource
connectionInitSqls:
- set names utf8mb4;
- set names utf8;
url: jdbc:mysql://localhost:3306/foo_ds
username: root
"
);
-> at
org.apache.shardingsphere.mode.persist.service.impl.DataSourcePersistService.persist(DataSourcePersistService.java:52)
at
org.apache.shardingsphere.mode.persist.service.impl.DataSourcePersistServiceTest.assertAppend(DataSourcePersistServiceTest.java:87)
[INFO] Running
org.apache.shardingsphere.mode.persist.service.impl.PropertiesPersistServiceTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -
in
org.apache.shardingsphere.mode.persist.service.impl.PropertiesPersistServiceTest
[INFO] Running
org.apache.shardingsphere.mode.persist.service.impl.SchemaRulePersistServiceTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s -
in
org.apache.shardingsphere.mode.persist.service.impl.SchemaRulePersistServiceTest
[INFO] Running
org.apache.shardingsphere.mode.persist.service.SchemaMetaDataPersistServiceTest
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.033
s - in
org.apache.shardingsphere.mode.persist.service.SchemaMetaDataPersistServiceTest
[INFO]
[INFO] Results:
[INFO]
Error: Failures:
Error: DataSourcePersistServiceTest.assertAppend:87
Argument(s) are different! Wanted:
repository.persist(
"/metadata/foo_db/dataSources",
"foo_ds:
driverClassName: com.mysql.jdbc.Driver
password: root
dataSourceClassName: org.apache.shardingsphere.test.mock.MockedDataSource
connectionInitSqls:
- set names utf8mb4;
- set names utf8;
url: jdbc:mysql://localhost:3306/foo_ds
username: root
"
);
-> at
org.apache.shardingsphere.mode.persist.service.impl.DataSourcePersistServiceTest.assertAppend(DataSourcePersistServiceTest.java:87)
Actual invocation has different arguments:
repository.persist(
"/metadata/foo_db/dataSources",
"foo_ds:
driverClassName: com.mysql.jdbc.Driver
password: root
dataSourceClassName: org.apache.shardingsphere.test.mock.MockedDataSource
connectionInitSqls:
- set names utf8mb4;
- set names utf8;
url: jdbc:mysql://localhost:3306/foo_ds
username: root
"
);
-> at
org.apache.shardingsphere.mode.persist.service.impl.DataSourcePersistService.persist(DataSourcePersistService.java:52)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]