def test_01_under_then_over(self): repo = self.create_repo() conf = repo.conf dot() conf.set_max_file_size_in_bytes(1024) svn = repo.svn #evnadmin = repo.evnadmin #evnadmin.enable_remote_debug(repo.path, hook='pre-commit') dot() tree = {'512-then-1025-bytes.txt': bulk_chargen(512)} repo.build(tree, prefix='trunk') with chdir(repo.wc): dot() svn.add('trunk/512-then-1025-bytes.txt') svn.ci('trunk', m='Permitted...') dot() tree = {'512-then-1025-bytes.txt': bulk_chargen(1025)} repo.build(tree, prefix='trunk') error = format_file_exceeds_max_size_error(1025, 1024) with chdir(repo.wc): dot() with ensure_blocked(self, error): svn.ci('trunk', m='At limit')
def test_01_under_then_over(self): repo = self.create_repo() conf = repo.conf dot() conf.set_max_file_size_in_bytes(1024) svn = repo.svn #evnadmin = repo.evnadmin #evnadmin.enable_remote_debug(repo.path, hook='pre-commit') dot() tree = { '512-then-1025-bytes.txt': bulk_chargen(512) } repo.build(tree, prefix='trunk') with chdir(repo.wc): dot() svn.add('trunk/512-then-1025-bytes.txt') svn.ci('trunk', m='Permitted...') dot() tree = { '512-then-1025-bytes.txt': bulk_chargen(1025) } repo.build(tree, prefix='trunk') error = format_file_exceeds_max_size_error(1025, 1024) with chdir(repo.wc): dot() with ensure_blocked(self, error): svn.ci('trunk', m='At limit')
def test_01_over_limit(self): repo = self.create_repo() conf = repo.conf conf.set_max_file_size_in_bytes(1024) svn = repo.svn #evnadmin = repo.evnadmin #evnadmin.enable_remote_debug(repo.path, hook='pre-commit') dot() over = 1025 tree = {'over.txt': bulk_chargen(over)} repo.build(tree, prefix='trunk') error = format_file_exceeds_max_size_error(over, 1024) with chdir(repo.wc): dot() svn.add('trunk/over.txt') with ensure_blocked(self, error): svn.ci('trunk', m='Over limit')
def test_01_over_limit(self): repo = self.create_repo() conf = repo.conf conf.set_max_file_size_in_bytes(1024) svn = repo.svn #evnadmin = repo.evnadmin #evnadmin.enable_remote_debug(repo.path, hook='pre-commit') dot() over = 1025 tree = { 'over.txt': bulk_chargen(over) } repo.build(tree, prefix='trunk') error = format_file_exceeds_max_size_error(over, 1024) with chdir(repo.wc): dot() svn.add('trunk/over.txt') with ensure_blocked(self, error): svn.ci('trunk', m='Over limit')