Verified Commit fc05e7e0 authored by Baptiste Beauplat's avatar Baptiste Beauplat
Browse files

Add unsigned upload tests

parent 4d5f1d5a
...@@ -204,6 +204,20 @@ r1JREXlgQRuRdd5ZWSvIxKaKGVbYCw== ...@@ -204,6 +204,20 @@ r1JREXlgQRuRdd5ZWSvIxKaKGVbYCw==
self.assert_package_count('hello', '1.0-1', 0) self.assert_package_count('hello', '1.0-1', 0)
self.assert_package_not_in_repo('hello', '1.0-1') self.assert_package_not_in_repo('hello', '1.0-1')
def test_import_package_not_signed_ok(self):
self._setup_example_user(email='vtime@example.org')
self.import_source_package('hello', skip_gpg=True)
self.assert_importer_succeeded()
self.assert_package_count('hello', '1.0-1', 1)
self.assert_package_in_repo('hello', '1.0-1')
def test_import_package_not_signed_ok_no_user(self):
self.import_source_package('hello', skip_gpg=True)
self.assert_importer_failed()
self.assert_email_with('No user found for')
self.assert_package_count('hello', '1.0-1', 0)
self.assert_package_not_in_repo('hello', '1.0-1')
def test_import_package_not_signed(self): def test_import_package_not_signed(self):
self.import_package('not-signed') self.import_package('not-signed')
self.assert_importer_failed() self.assert_importer_failed()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment