File tree Expand file tree Collapse file tree 6 files changed +34
-18
lines changed Expand file tree Collapse file tree 6 files changed +34
-18
lines changed Original file line number Diff line number Diff line change 26
26
27
27
jobs :
28
28
CI :
29
- runs-on : ubuntu-18.04
29
+ runs-on : ubuntu-latest
30
30
timeout-minutes : 180
31
31
strategy :
32
32
fail-fast : true
Original file line number Diff line number Diff line change 35
35
- uses : actions/setup-java@v1
36
36
with :
37
37
java-version : 8
38
- - run : |
39
- docker-compose --env-file ./test/e2e/.env -f ./test/e2e/docker-compose.yml run -d user
40
- docker wait $(docker ps -qa --filter Name=e2e_user)
41
- status="$?"
42
- docker-compose -f ./test/e2e/docker-compose.yml logs
43
- if [ $status -eq 0 ]; then
44
- docker cp "$(docker ps -qa --filter Name=e2e_user):/response" ./response
45
- cat ./response
46
- fi
47
- docker-compose -f ./test/e2e/docker-compose.yml kill
38
+ - name : Run E2E Tests
39
+ uses : apache/skywalking-infra-e2e@cf589b4a0b9f8e6f436f78e9cfd94a1ee5494180
40
+ with :
41
+ e2e-file : test/e2e/e2e.yaml
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ function Tracer:finish()
103
103
if ngx .ctx .exitSpan ~= nil and not ngx .ctx .is_finished then
104
104
local upstream_status = tonumber (ngx .var .upstream_status )
105
105
if upstream_status then
106
- Span .tag (ngx .ctx .exitSpan , ' http.status ' , upstream_status )
106
+ Span .tag (ngx .ctx .exitSpan , ' http.status_code ' , upstream_status )
107
107
end
108
108
Span .finish (ngx .ctx .exitSpan , ngx .now () * 1000 )
109
109
ngx .ctx .exitSpan = nil
@@ -121,7 +121,7 @@ function Tracer:prepareForReport()
121
121
end
122
122
123
123
local ngxstatus = ngx .var .status
124
- Span .tag (entrySpan , ' http.status ' , ngxstatus )
124
+ Span .tag (entrySpan , ' http.status_code ' , ngxstatus )
125
125
if tonumber (ngxstatus ) >= 500 then
126
126
Span .errorOccurred (entrySpan )
127
127
end
Original file line number Diff line number Diff line change
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ # This file is used to show how to write configuration files and can be used to test.
17
+
18
+ setup :
19
+ env : compose
20
+ file : docker-compose.yml
21
+ timeout : 20m
22
+ init-system-environment : .env
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ segmentItems:
68
68
peer : ' e2e-test-with-mock-collector:upstream_ip:port'
69
69
skipAnalysis : false
70
70
tags :
71
- - key : http.status
71
+ - key : http.status_code
72
72
value : ' 200'
73
73
- operationName : /info
74
74
parentSpanId : -1
@@ -86,7 +86,7 @@ segmentItems:
86
86
value : POST
87
87
- key : http.params
88
88
value : ' http://nginx/info'
89
- - key : http.status
89
+ - key : http.status_code
90
90
value : ' 200'
91
91
refs :
92
92
- parentEndpoint : ' POST:/info'
@@ -126,7 +126,7 @@ segmentItems:
126
126
value : GET
127
127
- key : http.params
128
128
value : ' http://nginx/suffix'
129
- - key : http.status
129
+ - key : http.status_code
130
130
value : ' 200'
131
131
- serviceName : e2e-service-provider
132
132
segmentSize : ge 1
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ segmentItems:
31
31
peer : ' e2e-test-with-mock-collector:upstream_ip:port'
32
32
skipAnalysis : false
33
33
tags :
34
- - key : http.status
34
+ - key : http.status_code
35
35
value : ' 200'
36
36
- operationName : /info
37
37
parentSpanId : -1
@@ -49,7 +49,7 @@ segmentItems:
49
49
value : POST
50
50
- key : http.params
51
51
value : ' http://nginx/info'
52
- - key : http.status
52
+ - key : http.status_code
53
53
value : ' 200'
54
54
- serviceName : e2e-service-provider
55
55
segmentSize : ge 1
You can’t perform that action at this time.
0 commit comments