Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
run the test delete-objects every 20 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
fczuardi committed Feb 2, 2024
1 parent 7f739e1 commit f26fd47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ for remote in $remotes; do
aws s3api list-buckets --cli-connect-timeout 10 --cli-read-timeout 10 --profile "$remote" >> /app/results/smile.txt
done

# Create a cron job that runs three times a day
echo "0 6,14,22 * * * /app/run_tests.sh" > /etc/crontabs/root
# Create a cron job that runs every 20 minutes
echo "*/20 * * * * /app/run_tests.sh" > /etc/crontabs/root

# Start cron
crond -f &
Expand Down
7 changes: 6 additions & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/sh
set +x
test_out=$(just group-test index-s3 _all "$remotes")

# space separated list of remote names
remotes=$(dasel -f /app/config.yaml -r yaml -s '.remotes.all().key()' | tr '\n' ' ')

test_out=$(just group-test delete-objects _all "$remotes")

chmod -R 755 /app/results

# simple text file with date for the nginx to serve
Expand Down

0 comments on commit f26fd47

Please sign in to comment.