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

FIX #11687 issue add unit test #11715

Closed
wants to merge 17 commits into from
Closed

FIX #11687 issue add unit test #11715

wants to merge 17 commits into from

Conversation

hoorf
Copy link
Contributor

@hoorf hoorf commented Aug 9, 2021

Fixes #11687.

add unit test for :

  • ShadowDataSourceConfigurationYamlSwapper
  • ShadowTableConfigurationYamlSwapper
  • ShadowRuleAlgorithmProviderConfigurationYamlSwapper

@hoorf hoorf marked this pull request as draft August 10, 2021 05:39
@hoorf hoorf marked this pull request as ready for review August 10, 2021 05:40
Copy link
Contributor

@tristaZero tristaZero left a comment

Choose a reason for hiding this comment

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

Hi Thanks for your contribution.
could you look at the failed CI tests?

lanchengx and others added 16 commits August 11, 2021 09:32
…governance mode (apache#11649)

* fix : apache#11643 Custom pool properties are lost when restarted in governance mode

* doc : apache#11643 modify doc

* refactor : flip '.equals()'

* fix : apache#11643 Custom pool properties are lost when restarted in governance mode

* Use .isEmpty() to replace the hasCustomPoolProps()

* Move CUSTOM_POOL_PROPS_KEY to the DataSourceConfiguration class

* Modify the judgment condition
…e#11717)

* revert part of PR#10840 code to ensure GlobalRule load order

* move todo comment

* add LinkedHashMap wrapper

* add default schema name for integration test
* jdbc-core module delete getDefaultMetaData()

* update

* optimization
* fix ci

* little change
* Migrate YAML Configuration change history from
4.1.2.Configuration Manual->YAML Configuration->Change History to
7.2.API Change History->7.2.1.ShardingSphere-JDBC->YAML Configuration;

* Add content of change history

* Add test of ExecuteProcessEngine.

* Modify the test code format of ExecuteProcessEngine.

* Modify the test code format of ExecuteProcessEngine. Add a test for ExecuteProcessEngine.finish(final String executionID, final SQLExecutionUnit executionUnit).

* Update creatLogicSQL() and createConfigurationProperties() using mock.

* modify createMockedExecutionGroups(final int groupSize, final int unitSize) to only create mock ExecutionGroupContext object.
modify assertTrue to assertThat.

* modify createMockedExecutionGroups(final int groupSize, final int unitSize) to createMockedExecutionGroups();
modify all assertTrue to assertThat.
use UUID.randomUUID().toString() as executionGroupContext.executionID
* Renew transaction context after schema was deleted

* Renew transaction context after schema was deleted

* Renew transaction context after schema was deleted
* Refactor ShardingRuleSQLStatementVisitor

* Add ShardingSphereMode

* Add impl of ShardingSphereMode

* Merge conflicts

* Add todo for update meta data context in memory

* Update MetaDataContexts.getDistMetaDataPersistService()

* Use mode in ShardingSphereDataSource

* Use mode in ShardingSphereDataSource

* Use mode in GovernanceShardingSphereDataSource

* Use mode in Proxy
…che#11733)

* delete getDefaultEngines method for TransactionContexts interface

* fixed
* Modify the document

* Keep space between Chinese and English
@hoorf hoorf closed this Aug 11, 2021
@hoorf
Copy link
Contributor Author

hoorf commented Aug 11, 2021

re pull code

@hoorf
Copy link
Contributor Author

hoorf commented Aug 11, 2021

merge newest code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add unit test for shardingsphere-shadow-core
10 participants