Skip to content

Commit 6862576

Browse files
committed
Fix e2e with latest query protocol and cli.
1 parent 2dd4765 commit 6862576

File tree

8 files changed

+46
-20
lines changed

8 files changed

+46
-20
lines changed

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ jobs:
6060
with:
6161
go-version: '1.18'
6262
- name: Run E2E Tests
63-
uses: apache/skywalking-infra-e2e@cf589b4a0b9f8e6f436f78e9cfd94a1ee5494180
63+
uses: apache/skywalking-infra-e2e@7e4b5b68716fdb7b79b21fa8908f9db497e1b115
6464
with:
6565
e2e-file: ${{ matrix.case.path }}

test/e2e/case/expected/event-list.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ events:
3030
{{- end }}
3131
starttime: {{ gt .starttime 0 }}
3232
endtime: {{ gt .endtime 0 }}
33-
{{- end }}
34-
total: {{ gt .total 0 }}
33+
layer: "GENERAL"
34+
{{- end }}

test/e2e/case/expected/logs-list.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ logs:
3636
value: {{ notEmpty .value }}
3737
{{- end }}
3838
{{- end }}
39-
total: {{ gt .total 0 }}
39+
debuggingtrace: null
40+
errorreason: null

test/e2e/case/expected/metrics-has-value.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
{{- contains . }}
16+
{{- contains . }}
1717
- key: {{ notEmpty .key }}
18-
value: {{ ge .value 0 }}
18+
value:
19+
value: 0
20+
isemptyvalue: true
1921
- key: {{ notEmpty .key }}
20-
value: {{ ge .value 1 }}
21-
{{- end }}
22+
value:
23+
value: {{ ge .value.value 1 }}
24+
isemptyvalue: false
25+
{{- end }}

test/e2e/case/expected/service.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,28 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
{{- contains . }}
1617
- id: {{ b64enc "e2e-service-provider" }}.1
1718
name: e2e-service-provider
1819
group: ""
20+
shortname: e2e-service-provider
21+
normal: true
22+
layers:
23+
- SO11Y_JAVA_AGENT
24+
- GENERAL
1925
- id: {{ b64enc "e2e-service-consumer" }}.1
2026
name: e2e-service-consumer
21-
group: ""
27+
group: ""
28+
shortname: e2e-service-consumer
29+
normal: true
30+
layers:
31+
- SO11Y_JAVA_AGENT
32+
- GENERAL
33+
- id: {{ b64enc "localhost:-1" }}.0
34+
name: localhost:-1
35+
group: ""
36+
shortname: localhost:-1
37+
normal: false
38+
layers:
39+
- VIRTUAL_DATABASE
40+
{{- end }}

test/e2e/case/expected/trace-info-detail.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
debuggingtrace: null
1617
spans:
1718
{{- contains .spans}}
1819
- traceid: {{ notEmpty .traceid }}
@@ -46,4 +47,5 @@ spans:
4647
value: '200'
4748
{{- end }}
4849
logs: []
50+
attachedevents: []
4951
{{- end }}

test/e2e/case/expected/trace-users-detail.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
debuggingtrace: null
1617
spans:
1718
{{- contains .spans}}
1819
- traceid: {{ notEmpty .traceid }}
@@ -40,4 +41,5 @@ spans:
4041
value: '200'
4142
{{- end }}
4243
logs: []
44+
attachedevents: []
4345
{{- end }}

test/e2e/case/expected/traces-list.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
debuggingtrace: null
1617
traces:
1718
{{- contains .traces }}
18-
- segmentid: {{ notEmpty .segmentid }}
19-
endpointnames:
20-
{{- contains .endpointnames }}
21-
- POST:/info
22-
{{- end }}
23-
duration: {{ ge .duration 0 }}
24-
start: "{{ notEmpty .start}}"
25-
iserror: false
26-
traceids:
27-
- {{ (index .traceids 0) }}
19+
- segmentid: {{ notEmpty .segmentid }}
20+
endpointnames:
21+
- POST:/info
22+
duration: {{ ge .duration 0 }}
23+
start: "{{ notEmpty .start}}"
24+
iserror: false
25+
traceids:
26+
- {{ index .traceids 0 }}
2827
{{- end }}
29-
total: {{ gt .total 0 }}

0 commit comments

Comments
 (0)