Merge pull request #2576 from coreos-inc/full-db-tests-tox

Reenable full database testing locally and in concourse
This commit is contained in:
josephschorr 2017-04-27 18:09:15 -04:00 committed by GitHub
commit 8b148bf1d4
51 changed files with 278 additions and 318 deletions

View file

@ -10,13 +10,15 @@ def test_validate_noop(unvalidated_config):
TimeMachineValidator.validate(unvalidated_config, None, None)
from test.fixtures import *
@pytest.mark.parametrize('default_exp,options,expected_exception', [
('2d', ['1w', '2d'], None),
('2d', ['1w'], 'Default expiration must be in expiration options set'),
('2d', ['2d', '1M'], 'Invalid tag expiration option: 1M'),
])
def test_validate(default_exp, options, expected_exception):
def test_validate(default_exp, options, expected_exception, app):
config = {}
config['DEFAULT_TAG_EXPIRATION'] = default_exp
config['TAG_EXPIRATION_OPTIONS'] = options