[#1] Add forgejo actions
Signed-off-by: Aleksey Kravchenko <al.kravchenko@yadro.com>
This commit is contained in:
parent
d7751246e4
commit
10fdf60eaa
1 changed files with 9 additions and 3 deletions
|
@ -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
|
Loading…
Reference in a new issue