修改了测试严格程度,高于指定严格程度的用例才影响api是否通过
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -6,7 +6,7 @@ class HTTPSMandatoryCase(BaseAPITestCase):
|
||||
id = "TC-SECURITY-001"
|
||||
name = "HTTPS 协议强制性检查"
|
||||
description = "验证API端点是否通过HTTPS提供服务,以及HTTP请求是否被拒绝或重定向到HTTPS。"
|
||||
severity = TestSeverity.CRITICAL
|
||||
severity = TestSeverity.HIGH
|
||||
tags = ["security", "https", "transport-security"]
|
||||
execution_order = 120
|
||||
|
||||
|
||||
Binary file not shown.
@@ -10,7 +10,7 @@ class RequiredHeadersSchemaCheck(BaseAPITestCase):
|
||||
id = "TC-HEADER-001"
|
||||
name = "必需请求头Schema验证"
|
||||
description = "验证API规范中是否包含必需的请求头(X-Tenant-ID、X-Data-Domain和Authorization)"
|
||||
severity = TestSeverity.CRITICAL
|
||||
severity = TestSeverity.HIGH
|
||||
tags = ["headers", "schema", "compliance"]
|
||||
execution_order = 0 # 优先执行
|
||||
# is_critical_setup_test = True
|
||||
|
||||
Reference in New Issue
Block a user