You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/02/28 06:59:11 UTC
[GitHub] [incubator-shardingsphere] zjcnb opened a new pull request #4511:
T0 add ut for sharding-orchestration-core module
zjcnb opened a new pull request #4511: T0 add ut for sharding-orchestration-core module
URL: https://github.com/apache/incubator-shardingsphere/pull/4511
For #4452
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] menghaoranss commented on a change in
pull request #4511: T0 add ut for sharding-orchestration-core module
Posted by GitBox <gi...@apache.org>.
menghaoranss commented on a change in pull request #4511: T0 add ut for sharding-orchestration-core module
URL: https://github.com/apache/incubator-shardingsphere/pull/4511#discussion_r385547039
##########
File path: sharding-orchestration/sharding-orchestration-core/src/test/java/org/apache/shardingsphere/orchestration/internal/registry/config/listener/SchemaChangedListenerTest.java
##########
@@ -170,4 +170,42 @@ public void assertCreateSchemaDeletedEventForNewSchema() {
assertThat(actual, instanceOf(SchemaDeletedEvent.class));
assertThat(((SchemaDeletedEvent) actual).getShardingSchemaName(), is("logic_db"));
}
+
+ @Test
+ public void assertCreateWithInvalidNodeChangedEvent() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/logic_db", DATA_SOURCE_YAML, ChangedType.DELETED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
+ assertThat(actual, instanceOf(IgnoredShardingOrchestrationEvent.class));
+ }
+
+ @Test
+ public void assertCreateWithNullShardingSchemaName() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/datasource", DATA_SOURCE_YAML, ChangedType.DELETED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
+ assertThat(actual, instanceOf(IgnoredShardingOrchestrationEvent.class));
+ }
+
+ @Test
+ public void assertCreateAddedEventWithEncryptRuleConfigurationForNewSchema() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/encrypt_db/rule", ENCRYPT_RULE_YAML, ChangedType.UPDATED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
+ assertThat(actual, instanceOf(EncryptRuleChangedEvent.class));
+ assertThat(((EncryptRuleChangedEvent) actual).getEncryptRuleConfiguration(), instanceOf(EncryptRuleConfiguration.class));
+ }
+
+ @Test
+ public void assertCreateAddedEventWithShardingRuleConfigurationForNewSchema() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/sharding_db/rule", SHARDING_RULE_YAML, ChangedType.UPDATED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
Review comment:
same problem as above
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] dongzl merged pull request #4511: T0 add
ut for sharding-orchestration-core module
Posted by GitBox <gi...@apache.org>.
dongzl merged pull request #4511: T0 add ut for sharding-orchestration-core module
URL: https://github.com/apache/incubator-shardingsphere/pull/4511
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] coveralls edited a comment on issue
#4511: T0 add ut for sharding-orchestration-core module
Posted by GitBox <gi...@apache.org>.
coveralls edited a comment on issue #4511: T0 add ut for sharding-orchestration-core module
URL: https://github.com/apache/incubator-shardingsphere/pull/4511#issuecomment-592387748
## Pull Request Test Coverage Report for [Build 9873](https://coveralls.io/builds/29043515)
* **0** of **0** changed or added relevant lines in **0** files are covered.
* **3** unchanged lines in **1** file lost coverage.
* Overall coverage decreased (**-0.006%**) to **59.132%**
---
| Files with Coverage Reduction | New Missed Lines | % |
| :-----|--------------|--: |
| [sharding-orchestration/sharding-orchestration-core/src/main/java/org/apache/shardingsphere/orchestration/internal/util/IpUtils.java](https://coveralls.io/builds/29043515/source?filename=sharding-orchestration%2Fsharding-orchestration-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fshardingsphere%2Forchestration%2Finternal%2Futil%2FIpUtils.java#L63) | 3 | 76.0% |
<!-- | **Total:** | **3** | | -->
| Totals | [![Coverage Status](https://coveralls.io/builds/29043515/badge)](https://coveralls.io/builds/29043515) |
| :-- | --: |
| Change from base [Build 952](https://coveralls.io/builds/29042653): | -0.006% |
| Covered Lines: | 10606 |
| Relevant Lines: | 17936 |
---
##### 💛 - [Coveralls](https://coveralls.io)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] coveralls commented on issue #4511: T0
add ut for sharding-orchestration-core module
Posted by GitBox <gi...@apache.org>.
coveralls commented on issue #4511: T0 add ut for sharding-orchestration-core module
URL: https://github.com/apache/incubator-shardingsphere/pull/4511#issuecomment-592387748
## Pull Request Test Coverage Report for [Build 9844](https://coveralls.io/builds/29019130)
* **0** of **0** changed or added relevant lines in **0** files are covered.
* **3** unchanged lines in **1** file lost coverage.
* Overall coverage decreased (**-0.006%**) to **59.059%**
---
| Files with Coverage Reduction | New Missed Lines | % |
| :-----|--------------|--: |
| [sharding-orchestration/sharding-orchestration-core/src/main/java/org/apache/shardingsphere/orchestration/internal/util/IpUtils.java](https://coveralls.io/builds/29019130/source?filename=sharding-orchestration%2Fsharding-orchestration-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fshardingsphere%2Forchestration%2Finternal%2Futil%2FIpUtils.java#L63) | 3 | 76.0% |
<!-- | **Total:** | **3** | | -->
| Totals | [![Coverage Status](https://coveralls.io/builds/29019130/badge)](https://coveralls.io/builds/29019130) |
| :-- | --: |
| Change from base [Build 946](https://coveralls.io/builds/29017220): | -0.006% |
| Covered Lines: | 10617 |
| Relevant Lines: | 17977 |
---
##### 💛 - [Coveralls](https://coveralls.io)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] codecov-io commented on issue #4511: T0
add ut for sharding-orchestration-core module
Posted by GitBox <gi...@apache.org>.
codecov-io commented on issue #4511: T0 add ut for sharding-orchestration-core module
URL: https://github.com/apache/incubator-shardingsphere/pull/4511#issuecomment-592384897
# [Codecov](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=h1) Report
> Merging [#4511](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=desc) into [master](https://codecov.io/gh/apache/incubator-shardingsphere/commit/0118ca1cc488c831245baf88a2e5563513ae1a9a?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.
[![Impacted file tree graph](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/graphs/tree.svg?width=650&token=ZvlXpWa7so&height=150&src=pr)](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4511 +/- ##
=========================================
Coverage 55.39% 55.39%
Complexity 331 331
=========================================
Files 953 953
Lines 17977 17977
Branches 3401 3401
=========================================
Hits 9958 9958
Misses 7372 7372
Partials 647 647
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=footer). Last update [0118ca1...e685e32](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] menghaoranss commented on a change in
pull request #4511: T0 add ut for sharding-orchestration-core module
Posted by GitBox <gi...@apache.org>.
menghaoranss commented on a change in pull request #4511: T0 add ut for sharding-orchestration-core module
URL: https://github.com/apache/incubator-shardingsphere/pull/4511#discussion_r385546710
##########
File path: sharding-orchestration/sharding-orchestration-core/src/test/java/org/apache/shardingsphere/orchestration/internal/registry/config/listener/SchemaChangedListenerTest.java
##########
@@ -170,4 +170,42 @@ public void assertCreateSchemaDeletedEventForNewSchema() {
assertThat(actual, instanceOf(SchemaDeletedEvent.class));
assertThat(((SchemaDeletedEvent) actual).getShardingSchemaName(), is("logic_db"));
}
+
+ @Test
+ public void assertCreateWithInvalidNodeChangedEvent() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/logic_db", DATA_SOURCE_YAML, ChangedType.DELETED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
+ assertThat(actual, instanceOf(IgnoredShardingOrchestrationEvent.class));
+ }
+
+ @Test
+ public void assertCreateWithNullShardingSchemaName() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/datasource", DATA_SOURCE_YAML, ChangedType.DELETED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
+ assertThat(actual, instanceOf(IgnoredShardingOrchestrationEvent.class));
+ }
+
+ @Test
+ public void assertCreateAddedEventWithEncryptRuleConfigurationForNewSchema() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/encrypt_db/rule", ENCRYPT_RULE_YAML, ChangedType.UPDATED);
Review comment:
`encrypt_db` is exist schema, the dataChangedEvent will not be created for new schema.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] menghaoranss commented on a change in
pull request #4511: T0 add ut for sharding-orchestration-core module
Posted by GitBox <gi...@apache.org>.
menghaoranss commented on a change in pull request #4511: T0 add ut for sharding-orchestration-core module
URL: https://github.com/apache/incubator-shardingsphere/pull/4511#discussion_r385547139
##########
File path: sharding-orchestration/sharding-orchestration-core/src/test/java/org/apache/shardingsphere/orchestration/internal/registry/config/listener/SchemaChangedListenerTest.java
##########
@@ -170,4 +170,42 @@ public void assertCreateSchemaDeletedEventForNewSchema() {
assertThat(actual, instanceOf(SchemaDeletedEvent.class));
assertThat(((SchemaDeletedEvent) actual).getShardingSchemaName(), is("logic_db"));
}
+
+ @Test
+ public void assertCreateWithInvalidNodeChangedEvent() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/logic_db", DATA_SOURCE_YAML, ChangedType.DELETED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
+ assertThat(actual, instanceOf(IgnoredShardingOrchestrationEvent.class));
+ }
+
+ @Test
+ public void assertCreateWithNullShardingSchemaName() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/datasource", DATA_SOURCE_YAML, ChangedType.DELETED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
+ assertThat(actual, instanceOf(IgnoredShardingOrchestrationEvent.class));
+ }
+
+ @Test
+ public void assertCreateAddedEventWithEncryptRuleConfigurationForNewSchema() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/encrypt_db/rule", ENCRYPT_RULE_YAML, ChangedType.UPDATED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
+ assertThat(actual, instanceOf(EncryptRuleChangedEvent.class));
+ assertThat(((EncryptRuleChangedEvent) actual).getEncryptRuleConfiguration(), instanceOf(EncryptRuleConfiguration.class));
+ }
+
+ @Test
+ public void assertCreateAddedEventWithShardingRuleConfigurationForNewSchema() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/sharding_db/rule", SHARDING_RULE_YAML, ChangedType.UPDATED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
+ assertThat(actual, instanceOf(ShardingRuleChangedEvent.class));
+ assertThat(((ShardingRuleChangedEvent) actual).getShardingRuleConfiguration(), instanceOf(ShardingRuleConfiguration.class));
+ }
+
+ @Test
+ public void assertCreateAddedEventWithMasterSlaveRuleConfigurationForNewSchema() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/masterslave_db/rule", MASTER_SLAVE_RULE_YAML, ChangedType.UPDATED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
Review comment:
same problem as above
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] codecov-io edited a comment on issue
#4511: T0 add ut for sharding-orchestration-core module
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4511: T0 add ut for sharding-orchestration-core module
URL: https://github.com/apache/incubator-shardingsphere/pull/4511#issuecomment-592384897
# [Codecov](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=h1) Report
> Merging [#4511](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=desc) into [master](https://codecov.io/gh/apache/incubator-shardingsphere/commit/46a15b2b26b9b348c0fa926492b14f30a75c91b8?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.
[![Impacted file tree graph](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/graphs/tree.svg?width=650&token=ZvlXpWa7so&height=150&src=pr)](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4511 +/- ##
=========================================
Coverage 55.49% 55.49%
Complexity 331 331
=========================================
Files 953 953
Lines 17936 17936
Branches 3394 3394
=========================================
Hits 9953 9953
Misses 7342 7342
Partials 641 641
```
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=footer). Last update [46a15b2...fe37948](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] codecov-io edited a comment on issue
#4511: T0 add ut for sharding-orchestration-core module
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #4511: T0 add ut for sharding-orchestration-core module
URL: https://github.com/apache/incubator-shardingsphere/pull/4511#issuecomment-592384897
# [Codecov](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=h1) Report
> Merging [#4511](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=desc) into [master](https://codecov.io/gh/apache/incubator-shardingsphere/commit/46a15b2b26b9b348c0fa926492b14f30a75c91b8?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `19.4%`.
[![Impacted file tree graph](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/graphs/tree.svg?width=650&token=ZvlXpWa7so&height=150&src=pr)](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #4511 +/- ##
=========================================
Coverage 55.49% 55.49%
Complexity 331 331
=========================================
Files 953 953
Lines 17936 17936
Branches 3394 3394
=========================================
Hits 9953 9953
Misses 7342 7342
Partials 641 641
```
| [Impacted Files](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=tree) | Coverage Δ | Complexity Δ | |
|---|---|---|---|
| [...e/sql/parser/sql/segment/generic/TableSegment.java](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/diff?src=pr&el=tree#diff-c2hhcmRpbmdzcGhlcmUtc3FsLXBhcnNlci9zaGFyZGluZ3NwaGVyZS1zcWwtcGFyc2VyLWVuZ2luZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvc3FsL3BhcnNlci9zcWwvc2VnbWVudC9nZW5lcmljL1RhYmxlU2VnbWVudC5qYXZh) | `33.33% <ø> (ø)` | `0 <0> (ø)` | :arrow_down: |
| [...l/segment/dml/item/ShorthandProjectionSegment.java](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/diff?src=pr&el=tree#diff-c2hhcmRpbmdzcGhlcmUtc3FsLXBhcnNlci9zaGFyZGluZ3NwaGVyZS1zcWwtcGFyc2VyLWVuZ2luZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvc3FsL3BhcnNlci9zcWwvc2VnbWVudC9kbWwvaXRlbS9TaG9ydGhhbmRQcm9qZWN0aW9uU2VnbWVudC5qYXZh) | `0% <ø> (ø)` | `0 <0> (ø)` | :arrow_down: |
| [...l/parser/sql/segment/dml/column/ColumnSegment.java](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/diff?src=pr&el=tree#diff-c2hhcmRpbmdzcGhlcmUtc3FsLXBhcnNlci9zaGFyZGluZ3NwaGVyZS1zcWwtcGFyc2VyLWVuZ2luZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvc3FsL3BhcnNlci9zcWwvc2VnbWVudC9kbWwvY29sdW1uL0NvbHVtblNlZ21lbnQuamF2YQ==) | `50% <ø> (ø)` | `0 <0> (ø)` | :arrow_down: |
| [.../sql/parser/sql/statement/dcl/RevokeStatement.java](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/diff?src=pr&el=tree#diff-c2hhcmRpbmdzcGhlcmUtc3FsLXBhcnNlci9zaGFyZGluZ3NwaGVyZS1zcWwtcGFyc2VyLWVuZ2luZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvc3FsL3BhcnNlci9zcWwvc3RhdGVtZW50L2RjbC9SZXZva2VTdGF0ZW1lbnQuamF2YQ==) | `0% <0%> (ø)` | `0 <0> (ø)` | :arrow_down: |
| [.../sql/parser/visitor/impl/PostgreSQLDMLVisitor.java](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/diff?src=pr&el=tree#diff-c2hhcmRpbmdzcGhlcmUtc3FsLXBhcnNlci9zaGFyZGluZ3NwaGVyZS1zcWwtcGFyc2VyLXBvc3RncmVzcWwvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NoYXJkaW5nc3BoZXJlL3NxbC9wYXJzZXIvdmlzaXRvci9pbXBsL1Bvc3RncmVTUUxETUxWaXNpdG9yLmphdmE=) | `0% <0%> (ø)` | `0 <0> (ø)` | :arrow_down: |
| [.../sql/parser/sql/statement/dml/SelectStatement.java](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/diff?src=pr&el=tree#diff-c2hhcmRpbmdzcGhlcmUtc3FsLXBhcnNlci9zaGFyZGluZ3NwaGVyZS1zcWwtcGFyc2VyLWVuZ2luZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvc3FsL3BhcnNlci9zcWwvc3RhdGVtZW50L2RtbC9TZWxlY3RTdGF0ZW1lbnQuamF2YQ==) | `25% <0%> (ø)` | `0 <0> (ø)` | :arrow_down: |
| [...ngsphere/sql/parser/visitor/PostgreSQLVisitor.java](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/diff?src=pr&el=tree#diff-c2hhcmRpbmdzcGhlcmUtc3FsLXBhcnNlci9zaGFyZGluZ3NwaGVyZS1zcWwtcGFyc2VyLXBvc3RncmVzcWwvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NoYXJkaW5nc3BoZXJlL3NxbC9wYXJzZXIvdmlzaXRvci9Qb3N0Z3JlU1FMVmlzaXRvci5qYXZh) | `0% <0%> (ø)` | `0 <0> (ø)` | :arrow_down: |
| [...e/sql/parser/visitor/impl/SQLServerDDLVisitor.java](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/diff?src=pr&el=tree#diff-c2hhcmRpbmdzcGhlcmUtc3FsLXBhcnNlci9zaGFyZGluZ3NwaGVyZS1zcWwtcGFyc2VyLXNxbHNlcnZlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvc3FsL3BhcnNlci92aXNpdG9yL2ltcGwvU1FMU2VydmVyRERMVmlzaXRvci5qYXZh) | `0% <0%> (ø)` | `0 <0> (ø)` | :arrow_down: |
| [...hardingsphere/sql/parser/visitor/MySQLVisitor.java](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/diff?src=pr&el=tree#diff-c2hhcmRpbmdzcGhlcmUtc3FsLXBhcnNlci9zaGFyZGluZ3NwaGVyZS1zcWwtcGFyc2VyLW15c3FsL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9zaGFyZGluZ3NwaGVyZS9zcWwvcGFyc2VyL3Zpc2l0b3IvTXlTUUxWaXNpdG9yLmphdmE=) | `0% <0%> (ø)` | `0 <0> (ø)` | :arrow_down: |
| [...here/sql/parser/visitor/impl/OracleDMLVisitor.java](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/diff?src=pr&el=tree#diff-c2hhcmRpbmdzcGhlcmUtc3FsLXBhcnNlci9zaGFyZGluZ3NwaGVyZS1zcWwtcGFyc2VyLW9yYWNsZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2hhcmRpbmdzcGhlcmUvc3FsL3BhcnNlci92aXNpdG9yL2ltcGwvT3JhY2xlRE1MVmlzaXRvci5qYXZh) | `0% <0%> (ø)` | `0 <0> (ø)` | :arrow_down: |
| ... and [41 more](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511/diff?src=pr&el=tree-more) | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=footer). Last update [46a15b2...fe37948](https://codecov.io/gh/apache/incubator-shardingsphere/pull/4511?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] coveralls edited a comment on issue
#4511: T0 add ut for sharding-orchestration-core module
Posted by GitBox <gi...@apache.org>.
coveralls edited a comment on issue #4511: T0 add ut for sharding-orchestration-core module
URL: https://github.com/apache/incubator-shardingsphere/pull/4511#issuecomment-592387748
## Pull Request Test Coverage Report for [Build 9874](https://coveralls.io/builds/29043600)
* **0** of **0** changed or added relevant lines in **0** files are covered.
* **3** unchanged lines in **1** file lost coverage.
* Overall coverage decreased (**-0.006%**) to **59.132%**
---
| Files with Coverage Reduction | New Missed Lines | % |
| :-----|--------------|--: |
| [sharding-orchestration/sharding-orchestration-core/src/main/java/org/apache/shardingsphere/orchestration/internal/util/IpUtils.java](https://coveralls.io/builds/29043600/source?filename=sharding-orchestration%2Fsharding-orchestration-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fshardingsphere%2Forchestration%2Finternal%2Futil%2FIpUtils.java#L63) | 3 | 76.0% |
<!-- | **Total:** | **3** | | -->
| Totals | [![Coverage Status](https://coveralls.io/builds/29043600/badge)](https://coveralls.io/builds/29043600) |
| :-- | --: |
| Change from base [Build 952](https://coveralls.io/builds/29042653): | -0.006% |
| Covered Lines: | 10606 |
| Relevant Lines: | 17936 |
---
##### 💛 - [Coveralls](https://coveralls.io)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] zjcnb commented on a change in pull
request #4511: T0 add ut for sharding-orchestration-core module
Posted by GitBox <gi...@apache.org>.
zjcnb commented on a change in pull request #4511: T0 add ut for sharding-orchestration-core module
URL: https://github.com/apache/incubator-shardingsphere/pull/4511#discussion_r385551687
##########
File path: sharding-orchestration/sharding-orchestration-core/src/test/java/org/apache/shardingsphere/orchestration/internal/registry/config/listener/SchemaChangedListenerTest.java
##########
@@ -170,4 +170,42 @@ public void assertCreateSchemaDeletedEventForNewSchema() {
assertThat(actual, instanceOf(SchemaDeletedEvent.class));
assertThat(((SchemaDeletedEvent) actual).getShardingSchemaName(), is("logic_db"));
}
+
+ @Test
+ public void assertCreateWithInvalidNodeChangedEvent() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/logic_db", DATA_SOURCE_YAML, ChangedType.DELETED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
+ assertThat(actual, instanceOf(IgnoredShardingOrchestrationEvent.class));
+ }
+
+ @Test
+ public void assertCreateWithNullShardingSchemaName() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/datasource", DATA_SOURCE_YAML, ChangedType.DELETED);
+ ShardingOrchestrationEvent actual = schemaChangedListener.createShardingOrchestrationEvent(dataChangedEvent);
+ assertThat(actual, instanceOf(IgnoredShardingOrchestrationEvent.class));
+ }
+
+ @Test
+ public void assertCreateAddedEventWithEncryptRuleConfigurationForNewSchema() {
+ DataChangedEvent dataChangedEvent = new DataChangedEvent("/test/config/schema/encrypt_db/rule", ENCRYPT_RULE_YAML, ChangedType.UPDATED);
Review comment:
ok,I'll fix it later
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services