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

Traffic label transparent transmission test part demo #1328

Closed

Conversation

daizhenyu
Copy link
Collaborator

@daizhenyu daizhenyu commented Oct 11, 2023

【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

@daizhenyu daizhenyu added the area/e2e-test Issues or PRs releated to e2e test label Oct 11, 2023
@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (3ebe342) 42.29% compared to head (8c551ff) 42.29%.
Report is 2 commits behind head on develop.

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           
Flag Coverage Δ
unittests 42.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@daizhenyu daizhenyu added this to the v1.2.0 milestone Oct 11, 2023
@luanwenfei-venus luanwenfei-venus removed this from the v1.2.0 milestone Oct 11, 2023
@luanwenfei-venus luanwenfei-venus added the kind/enhancement Issues or PRs releated to sermant enhancement label Oct 11, 2023
Comment on lines 1 to 15
/*
* * 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.
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

多了一排星号

Copy link
Collaborator Author

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;
Copy link
Collaborator

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这种泛化的名称所有人都使用

Copy link
Collaborator

Choose a reason for hiding this comment

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

并且,每个都归属于不同的module,建议包名符合自己的范围

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

已修改

@daizhenyu daizhenyu force-pushed the tag-transmission-demo branch from 9da4515 to b82f339 Compare October 12, 2023 01:52
@daizhenyu daizhenyu force-pushed the tag-transmission-demo branch from b82f339 to 8c551ff Compare October 12, 2023 02:05
* @since 2023-09-08
**/
@Service
public class GreetingServiceApacheDubboImpl implements AlibabaGreetingOuterService {
Copy link
Collaborator

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"};
Copy link
Collaborator

Choose a reason for hiding this comment

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

改成配置文件读取,方便后面修改或新版本有改动

@daizhenyu daizhenyu closed this Oct 12, 2023
@kkf1 kkf1 changed the title 流量标签透传测试部分demo Traffic label transparent transmission test part demo Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/e2e-test Issues or PRs releated to e2e test kind/enhancement Issues or PRs releated to sermant enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants