Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
b48b55bd
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
b48b55bd
编写于
10月 01, 2021
作者:
K
kezhenxu94
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix wrong rules for checking lists in E2E
上级
ebd040eb
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
74 addition
and
199 deletion
+74
-199
test/e2e-v2/cases/satellite/native-protocols/docker-compose.yml
...2e-v2/cases/satellite/native-protocols/docker-compose.yml
+1
-1
test/e2e-v2/cases/satellite/native-protocols/expected/dependency-services.yml
...tellite/native-protocols/expected/dependency-services.yml
+2
-38
test/e2e-v2/cases/satellite/native-protocols/expected/event-list.yml
.../cases/satellite/native-protocols/expected/event-list.yml
+16
-9
test/e2e-v2/cases/satellite/native-protocols/expected/logs-list.yml
...2/cases/satellite/native-protocols/expected/logs-list.yml
+3
-9
test/e2e-v2/cases/satellite/native-protocols/expected/metrics-has-value.yml
...satellite/native-protocols/expected/metrics-has-value.yml
+1
-3
test/e2e-v2/cases/satellite/native-protocols/expected/profile-list.yml
...ases/satellite/native-protocols/expected/profile-list.yml
+3
-3
test/e2e-v2/cases/satellite/native-protocols/expected/profile-segment-analyze.yml
...ite/native-protocols/expected/profile-segment-analyze.yml
+2
-14
test/e2e-v2/cases/satellite/native-protocols/expected/profile-segment-detail.yml
...lite/native-protocols/expected/profile-segment-detail.yml
+3
-7
test/e2e-v2/cases/satellite/native-protocols/expected/profile-segment-list.yml
...ellite/native-protocols/expected/profile-segment-list.yml
+3
-3
test/e2e-v2/cases/satellite/native-protocols/expected/service-endpoint.yml
.../satellite/native-protocols/expected/service-endpoint.yml
+1
-3
test/e2e-v2/cases/satellite/native-protocols/expected/service-instance.yml
.../satellite/native-protocols/expected/service-instance.yml
+3
-17
test/e2e-v2/cases/satellite/native-protocols/expected/service.yml
...-v2/cases/satellite/native-protocols/expected/service.yml
+1
-5
test/e2e-v2/cases/satellite/native-protocols/expected/trace-info-detail.yml
...satellite/native-protocols/expected/trace-info-detail.yml
+4
-8
test/e2e-v2/cases/satellite/native-protocols/expected/trace-users-detail.yml
...atellite/native-protocols/expected/trace-users-detail.yml
+3
-7
test/e2e-v2/cases/satellite/native-protocols/expected/traces-list.yml
...cases/satellite/native-protocols/expected/traces-list.yml
+8
-10
test/e2e-v2/cases/simple/auth/e2e.yaml
test/e2e-v2/cases/simple/auth/e2e.yaml
+1
-1
test/e2e-v2/cases/simple/expected/dependency-services.yml
test/e2e-v2/cases/simple/expected/dependency-services.yml
+2
-16
test/e2e-v2/cases/simple/expected/metrics-has-value.yml
test/e2e-v2/cases/simple/expected/metrics-has-value.yml
+1
-3
test/e2e-v2/cases/simple/expected/service-endpoint.yml
test/e2e-v2/cases/simple/expected/service-endpoint.yml
+1
-3
test/e2e-v2/cases/simple/expected/service-instance.yml
test/e2e-v2/cases/simple/expected/service-instance.yml
+3
-17
test/e2e-v2/cases/simple/expected/service.yml
test/e2e-v2/cases/simple/expected/service.yml
+1
-5
test/e2e-v2/cases/simple/expected/trace-info-detail.yml
test/e2e-v2/cases/simple/expected/trace-info-detail.yml
+3
-7
test/e2e-v2/cases/simple/expected/traces-list.yml
test/e2e-v2/cases/simple/expected/traces-list.yml
+8
-10
未找到文件。
test/e2e-v2/cases/satellite/native-protocols/docker-compose.yml
浏览文件 @
b48b55bd
...
...
@@ -108,4 +108,4 @@ services:
condition
:
service_healthy
networks
:
e2e
:
\ No newline at end of file
e2e
:
test/e2e-v2/cases/satellite/native-protocols/expected/dependency-services.yml
浏览文件 @
b48b55bd
...
...
@@ -14,35 +14,18 @@
# limitations under the License.
nodes
:
{{
- range .nodes
}}
{{
- if eq .name "User"
}}
-
id
:
{{
b64enc "User"
}}
.0
name
:
User
type
:
USER
isreal
:
false
{{
- end
}}
{{
- if eq .name "e2e-service-provider"
}}
{{
- contains .nodes
}}
-
id
:
{{
b64enc "e2e-service-provider"
}}
.1
name
:
e2e-service-provider
type
:
Tomcat
isreal
:
true
{{
- end
}}
{{
- if eq .name "e2e-service-consumer"
}}
-
id
:
{{
b64enc "e2e-service-consumer"
}}
.1
name
:
e2e-service-consumer
type
:
Tomcat
isreal
:
true
{{
- end
}}
{{
- if eq .name "localhost
:
-1"
}}
-
id
:
{{
b64enc "localhost
:
-1"
}}
.0
name
:
localhost:-1
type
:
H2
isreal
:
false
{{
- end
}}
{{
- end
}}
calls
:
{{
- range .calls
}}
{{
- if eq .source "ZTJlLXNlcnZpY2UtY29uc3VtZXI=.1"
}}
{{
- contains .calls
}}
-
source
:
{{
b64enc "e2e-service-consumer"
}}
.1
sourcecomponents
:
[]
target
:
{{
b64enc "e2e-service-provider"
}}
.1
...
...
@@ -52,22 +35,3 @@ calls:
-
CLIENT
-
SERVER
{{
- end
}}
{{
- if eq .source "ZTJlLXNlcnZpY2UtcHJvdmlkZXI=.1"
}}
-
source
:
{{
b64enc "e2e-service-provider"
}}
.1
sourcecomponents
:
[]
target
:
{{
b64enc "localhost
:
-1"
}}
.0
targetcomponents
:
[]
id
:
{{
b64enc "e2e-service-provider"
}}
.1-{{ b64enc "localhost:-1"}}.0
detectpoints
:
-
CLIENT
{{
- end
}}
{{
- if eq .source "VXNlcg==.0"
}}
-
source
:
{{
b64enc "User"
}}
.0
sourcecomponents
:
[]
target
:
{{
b64enc "e2e-service-consumer"
}}
.1
targetcomponents
:
[]
id
:
{{
b64enc "User"
}}
.0-{{ b64enc "e2e-service-consumer"}}.1
detectpoints
:
-
SERVER
{{
- end
}}
{{
- end
}}
test/e2e-v2/cases/satellite/native-protocols/expected/event-list.yml
浏览文件 @
b48b55bd
...
...
@@ -14,29 +14,36 @@
# limitations under the License.
events
:
{{
-
range
.events
}}
{{
-
contains
.events
}}
-
uuid
:
{{
notEmpty .uuid
}}
source
:
{{
- if eq .source.service "e2e-service-provider"
}}
service
:
e2e-service-provider
serviceinstance
:
provider1
{{
- end
}}
{{
- if eq .source.service "e2e-service-consumer"
}}
endpoint
:
"
"
name
:
Start
type
:
Normal
message
:
Start Java Application
parameters
:
{{
- contains .parameters
}}
-
key
:
OPTS
value
:
{{
notEmpty .value
}}
{{
- end
}}
starttime
:
{{
gt .starttime 0
}}
endtime
:
{{
gt .endtime 0
}}
-
uuid
:
{{
notEmpty .uuid
}}
source
:
service
:
e2e-service-consumer
serviceinstance
:
consumer1
{{
- end
}}
endpoint
:
"
"
name
:
Start
type
:
Normal
message
:
Start Java Application
parameters
:
{{
- range .parameters
}}
{{
- if eq .key "OPTS"
}}
{{
- contains .parameters
}}
-
key
:
OPTS
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- end
}}
starttime
:
{{
gt .starttime 0
}}
endtime
:
{{
gt .endtime 0
}}
{{
- end
}}
total
:
{{
gt .total 0
}}
\ No newline at end of file
total
:
{{
gt .total 0
}}
test/e2e-v2/cases/satellite/native-protocols/expected/logs-list.yml
浏览文件 @
b48b55bd
...
...
@@ -14,7 +14,7 @@
# limitations under the License.
logs
:
{{
-
range
.logs
}}
{{
-
contains
.logs
}}
-
servicename
:
e2e-service-provider
serviceid
:
{{
b64enc "e2e-service-provider"
}}
.1
serviceinstancename
:
provider1
...
...
@@ -27,19 +27,13 @@ logs:
content
:
|
{{ notEmpty .content }}
tags
:
{{
- range .tags
}}
{{
- if eq .key "level"
}}
{{
- contains .tags
}}
-
key
:
level
value
:
INFO
{{
- end
}}
{{
- if eq .key "logger"
}}
-
key
:
logger
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- if eq .key "thread"
}}
-
key
:
thread
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
total
:
{{
gt .total 0
}}
\ No newline at end of file
total
:
{{
gt .total 0
}}
test/e2e-v2/cases/satellite/native-protocols/expected/metrics-has-value.yml
浏览文件 @
b48b55bd
...
...
@@ -14,8 +14,6 @@
# limitations under the License.
{{
- contains .
}}
-
key
:
{{
notEmpty .key
}}
value
:
{{
ge .value 0
}}
-
key
:
{{
notEmpty .key
}}
value
:
{{
ge .value 1
}}
{{
- end
}}
\ No newline at end of file
{{
- end
}}
test/e2e-v2/cases/satellite/native-protocols/expected/profile-list.yml
浏览文件 @
b48b55bd
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
{{
-
range
.
}}
{{
-
contains
.
}}
-
id
:
{{
notEmpty .id
}}
serviceid
:
{{
b64enc "e2e-service-provider"
}}
.1
servicename
:
"
"
...
...
@@ -24,11 +24,11 @@
dumpperiod
:
10
maxsamplingcount
:
9
logs
:
{{
-
range
.logs
}}
{{
-
contains
.logs
}}
-
id
:
{{
notEmpty .id
}}
instanceid
:
{{
b64enc "e2e-service-provider"
}}
.1_{{ b64enc "provider1" }}
operationtype
:
{{
notEmpty .operationtype
}}
instancename
:
"
"
operationtime
:
{{
gt .operationtime 0
}}
{{
- end
}}
{{
- end
}}
\ No newline at end of file
{{
- end
}}
test/e2e-v2/cases/satellite/native-protocols/expected/profile-segment-analyze.yml
浏览文件 @
b48b55bd
...
...
@@ -15,26 +15,14 @@
tip
:
null
trees
:
{{
-
range
.trees
}}
{{
-
contains
.trees
}}
-
elements
:
{{
- contains .elements
}}
-
id
:
"
{{
notEmpty
.id
}}"
parentid
:
"
{{
notEmpty
.parentid
}}"
codesignature
:
{{
- if eq .codesignature "java.lang.Thread.sleep
:
-2"
}}
java.lang.Thread.sleep:-2
{{- end }}
codesignature
:
java.lang.Thread.sleep:-2
duration
:
{{
gt .duration 0
}}
durationchildexcluded
:
{{
gt .durationchildexcluded 0
}}
count
:
{{
gt .count 0
}}
-
id
:
"
{{
notEmpty
.id
}}"
parentid
:
"
{{
notEmpty
.parentid
}}"
codesignature
:
{{
- if ne .codesignature "java.lang.Thread.sleep
:
-2"
}}
{{
notEmpty .codesignature
}}
{{
- end
}}
duration
:
{{
ge .duration 0
}}
durationchildexcluded
:
{{
ge .durationchildexcluded 0
}}
count
:
{{
gt .count 0
}}
{{
- end
}}
{{
- end
}}
test/e2e-v2/cases/satellite/native-protocols/expected/profile-segment-detail.yml
浏览文件 @
b48b55bd
...
...
@@ -14,7 +14,7 @@
# limitations under the License.
spans
:
{{
-
range
.spans
}}
{{
-
contains
.spans
}}
-
spanid
:
0
parentspanid
:
-1
servicecode
:
e2e-service-provider
...
...
@@ -28,15 +28,11 @@ spans:
iserror
:
false
layer
:
Http
tags
:
{{
- range .tags
}}
{{
- if eq .key "url"
}}
{{
- contains .tags
}}
-
key
:
url
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- if eq .key "http.method"
}}
-
key
:
http.method
value
:
POST
{{
- end
}}
{{
- end
}}
logs
:
[]
{{
- end
}}
\ No newline at end of file
{{
- end
}}
test/e2e-v2/cases/satellite/native-protocols/expected/profile-segment-list.yml
浏览文件 @
b48b55bd
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
{{
-
range
.
}}
{{
-
contains
.
}}
-
segmentid
:
{{
notEmpty .segmentid
}}
endpointnames
:
-
POST:/info
...
...
@@ -21,7 +21,7 @@
start
:
"
{{
notEmpty
.start
}}"
iserror
:
false
traceids
:
{{
-
range
.traceids
}}
{{
-
contains
.traceids
}}
-
{{
notEmpty .
}}
{{
- end
}}
{{
- end
}}
\ No newline at end of file
{{
- end
}}
test/e2e-v2/cases/satellite/native-protocols/expected/service-endpoint.yml
浏览文件 @
b48b55bd
...
...
@@ -13,9 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
{{
- range .
}}
{{
- if eq .name "POST
:
/info"
}}
{{
- contains .
}}
-
id
:
{{
b64enc "e2e-service-provider"
}}
.1_{{ b64enc "POST:/info" }}
name
:
POST:/info
{{
- end
}}
{{
- end
}}
\ No newline at end of file
test/e2e-v2/cases/satellite/native-protocols/expected/service-instance.yml
浏览文件 @
b48b55bd
...
...
@@ -15,40 +15,26 @@
# specific language governing permissions and limitations
# under the License.
{{
-
range
.
}}
{{
-
contains
.
}}
-
id
:
{{
b64enc "e2e-service-provider"
}}
.1_{{ b64enc "provider1" }}
name
:
{{
notEmpty .name
}}
attributes
:
{{
- range .attributes
}}
{{
- if eq .name "OS Name"
}}
{{
- contains .attributes
}}
-
name
:
OS Name
value
:
Linux
{{
- end
}}
{{
- if eq .name "hostname"
}}
-
name
:
hostname
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- if eq .name "Process No."
}}
-
name
:
Process No.
value
:
"
1"
{{
- end
}}
{{
- if eq .name "Start Time"
}}
-
name
:
Start Time
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- if eq .name "JVM Arguments"
}}
-
name
:
JVM Arguments
value
:
'
{{
notEmpty
.value
}}'
{{
- end
}}
{{
- if eq .name "Jar Dependencies"
}}
-
name
:
Jar Dependencies
value
:
'
{{
notEmpty
.value
}}'
{{
- end
}}
{{
- if eq .name "ipv4s"
}}
-
name
:
ipv4s
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- end
}}
language
:
JAVA
instanceuuid
:
{{
b64enc "e2e-service-provider"
}}
.1_{{ b64enc "provider1" }}
{{
- end
}}
\ No newline at end of file
{{
- end
}}
test/e2e-v2/cases/satellite/native-protocols/expected/service.yml
浏览文件 @
b48b55bd
...
...
@@ -13,15 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
{{
- range .
}}
{{
- if eq .name "e2e-service-provider"
}}
{{
- contains .
}}
-
id
:
{{
b64enc "e2e-service-provider"
}}
.1
name
:
e2e-service-provider
group
:
"
"
{{
- end
}}
{{
- if eq .name "e2e-service-consumer"
}}
-
id
:
{{
b64enc "e2e-service-consumer"
}}
.1
name
:
e2e-service-consumer
group
:
"
"
{{
- end
}}
{{
- end
}}
\ No newline at end of file
test/e2e-v2/cases/satellite/native-protocols/expected/trace-info-detail.yml
浏览文件 @
b48b55bd
...
...
@@ -14,14 +14,14 @@
# limitations under the License.
spans
:
{{
-
range .spans
}}
{{
-
contains .spans
}}
-
traceid
:
{{
notEmpty .traceid
}}
segmentid
:
{{
notEmpty .segmentid
}}
spanid
:
{{
.spanid
}}
parentspanid
:
{{
.parentspanid
}}
refs
:
{{
- if eq .servicecode "e2e-service-provider"
}}
{{
-
range
.refs
}}
{{
-
contains
.refs
}}
-
traceid
:
{{
notEmpty .traceid
}}
parentsegmentid
:
{{
notEmpty .parentsegmentid
}}
parentspanid
:
1
...
...
@@ -58,15 +58,11 @@ spans:
iserror
:
false
layer
:
Http
tags
:
{{
- range .tags
}}
{{
- if eq .key "http.method"
}}
{{
- contains .tags
}}
-
key
:
http.method
value
:
POST
{{
- end
}}
{{
- if eq .key "url"
}}
-
key
:
url
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- end
}}
logs
:
[]
{{
- end
}}
\ No newline at end of file
{{
- end
}}
test/e2e-v2/cases/satellite/native-protocols/expected/trace-users-detail.yml
浏览文件 @
b48b55bd
...
...
@@ -14,7 +14,7 @@
# limitations under the License.
spans
:
{{
-
range .spans
}}
{{
-
contains .spans
}}
-
traceid
:
{{
notEmpty .traceid
}}
segmentid
:
{{
notEmpty .segmentid
}}
spanid
:
0
...
...
@@ -31,15 +31,11 @@ spans:
iserror
:
false
layer
:
Http
tags
:
{{
- range .tags
}}
{{
- if eq .key "http.method"
}}
{{
- contains .tags
}}
-
key
:
http.method
value
:
POST
{{
- end
}}
{{
- if eq .key "url"
}}
-
key
:
url
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- end
}}
logs
:
[]
{{
- end
}}
\ No newline at end of file
{{
- end
}}
test/e2e-v2/cases/satellite/native-protocols/expected/traces-list.yml
浏览文件 @
b48b55bd
...
...
@@ -14,23 +14,21 @@
# limitations under the License.
traces
:
{{
-
range
.traces
}}
{{
-
contains
.traces
}}
-
segmentid
:
{{
notEmpty .segmentid
}}
endpointnames
:
{{
- if eq (index .endpointnames 0) "H2/JDBI/Statement/execute"
}}
-
H2/JDBI/Statement/execute
{{
- end
}}
{{
- if eq (index .endpointnames 0) "H2/JDBI/Statement/executeQuery"
}}
{{
- else if eq (index .endpointnames 0) "H2/JDBI/Statement/executeQuery"
}}
-
H2/JDBI/Statement/executeQuery
{{
- end
}}
{{
- if eq (index .endpointnames 0) "H2/JDBI/PreparedStatement/executeQuery"
}}
{{
- else if eq (index .endpointnames 0) "H2/JDBI/PreparedStatement/executeQuery"
}}
-
H2/JDBI/PreparedStatement/executeQuery
{{
- end
}}
{{
- if eq (index .endpointnames 0) "POST
:
/info"
}}
{{
- else if eq (index .endpointnames 0) "POST
:
/info"
}}
-
POST:/info
{{
- end
}}
{{
- if eq (index .endpointnames 0) "POST
:
/users"
}}
{{
- else if eq (index .endpointnames 0) "POST
:
/users"
}}
-
POST:/users
{{
- else
}}
-
Unexpected
{{
- end
}}
duration
:
{{
ge .duration 0
}}
start
:
"
{{
notEmpty
.start}}"
...
...
@@ -38,4 +36,4 @@ traces:
traceids
:
-
{{
(index .traceids 0)
}}
{{
- end
}}
total
:
{{
gt .total 0
}}
\ No newline at end of file
total
:
{{
gt .total 0
}}
test/e2e-v2/cases/simple/auth/e2e.yaml
浏览文件 @
b48b55bd
...
...
@@ -72,4 +72,4 @@ verify:
expected
:
../expected/traces-list.yml
# trace detail
-
query
:
swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql trace $(swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql trace ls|grep -A 5 '/info'|tail -n1|awk -F ' ' '{print $2}')
expected
:
../expected/trace-info-detail.yml
\ No newline at end of file
expected
:
../expected/trace-info-detail.yml
test/e2e-v2/cases/simple/expected/dependency-services.yml
浏览文件 @
b48b55bd
...
...
@@ -14,35 +14,26 @@
# limitations under the License.
nodes
:
{{
- range .nodes
}}
{{
- if eq .name "User"
}}
{{
- contains .nodes
}}
-
id
:
{{
b64enc "User"
}}
.0
name
:
User
type
:
USER
isreal
:
false
{{
- end
}}
{{
- if eq .name "e2e-service-provider"
}}
-
id
:
{{
b64enc "e2e-service-provider"
}}
.1
name
:
e2e-service-provider
type
:
Tomcat
isreal
:
true
{{
- end
}}
{{
- if eq .name "e2e-service-consumer"
}}
-
id
:
{{
b64enc "e2e-service-consumer"
}}
.1
name
:
e2e-service-consumer
type
:
Tomcat
isreal
:
true
{{
- end
}}
{{
- if eq .name "localhost
:
-1"
}}
-
id
:
{{
b64enc "localhost
:
-1"
}}
.0
name
:
localhost:-1
type
:
H2
isreal
:
false
{{
- end
}}
{{
- end
}}
calls
:
{{
- range .calls
}}
{{
- if eq .source "ZTJlLXNlcnZpY2UtY29uc3VtZXI=.1"
}}
{{
- contains .calls
}}
-
source
:
{{
b64enc "e2e-service-consumer"
}}
.1
sourcecomponents
:
[]
target
:
{{
b64enc "e2e-service-provider"
}}
.1
...
...
@@ -51,8 +42,6 @@ calls:
detectpoints
:
-
CLIENT
-
SERVER
{{
- end
}}
{{
- if eq .source "ZTJlLXNlcnZpY2UtcHJvdmlkZXI=.1"
}}
-
source
:
{{
b64enc "e2e-service-provider"
}}
.1
sourcecomponents
:
[]
target
:
{{
b64enc "localhost
:
-1"
}}
.0
...
...
@@ -60,8 +49,6 @@ calls:
id
:
{{
b64enc "e2e-service-provider"
}}
.1-{{ b64enc "localhost:-1"}}.0
detectpoints
:
-
CLIENT
{{
- end
}}
{{
- if eq .source "VXNlcg==.0"
}}
-
source
:
{{
b64enc "User"
}}
.0
sourcecomponents
:
[]
target
:
{{
b64enc "e2e-service-consumer"
}}
.1
...
...
@@ -70,4 +57,3 @@ calls:
detectpoints
:
-
SERVER
{{
- end
}}
{{
- end
}}
test/e2e-v2/cases/simple/expected/metrics-has-value.yml
浏览文件 @
b48b55bd
...
...
@@ -14,8 +14,6 @@
# limitations under the License.
{{
- contains .
}}
-
key
:
{{
notEmpty .key
}}
value
:
{{
ge .value 0
}}
-
key
:
{{
notEmpty .key
}}
value
:
{{
ge .value 1
}}
{{
- end
}}
\ No newline at end of file
{{
- end
}}
test/e2e-v2/cases/simple/expected/service-endpoint.yml
浏览文件 @
b48b55bd
...
...
@@ -13,9 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
{{
- range .
}}
{{
- if eq .name "POST
:
/info"
}}
{{
- contains .
}}
-
id
:
{{
b64enc "e2e-service-provider"
}}
.1_{{ b64enc "POST:/info" }}
name
:
POST:/info
{{
- end
}}
{{
- end
}}
\ No newline at end of file
test/e2e-v2/cases/simple/expected/service-instance.yml
浏览文件 @
b48b55bd
...
...
@@ -15,40 +15,26 @@
# specific language governing permissions and limitations
# under the License.
{{
-
range .
}}
{{
-
contains .
}}
-
id
:
{{
b64enc "e2e-service-provider"
}}
.1_{{ b64enc "provider1" }}
name
:
{{
notEmpty .name
}}
attributes
:
{{
- range .attributes
}}
{{
- if eq .name "OS Name"
}}
{{
- contains .attributes
}}
-
name
:
OS Name
value
:
Linux
{{
- end
}}
{{
- if eq .name "hostname"
}}
-
name
:
hostname
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- if eq .name "Process No."
}}
-
name
:
Process No.
value
:
"
1"
{{
- end
}}
{{
- if eq .name "Start Time"
}}
-
name
:
Start Time
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- if eq .name "JVM Arguments"
}}
-
name
:
JVM Arguments
value
:
'
{{
notEmpty
.value
}}'
{{
- end
}}
{{
- if eq .name "Jar Dependencies"
}}
-
name
:
Jar Dependencies
value
:
'
{{
notEmpty
.value
}}'
{{
- end
}}
{{
- if eq .name "ipv4s"
}}
-
name
:
ipv4s
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- end
}}
language
:
JAVA
instanceuuid
:
{{
b64enc "e2e-service-provider"
}}
.1_{{ b64enc "provider1" }}
{{
- end
}}
\ No newline at end of file
{{
- end
}}
test/e2e-v2/cases/simple/expected/service.yml
浏览文件 @
b48b55bd
...
...
@@ -13,15 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
{{
- range .
}}
{{
- if eq .name "e2e-service-provider"
}}
{{
- contains .
}}
-
id
:
{{
b64enc "e2e-service-provider"
}}
.1
name
:
e2e-service-provider
group
:
"
"
{{
- end
}}
{{
- if eq .name "e2e-service-consumer"
}}
-
id
:
{{
b64enc "e2e-service-consumer"
}}
.1
name
:
e2e-service-consumer
group
:
"
"
{{
- end
}}
{{
- end
}}
\ No newline at end of file
test/e2e-v2/cases/simple/expected/trace-info-detail.yml
浏览文件 @
b48b55bd
...
...
@@ -14,7 +14,7 @@
# limitations under the License.
spans
:
{{
-
range
.spans
}}
{{
-
contains
.spans
}}
-
traceid
:
{{
notEmpty .traceid
}}
segmentid
:
{{
notEmpty .segmentid
}}
spanid
:
{{
.spanid
}}
...
...
@@ -58,15 +58,11 @@ spans:
iserror
:
false
layer
:
Http
tags
:
{{
- range .tags
}}
{{
- if eq .key "http.method"
}}
{{
- contains .tags
}}
-
key
:
http.method
value
:
POST
{{
- end
}}
{{
- if eq .key "url"
}}
-
key
:
url
value
:
{{
notEmpty .value
}}
{{
- end
}}
{{
- end
}}
logs
:
[]
{{
- end
}}
\ No newline at end of file
{{
- end
}}
test/e2e-v2/cases/simple/expected/traces-list.yml
浏览文件 @
b48b55bd
...
...
@@ -14,23 +14,21 @@
# limitations under the License.
traces
:
{{
-
range
.traces
}}
{{
-
contains
.traces
}}
-
segmentid
:
{{
notEmpty .segmentid
}}
endpointnames
:
{{
- if eq (index .endpointnames 0) "H2/JDBI/Statement/execute"
}}
-
H2/JDBI/Statement/execute
{{
- end
}}
{{
- if eq (index .endpointnames 0) "H2/JDBI/Statement/executeQuery"
}}
{{
- else if eq (index .endpointnames 0) "H2/JDBI/Statement/executeQuery"
}}
-
H2/JDBI/Statement/executeQuery
{{
- end
}}
{{
- if eq (index .endpointnames 0) "H2/JDBI/PreparedStatement/executeQuery"
}}
{{
- else if eq (index .endpointnames 0) "H2/JDBI/PreparedStatement/executeQuery"
}}
-
H2/JDBI/PreparedStatement/executeQuery
{{
- end
}}
{{
- if eq (index .endpointnames 0) "POST
:
/info"
}}
{{
- else if eq (index .endpointnames 0) "POST
:
/info"
}}
-
POST:/info
{{
- end
}}
{{
- if eq (index .endpointnames 0) "POST
:
/users"
}}
{{
- else if eq (index .endpointnames 0) "POST
:
/users"
}}
-
POST:/users
{{
- else
}}
-
Unexpected endpoint name
{{
- end
}}
duration
:
{{
ge .duration 0
}}
start
:
"
{{
notEmpty
.start}}"
...
...
@@ -38,4 +36,4 @@ traces:
traceids
:
-
{{
(index .traceids 0)
}}
{{
- end
}}
total
:
{{
gt .total 0
}}
\ No newline at end of file
total
:
{{
gt .total 0
}}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录