diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml index 4cfd95f25..53392e7ae 100644 --- a/.forgejo/workflows/tests.yml +++ b/.forgejo/workflows/tests.yml @@ -49,14 +49,20 @@ jobs: podman-service.sh podman info - printf "[TestFrostFS]\ntype = frostfs\nendpoint = localhost:8080\nwallet = /config/wallet.json\nplacement_policy = REP 1\nrequest_timeout = 20s\nconnection_timeout = 21s" > /rclone.conf - mkdir config - docker run -d -v config:/config --name aio $AIO_IMAGE:$AIO_VERSION --restart always -p 8080:8080 --name aio $AIO_IMAGE:$AIO_VERSION + mkdir /config + printf "[TestFrostFS]\ntype = frostfs\nendpoint = localhost:8080\nwallet = /config/wallet.json\nplacement_policy = REP 1\nrequest_timeout = 20s\nconnection_timeout = 21s" > /config/rclone.conf + echo "run frostfs aio container" + docker run -d --name aio $AIO_IMAGE:$AIO_VERSION --restart always -p 8080:8080 + + echo "issue creds" docker exec aio /usr/bin/issue-creds.sh native + echo "copy wallet" docker cp aio:/config/user-wallet.json /config/wallet.json + echo "wait for frostfs to start" until docker exec aio curl --fail http://localhost:8083 > /dev/null 2>&1; sleep 0.2; done; + go test -v github.com/rclone/rclone/backend/frostfs docker remove aio --force \ No newline at end of file