fix 真实well数据覆盖
This commit is contained in:
parent
30bb61867a
commit
0a9e7c67b2
@ -537,7 +537,7 @@ class DmsCrudScenarioStage(BaseAPIStage):
|
||||
"request_body": "{{stage_context.list_filter_payload}}"
|
||||
},
|
||||
response_assertions=[validate_resource_details_after_update]
|
||||
),、、
|
||||
),
|
||||
StageStepDefinition(
|
||||
name="Step 5: Delete Resource",
|
||||
endpoint_spec_lookup_key="DELETE",
|
||||
|
||||
@ -10,7 +10,7 @@ import logging
|
||||
# 添加项目根目录到Python路径
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
from ddms_compliance_suite.test_orchestrator import TestOrchestrator
|
||||
from ddms_compliance_suite.test_orchestrator import APITestOrchestrator
|
||||
from ddms_compliance_suite.input_parser.parser import ParsedDMSSpec
|
||||
from custom_stages.dms_crud_scenario_stage import DmsCrudScenarioStage
|
||||
|
||||
@ -89,11 +89,25 @@ def test_well_data_debug():
|
||||
]
|
||||
}
|
||||
|
||||
# 创建DMSEndpoint
|
||||
from ddms_compliance_suite.input_parser.parser import DMSEndpoint
|
||||
|
||||
endpoint = DMSEndpoint(
|
||||
method="POST",
|
||||
path="/api/dms/well_kd_wellbore_ideas01/v1/dr_ach_survey_inc",
|
||||
title="Create dr_ach_survey_inc",
|
||||
request_body=simple_api_spec["dms_api_list"][0]["requestBody"],
|
||||
responses=simple_api_spec["dms_api_list"][0]["responses"],
|
||||
parameters=[],
|
||||
test_mode="scenario_only",
|
||||
model_pk_name="dsid"
|
||||
)
|
||||
|
||||
# 创建ParsedDMSSpec
|
||||
parsed_spec = ParsedDMSSpec(simple_api_spec)
|
||||
parsed_spec = ParsedDMSSpec(endpoints=[endpoint], spec=simple_api_spec)
|
||||
|
||||
# 创建测试编排器
|
||||
orchestrator = TestOrchestrator(
|
||||
orchestrator = APITestOrchestrator(
|
||||
global_api_spec=parsed_spec,
|
||||
base_url="https://www.dev.ideas.cnpc",
|
||||
logger=logger
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user