summaryrefslogtreecommitdiff
path: root/tests/frontend
diff options
context:
space:
mode:
authorValentin David <valentin.david@codethink.co.uk>2018-11-16 15:25:12 +0100
committerValentin David <valentin.david@codethink.co.uk>2018-11-28 15:29:52 +0100
commit353b90dda760f320ec5b97c0bb56dce2ed7ea68f (patch)
tree48d34cce0a7da082cb1aa1ca9061413046a15503 /tests/frontend
parenta64f667db8cc8123b7a77c9871143fbe8d008aaf (diff)
downloadbuildstream-353b90dda760f320ec5b97c0bb56dce2ed7ea68f.tar.gz
Cleanup cache in cas server more agressively
When there is less than 2GB left, it cleans up have 10GB available. These values are configurable.
Diffstat (limited to 'tests/frontend')
-rw-r--r--tests/frontend/push.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/frontend/push.py b/tests/frontend/push.py
index f2d6814d6..153d43340 100644
--- a/tests/frontend/push.py
+++ b/tests/frontend/push.py
@@ -230,6 +230,8 @@ def test_artifact_expires(cli, datafiles, tmpdir):
# Create an artifact share (remote artifact cache) in the tmpdir/artifactshare
# Mock a file system with 12 MB free disk space
with create_artifact_share(os.path.join(str(tmpdir), 'artifactshare'),
+ min_head_size=int(2e9),
+ max_head_size=int(2e9),
total_space=int(10e9), free_space=(int(12e6) + int(2e9))) as share:
# Configure bst to push to the cache
@@ -313,6 +315,8 @@ def test_recently_pulled_artifact_does_not_expire(cli, datafiles, tmpdir):
# Create an artifact share (remote cache) in tmpdir/artifactshare
# Mock a file system with 12 MB free disk space
with create_artifact_share(os.path.join(str(tmpdir), 'artifactshare'),
+ min_head_size=int(2e9),
+ max_head_size=int(2e9),
total_space=int(10e9), free_space=(int(12e6) + int(2e9))) as share:
# Configure bst to push to the cache