-
Notifications
You must be signed in to change notification settings - Fork 173
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
Traffic label transparent transmission test part demo #1328
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1328 +/- ##
==========================================
Coverage 42.29% 42.29%
Complexity 3274 3274
==========================================
Files 823 823
Lines 18303 18303
Branches 2014 2014
==========================================
Hits 7741 7741
Misses 9591 9591
Partials 971 971
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
...-dubbo-consumer-demo/src/main/java/com/huaweicloud/demo/controller/AlibabaDubboConsumer.java
Outdated
Show resolved
Hide resolved
...-dubbo-consumer-demo/src/main/java/com/huaweicloud/demo/controller/AlibabaDubboConsumer.java
Outdated
Show resolved
Hide resolved
...mo/src/main/java/com/huaweicloud/demo/providerimpl/GreetingServiceAlibabaInnerDubboImpl.java
Outdated
Show resolved
Hide resolved
...der-demo/src/main/java/com/huaweicloud/demo/providerimpl/GreetingServiceApacheDubboImpl.java
Outdated
Show resolved
Hide resolved
.../tag-transmission-demo/alibaba-dubbo-provider-demo/src/main/resources/application.properties
Show resolved
Hide resolved
...-intergration-test/src/test/java/com/huaweicloud/intergration/common/utils/RequestUtils.java
Outdated
Show resolved
Hide resolved
...-intergration-test/src/test/java/com/huaweicloud/intergration/common/utils/RequestUtils.java
Outdated
Show resolved
Hide resolved
...emo/httpserver-jetty-demo/src/main/java/com/huaweicloud/demo/jetty/HttpJettyApplication.java
Outdated
Show resolved
Hide resolved
/* | ||
* * Copyright (C) 2023-2023 Huawei Technologies Co., Ltd. All rights reserved. | ||
* * | ||
* * Licensed under the Apache License, Version 2.0 (the "License"); | ||
* * you may not use this file except in compliance with the License. | ||
* * You may obtain a copy of the License at | ||
* * | ||
* * http://www.apache.org/licenses/LICENSE-2.0 | ||
* * | ||
* * Unless required by applicable law or agreed to in writing, software | ||
* * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * See the License for the specific language governing permissions and | ||
* * limitations under the License. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多了一排星号
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
* limitations under the License. | ||
*/ | ||
|
||
package com.huaweicloud.demo; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个package为啥是com.huaweicloud.demo,建议包命名需要符合你的测试内容,避免最后demo这种泛化的名称所有人都使用
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
并且,每个都归属于不同的module,建议包名符合自己的范围
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
9da4515
to
b82f339
Compare
b82f339
to
8c551ff
Compare
* @since 2023-09-08 | ||
**/ | ||
@Service | ||
public class GreetingServiceApacheDubboImpl implements AlibabaGreetingOuterService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
接口名是Alibaba,实现变成Apache,保持一致。如果接口名是alibaba和apache都要实现,那就起一个公共点的名字
/** | ||
* 流量标签的key值 | ||
*/ | ||
public static final String[] TRAFFIC_TAG_KEY = {"id", "dynamic", "x-sermant-test", "tag-sermant"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改成配置文件读取,方便后面修改或新版本有改动
【Fix issue】#1244
[Modification content] Added some demo applications for traffic label transparent transmission, including alibaba dubbo demo, public httpserver demo and jetty server demo, used for traffic label transparent transmission plug-in integration testing
[Use case description] No
[Self-test situation] 1. Local static check passed
[Scope of influence] None