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

Add test case for ZookeeperMetadataReportTest #8840

Merged
merged 3 commits into from
Sep 21, 2021

Conversation

BurningCN
Copy link
Member

What is the purpose of the change

1.test case
2.fix typo
3.remove unused param

1.test case
2.fix typo
3.remove unused param
@codecov-commenter
Copy link

Codecov Report

Merging #8840 (77e2878) into 3.0 (1b100f8) will increase coverage by 0.02%.
The diff coverage is 80.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##                3.0    #8840      +/-   ##
============================================
+ Coverage     63.70%   63.72%   +0.02%     
  Complexity      312      312              
============================================
  Files          1145     1169      +24     
  Lines         48188    49202    +1014     
  Branches       7255     7360     +105     
============================================
+ Hits          30699    31355     +656     
- Misses        14123    14417     +294     
- Partials       3366     3430      +64     
Impacted Files Coverage Δ
.../dubbo/common/utils/ServiceAnnotationResolver.java 56.25% <ø> (-1.33%) ⬇️
...g/apache/dubbo/metadata/report/MetadataReport.java 14.28% <ø> (ø)
...ubbo/metadata/store/nacos/NacosMetadataReport.java 0.00% <ø> (ø)
...ubbo/metadata/store/redis/RedisMetadataReport.java 24.35% <ø> (ø)
...adata/store/zookeeper/ZookeeperMetadataReport.java 71.05% <ø> (+1.31%) ⬆️
...ient/metadata/store/RemoteMetadataServiceImpl.java 65.27% <0.00%> (ø)
...adata/rest/ClassPathServiceRestMetadataReader.java 87.50% <100.00%> (ø)
...ubbo/registry/client/ServiceDiscoveryRegistry.java 82.11% <100.00%> (+0.11%) ⬆️
...pring/context/event/DubboBootstrapStatedEvent.java 0.00% <0.00%> (-66.67%) ⬇️
...pring/context/event/DubboBootstrapStopedEvent.java 0.00% <0.00%> (-66.67%) ⬇️
... and 273 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b100f8...77e2878. Read the comment docs.

@@ -45,7 +45,7 @@
default void publishAppMetadata(SubscriberMetadataIdentifier identifier, MetadataInfo metadataInfo) {
}

default MetadataInfo getAppMetadata(SubscriberMetadataIdentifier identifier, Map<String, String> instanceMetadata) {
default MetadataInfo getAppMetadata(SubscriberMetadataIdentifier identifier) {
Copy link
Member

Choose a reason for hiding this comment

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

Please do not change this method signature. instanceMetadata contains some instance releated properties which will take effect when getting metadata

@AlbumenJ AlbumenJ merged commit 419e125 into apache:3.0 Sep 21, 2021
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.

3 participants