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 import bp as api_bp
|
||||||
from routes.api_test import bp as api_test_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 = 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")
|
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:
|
try:
|
||||||
if op_name == "create":
|
if op_name == "create":
|
||||||
payload = {"serviceId": svc_id, "displayName": display_name, "descr": "autotest"}
|
payload = {"serviceId": svc_id, "displayName": display_name, "descr": ""}
|
||||||
# cfsParams — отдельным шагом, не в POST /instances
|
|
||||||
resp = client.post("/instances", payload)
|
resp = client.post("/instances", payload)
|
||||||
instance_uid = resp.get("instanceUid") or _find_uid(resp) or _uid_from_location(resp.get("_location", ""))
|
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", ""))
|
op_uid = _find_uid(op_resp) or _uid_from_location(op_resp.get("_location", ""))
|
||||||
if op_uid:
|
if op_uid:
|
||||||
for pid, pval in params.items():
|
for pid, pval in params.items():
|
||||||
if pval.strip():
|
client.post("/instanceOperationCfsParams",
|
||||||
client.post("/instanceOperationCfsParams",
|
{"instanceOperationUid": op_uid, "svcOperationCfsParamId": int(pid), "paramValue": str(pval)})
|
||||||
{"instanceOperationUid": op_uid, "svcOperationCfsParamId": int(pid), "paramValue": str(pval)})
|
|
||||||
|
|
||||||
# wait
|
# wait
|
||||||
deadline = time.time() + 300
|
deadline = time.time() + 300
|
||||||
|
|||||||
Reference in New Issue
Block a user