test to verify that a cache stored in one repo can't be restored in another Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/557 Reviewed-by: Gusted <gusted@noreply.code.forgejo.org> Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: Kwonunn <kwonunnx@gmail.com> Co-committed-by: Kwonunn <kwonunnx@gmail.com>
22 lines
889 B
Bash
22 lines
889 B
Bash
source $EXAMPLE_DIR/../../lib/lib.sh
|
|
|
|
api=$url/api/v1
|
|
repostorer=root/example-cache-proxy-storer
|
|
repogetter=root/example-cache-proxy-getter
|
|
|
|
function main() {
|
|
forgejo-curl.sh api_json -X DELETE $api/repos/$repostorer >&/dev/null || true
|
|
forgejo-curl.sh api_json -X DELETE $api/repos/$repogetter >&/dev/null || true
|
|
|
|
forgejo-test-helper.sh push_workflow actions/example-$example/storer $url root example-$example-storer setup-forgejo $token
|
|
local shastorer=$(forgejo-test-helper.sh branch_tip $url $repostorer main)
|
|
|
|
forgejo-test-helper.sh wait_success $url $repostorer $shastorer
|
|
|
|
forgejo-test-helper.sh push_workflow actions/example-$example/getter $url root example-$example-getter setup-forgejo $token
|
|
local shagetter=$(forgejo-test-helper.sh branch_tip $url $repogetter main)
|
|
|
|
forgejo-test-helper.sh wait_failure $url $repogetter $shagetter
|
|
}
|
|
|
|
main
|