Match HAR exactly: empty descr, all params, no filter, v1.0.30
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ from routes.main import bp as main_bp
|
||||
from routes.api import bp as api_bp
|
||||
from routes.api_test import bp as api_test_bp
|
||||
|
||||
VERSION = "1.0.29"
|
||||
VERSION = "1.0.30"
|
||||
|
||||
app = Flask(__name__, template_folder="templates", static_folder="static")
|
||||
app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc")
|
||||
|
||||
@@ -90,8 +90,7 @@ def api_test():
|
||||
|
||||
try:
|
||||
if op_name == "create":
|
||||
payload = {"serviceId": svc_id, "displayName": display_name, "descr": "autotest"}
|
||||
# cfsParams — отдельным шагом, не в POST /instances
|
||||
payload = {"serviceId": svc_id, "displayName": display_name, "descr": ""}
|
||||
resp = client.post("/instances", payload)
|
||||
instance_uid = resp.get("instanceUid") or _find_uid(resp) or _uid_from_location(resp.get("_location", ""))
|
||||
|
||||
@@ -102,9 +101,8 @@ def api_test():
|
||||
op_uid = _find_uid(op_resp) or _uid_from_location(op_resp.get("_location", ""))
|
||||
if op_uid:
|
||||
for pid, pval in params.items():
|
||||
if pval.strip():
|
||||
client.post("/instanceOperationCfsParams",
|
||||
{"instanceOperationUid": op_uid, "svcOperationCfsParamId": int(pid), "paramValue": str(pval)})
|
||||
client.post("/instanceOperationCfsParams",
|
||||
{"instanceOperationUid": op_uid, "svcOperationCfsParamId": int(pid), "paramValue": str(pval)})
|
||||
|
||||
# wait
|
||||
deadline = time.time() + 300
|
||||
|
||||
Reference in New Issue
Block a user