test for simple

This commit is contained in:
Q
2023-08-20 11:26:29 +03:00
parent 1c57e31b11
commit f5449533a5
2 changed files with 10 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ location /mfl/ {
# Running
- `mkdir data`
- `docker-compose up --build`

View File

@@ -103,7 +103,9 @@ test -f "$IMAGE" || convert -size 640x480 xc:gray $IMAGE
function t00-rebuild-docker() {
CWD=$PWD
cd ..
mkdir -p data
docker-compose up --build -d --force-recreate -t 0
docker-compose logs
cd "$CWD"
}
@@ -164,6 +166,13 @@ function t06-list-files() {
"$FLASK_PUBLIC_URL"/ls
}
function t06-list-files-simple() {
curl -fL -w "\n" \
-H "Secret: $FLASK_ACCESS_TOKEN" \
"$FLASK_PUBLIC_URL"/ls-simple
}
function t07-file-download() {
download_url=$( curl -fL -w "\n" \
-H "Secret: $FLASK_ACCESS_TOKEN" \