test: test offline runner registration (#1449)

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1449
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.code.forgejo.org>
Co-authored-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
Co-committed-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
This commit is contained in:
Andreas Ahlenstorf 2026-01-19 01:47:27 +00:00 committed by Mathieu Fenniak
parent 25c472b90b
commit 372409f76b
5 changed files with 92 additions and 1 deletions

View file

@ -415,6 +415,17 @@ EOF
cp -a $DOT_FORGEJO_CURL $work_path/forgejo-curl
}
function create_offline_registration_token() {
local name="$1"
local scope="$2"
local secret="$3"
local work_path
work_path="$DIR/$(work_path_base "$config")"
"$work_path/forgejocli" forgejo-cli actions register --name "$name" --scope "$scope" --secret "$secret"
}
function stop_daemon() {
local daemon=$1