This is an automated email from the ASF dual-hosted git repository.
gongchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/master by this push:
new 1fac6ab2f [e2e] add some configuration args to observation atest
running status (#2565)
1fac6ab2f is described below
commit 1fac6ab2fa8afe6bc61a3239dc6b9ac1623270bb
Author: YuLuo <[email protected]>
AuthorDate: Wed Aug 21 18:52:01 2024 +0800
[e2e] add some configuration args to observation atest running status
(#2565)
Signed-off-by: yuluo-yx <[email protected]>
Co-authored-by: tomsun28 <[email protected]>
---
.github/workflows/backend-build-test.yml | 6 ++++--
e2e/docker-compose.yml | 3 ++-
e2e/report/report.md | 1 +
e2e/testsuite.yaml | 11 +++++------
4 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/backend-build-test.yml
b/.github/workflows/backend-build-test.yml
index d9f16f5a6..38aaaaf9b 100644
--- a/.github/workflows/backend-build-test.yml
+++ b/.github/workflows/backend-build-test.yml
@@ -72,9 +72,11 @@ jobs:
sudo docker-compose up --exit-code-from testing --remove-orphans
# upload application logs
- - name: Upload logs
+ - name: Upload logs & API test reports
uses: actions/upload-artifact@v3
if: always()
with:
name: hz-logs-${{ github.run_id }}
- path: e2e/logs/
+ path: |
+ e2e/logs/
+ e2e/report/
diff --git a/e2e/docker-compose.yml b/e2e/docker-compose.yml
index a8527fe51..5a000e140 100644
--- a/e2e/docker-compose.yml
+++ b/e2e/docker-compose.yml
@@ -25,7 +25,8 @@ services:
volumes:
- ./data/:/work/data/
- ./testsuite.yaml:/work/testsuite.yaml
- command: atest run -p /work/testsuite.yaml --report md
+ - ./report/report.md:/report.md
+ command: atest run -p /work/testsuite.yaml --level warn --thread 3
--report md --report-file /report.md
depends_on:
hertzbeat:
condition: service_healthy
diff --git a/e2e/report/report.md b/e2e/report/report.md
new file mode 100644
index 000000000..43ed15285
--- /dev/null
+++ b/e2e/report/report.md
@@ -0,0 +1 @@
+keep, not delete!
diff --git a/e2e/testsuite.yaml b/e2e/testsuite.yaml
index e9989083c..f1b219315 100644
--- a/e2e/testsuite.yaml
+++ b/e2e/testsuite.yaml
@@ -58,11 +58,6 @@ items:
}
expect:
statusCode: 409
-- name: missing-auth-header
- request:
- api: /api/monitors
- expect:
- statusCode: 401
- name: monitorList
request:
api: /api/monitors?pageIndex=0&pageSize=8
@@ -71,7 +66,11 @@ items:
expect:
bodyFieldsExpect:
code: "0"
-
+- name: missing-auth-header
+ request:
+ api: /api/monitors
+ expect:
+ statusCode: 401
- name: createSitemapMonitor
request:
api: /api/monitor
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]