X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6c0bf267d795a3ca49c3258c9490714c9e18d333..9e2e220996943f6de9a059a6b57c458f60f10e8e:/services/dockercleaner/tests/test_cleaner.py diff --git a/services/dockercleaner/tests/test_cleaner.py b/services/dockercleaner/tests/test_cleaner.py index 9fbd3e3014..37c1d7600e 100644 --- a/services/dockercleaner/tests/test_cleaner.py +++ b/services/dockercleaner/tests/test_cleaner.py @@ -3,6 +3,7 @@ import collections import itertools import json +import os import random import tempfile import time @@ -437,6 +438,11 @@ class ConfigTestCase(unittest.TestCase): self.assertEqual('never', config['RemoveStoppedContainers']) self.assertEqual(1, config['Verbose']) + def test_args_no_config(self): + self.assertEqual(False, os.path.exists(cleaner.DEFAULT_CONFIG_FILE)) + config = cleaner.load_config(['--quota', '1G']) + self.assertEqual(1 << 30, config['Quota']) + class ContainerRemovalTestCase(unittest.TestCase): LIFECYCLE = ['create', 'attach', 'start', 'resize', 'die', 'destroy']