refactor: перемещены все тестовые скрипты в scripts/
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
BASE="https://fission.kube5s.ru/console/api"
|
||||
NAME59=$(python3 -c "print('a'*59)")
|
||||
echo "Name len: ${#NAME59}"
|
||||
echo "Pkg name would be: ${NAME59}-pkg (len=$(python3 -c "print(59+4)"))"
|
||||
curl -s -w "\nHTTP:%{http_code}" -X POST "${BASE}/functions" \
|
||||
-H "X-Test-Sub: len59direct@test.local" \
|
||||
-H "Content-Type: application/json" \
|
||||
--data-raw "{\"name\":\"${NAME59}\",\"language\":\"nodejs\",\"code\":\"module.exports=async()=>42\"}"
|
||||
echo
|
||||
Reference in New Issue
Block a user