@@ -15,9 +15,9 @@ concurrency:
1515env :
1616 NEXTCLOUD_URL : " http://localhost:8080"
1717 APP_ID : " nc_py_api"
18- APP_PORT : 9009
1918 APP_VERSION : " 1.0.0"
2019 APP_SECRET : " tC6vkwPhcppjMykD1r0n9NlI95uJMBYjs5blpIcA1PAdoPDmc5qoAjaBAkyocZ6E"
20+ APP_PORT : 9009
2121 NC_AUTH_USER : " admin"
2222 NC_AUTH_PASS : " adminpassword"
2323
@@ -133,10 +133,7 @@ jobs:
133133 python3 tests/_install_wait.py http://127.0.0.1:$APP_PORT/heartbeat "\"status\":\"ok\"" 15 0.5
134134 python3 tests/_app_security_checks.py http://127.0.0.1:$APP_PORT
135135 cd ..
136- php occ app_ecosystem_v2:daemon:register manual_install "Manual Install" manual-install 0 0 0
137- php occ app_ecosystem_v2:app:register $APP_ID manual_install --json-info \
138- "{\"appid\":\"$APP_ID\",\"name\":\"$APP_ID\",\"daemon_config_name\":\"manual_install\",\"version\":\"$APP_VERSION\",\"secret\":\"$APP_SECRET\",\"host\":\"localhost\",\"scopes\":{\"required\":[\"SYSTEM\", \"FILES\", \"FILES_SHARING\"],\"optional\":[\"USER_INFO\", \"USER_STATUS\", \"NOTIFICATIONS\", \"WEATHER_STATUS\", \"TALK\", \"TALK_BOT\"]},\"port\":$APP_PORT,\"protocol\":\"http\",\"system_app\":1}" \
139- -e --force-scopes
136+ sh nc_py_api/scripts/ci_register.sh "$APP_ID" "$APP_VERSION" "$APP_SECRET" "localhost" "$APP_PORT"
140137 kill -15 $(cat /tmp/_install.pid)
141138 timeout 3m tail --pid=$(cat /tmp/_install.pid) -f /dev/null
142139
@@ -293,10 +290,7 @@ jobs:
293290 python3 tests/_install_wait.py http://127.0.0.1:$APP_PORT/heartbeat "\"status\":\"ok\"" 15 0.5
294291 python3 tests/_app_security_checks.py http://127.0.0.1:$APP_PORT
295292 cd ..
296- php occ app_ecosystem_v2:daemon:register manual_install "Manual Install" manual-install 0 0 0
297- php occ app_ecosystem_v2:app:register $APP_ID manual_install --json-info \
298- "{\"appid\":\"$APP_ID\",\"name\":\"$APP_ID\",\"daemon_config_name\":\"manual_install\",\"version\":\"$APP_VERSION\",\"secret\":\"$APP_SECRET\",\"host\":\"localhost\",\"scopes\":{\"required\":[\"SYSTEM\", \"FILES\", \"FILES_SHARING\"],\"optional\":[\"USER_INFO\", \"USER_STATUS\", \"NOTIFICATIONS\", \"WEATHER_STATUS\", \"TALK\", \"TALK_BOT\"]},\"port\":$APP_PORT,\"protocol\":\"http\",\"system_app\":1}" \
299- -e --force-scopes
293+ sh nc_py_api/scripts/ci_register.sh "$APP_ID" "$APP_VERSION" "$APP_SECRET" "localhost" "$APP_PORT"
300294 kill -15 $(cat /tmp/_install.pid)
301295 timeout 3m tail --pid=$(cat /tmp/_install.pid) -f /dev/null
302296
@@ -438,10 +432,7 @@ jobs:
438432 python3 tests/_install_wait.py http://127.0.0.1:$APP_PORT/heartbeat "\"status\":\"ok\"" 15 0.5
439433 python3 tests/_app_security_checks.py http://127.0.0.1:$APP_PORT
440434 cd ..
441- php occ app_ecosystem_v2:daemon:register manual_install "Manual Install" manual-install 0 0 0
442- php occ app_ecosystem_v2:app:register $APP_ID manual_install --json-info \
443- "{\"appid\":\"$APP_ID\",\"name\":\"$APP_ID\",\"daemon_config_name\":\"manual_install\",\"version\":\"$APP_VERSION\",\"secret\":\"$APP_SECRET\",\"host\":\"localhost\",\"scopes\":{\"required\":[\"SYSTEM\", \"FILES\", \"FILES_SHARING\"],\"optional\":[\"USER_INFO\", \"USER_STATUS\", \"NOTIFICATIONS\", \"WEATHER_STATUS\", \"TALK\", \"TALK_BOT\"]},\"port\":$APP_PORT,\"protocol\":\"http\",\"system_app\":1}" \
444- -e --force-scopes
435+ sh nc_py_api/scripts/ci_register.sh "$APP_ID" "$APP_VERSION" "$APP_SECRET" "localhost" "$APP_PORT"
445436 kill -15 $(cat /tmp/_install.pid)
446437 timeout 3m tail --pid=$(cat /tmp/_install.pid) -f /dev/null
447438
@@ -560,10 +551,7 @@ jobs:
560551 python3 tests/_install_wait.py http://127.0.0.1:$APP_PORT/heartbeat "\"status\":\"ok\"" 15 0.5
561552 python3 tests/_app_security_checks.py http://127.0.0.1:$APP_PORT
562553 cd ..
563- php occ app_ecosystem_v2:daemon:register manual_install "Manual Install" manual-install 0 0 0
564- php occ app_ecosystem_v2:app:register $APP_ID manual_install --json-info \
565- "{\"appid\":\"$APP_ID\",\"name\":\"$APP_ID\",\"daemon_config_name\":\"manual_install\",\"version\":\"$APP_VERSION\",\"secret\":\"$APP_SECRET\",\"host\":\"localhost\",\"scopes\":{\"required\":[\"SYSTEM\", \"FILES\", \"FILES_SHARING\"],\"optional\":[\"USER_INFO\", \"USER_STATUS\", \"NOTIFICATIONS\", \"WEATHER_STATUS\", \"TALK\", \"TALK_BOT\"]},\"port\":$APP_PORT,\"protocol\":\"http\",\"system_app\":1}" \
566- -e --force-scopes
554+ sh nc_py_api/scripts/ci_register.sh "$APP_ID" "$APP_VERSION" "$APP_SECRET" "localhost" "$APP_PORT"
567555 kill -15 $(cat /tmp/_install.pid)
568556 timeout 3m tail --pid=$(cat /tmp/_install.pid) -f /dev/null
569557
@@ -814,10 +802,7 @@ jobs:
814802 python3 tests/_install_wait.py http://127.0.0.1:$APP_PORT/heartbeat "\"status\":\"ok\"" 15 0.5
815803 python3 tests/_app_security_checks.py http://127.0.0.1:$APP_PORT
816804 cd ..
817- php occ app_ecosystem_v2:daemon:register manual_install "Manual Install" manual-install 0 0 0
818- php occ app_ecosystem_v2:app:register $APP_ID manual_install --json-info \
819- "{\"appid\":\"$APP_ID\",\"name\":\"$APP_ID\",\"daemon_config_name\":\"manual_install\",\"version\":\"$APP_VERSION\",\"secret\":\"$APP_SECRET\",\"host\":\"localhost\",\"scopes\":{\"required\":[\"SYSTEM\", \"FILES\", \"FILES_SHARING\"],\"optional\":[\"USER_INFO\", \"USER_STATUS\", \"NOTIFICATIONS\", \"WEATHER_STATUS\", \"TALK\", \"TALK_BOT\"]},\"protocol\":\"http\",\"port\":$APP_PORT,\"system_app\":1}" \
820- -e --force-scopes
805+ sh nc_py_api/scripts/ci_register.sh "$APP_ID" "$APP_VERSION" "$APP_SECRET" "localhost" "$APP_PORT"
821806 kill -15 $(cat /tmp/_install.pid)
822807 timeout 3m tail --pid=$(cat /tmp/_install.pid) -f /dev/null
823808
0 commit comments