fix(tests): X-Test-Sub → X-Auth-Token во всех тест-скриптах, cleanup для test59.sh
This commit is contained in:
@@ -1083,7 +1083,7 @@ print("=== Удаляем старые bench-функции ===")
|
||||
for name, _, _ in functions:
|
||||
result = subprocess.run(
|
||||
["curl", "-s", "-X", "DELETE", f"{BASE}/functions/{name}",
|
||||
"-H", f"X-Test-Sub: {SUB}"],
|
||||
"-H", f"X-Auth-Token: {SUB}"],
|
||||
capture_output=True, text=True
|
||||
)
|
||||
print(f" DELETE {name}: {result.stdout.strip()[:80]}")
|
||||
@@ -1094,7 +1094,7 @@ for name, lang, code in functions:
|
||||
size_kb = len(code) / 1024
|
||||
result = subprocess.run(
|
||||
["curl", "-s", "-X", "POST", f"{BASE}/functions",
|
||||
"-H", f"X-Test-Sub: {SUB}", "-H", "Content-Type: application/json",
|
||||
"-H", f"X-Auth-Token: {SUB}", "-H", "Content-Type: application/json",
|
||||
"-d", payload],
|
||||
capture_output=True, text=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user