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:
parent
25c472b90b
commit
372409f76b
5 changed files with 92 additions and 1 deletions
11
lib/lib.sh
11
lib/lib.sh
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue