You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "makssent (via GitHub)" <gi...@apache.org> on 2024/11/05 06:50:39 UTC

[I] Configuring Metadata Tests for Specific Databases in ShardingSphere [shardingsphere]

makssent opened a new issue, #33553:
URL: https://github.com/apache/shardingsphere/issues/33553

   Could you please advise on which databases are typically used for metadata unit tests in ShardingSphere? While exploring parser tests, I noticed that with the `InternalSQLParserIT` class, it’s possible to run tests for a specific database, which was quite convenient. Now, I’d like to do something similar with metadata tests, but I couldn’t find any direct instructions. 
   
   I checked the documentation but couldn’t find any information on how to set this up, so I wanted to ask here in case I might have missed something. If there is a relevant section, please tell me.
   
   In the metadata test configurations, I noticed references to MySQL:
   
   ```yaml
   foo_ds:
     password: root
     closed: false
     dataSourceClassName: org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource
     connectionInitSqls:
       - set names utf8mb4;
       - set names utf8;
     url: jdbc:mysql://localhost:3306/foo_ds
     username: root
   ```
   It looks like mock data and MySQL connections are being used here, but it’s unclear how to configure the tests to run with a specific database (for example, PostgreSQL, MySQL, or other supported databases).
   
   I’d appreciate any guidance on the following:
   
   1. Which databases are recommended for testing metadata?
   2. Is there a way to run these tests for a specific database, similar to InternalSQLParserIT, and how can I set that up?
   
   My ultimate goal is to run ShardingSphere's unit tests on a custom database that currently isn’t officially supported in ShardingSphere.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Configuring Metadata Tests for Specific Databases in ShardingSphere [shardingsphere]

Posted by "makssent (via GitHub)" <gi...@apache.org>.
makssent closed issue #33553: Configuring Metadata Tests for Specific Databases in ShardingSphere
URL: https://github.com/apache/shardingsphere/issues/33553


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org