Skip to content

Commit 1fac6ab

Browse files
yuluo-yxtomsun28
andauthored
[e2e] add some configuration args to observation atest running status (apache#2565)
Signed-off-by: yuluo-yx <[email protected]> Co-authored-by: tomsun28 <[email protected]>
1 parent 235df8b commit 1fac6ab

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

.github/workflows/backend-build-test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@ jobs:
7272
sudo docker-compose up --exit-code-from testing --remove-orphans
7373
7474
# upload application logs
75-
- name: Upload logs
75+
- name: Upload logs & API test reports
7676
uses: actions/upload-artifact@v3
7777
if: always()
7878
with:
7979
name: hz-logs-${{ github.run_id }}
80-
path: e2e/logs/
80+
path: |
81+
e2e/logs/
82+
e2e/report/

e2e/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ services:
2525
volumes:
2626
- ./data/:/work/data/
2727
- ./testsuite.yaml:/work/testsuite.yaml
28-
command: atest run -p /work/testsuite.yaml --report md
28+
- ./report/report.md:/report.md
29+
command: atest run -p /work/testsuite.yaml --level warn --thread 3 --report md --report-file /report.md
2930
depends_on:
3031
hertzbeat:
3132
condition: service_healthy

e2e/report/report.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
keep, not delete!

e2e/testsuite.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ items:
5858
}
5959
expect:
6060
statusCode: 409
61-
- name: missing-auth-header
62-
request:
63-
api: /api/monitors
64-
expect:
65-
statusCode: 401
6661
- name: monitorList
6762
request:
6863
api: /api/monitors?pageIndex=0&pageSize=8
@@ -71,7 +66,11 @@ items:
7166
expect:
7267
bodyFieldsExpect:
7368
code: "0"
74-
69+
- name: missing-auth-header
70+
request:
71+
api: /api/monitors
72+
expect:
73+
statusCode: 401
7574
- name: createSitemapMonitor
7675
request:
7776
api: /api/monitor

0 commit comments

Comments
 (0)