Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
fc05e7e0
Verified
Commit
fc05e7e0
authored
Jan 05, 2022
by
Baptiste Beauplat
Browse files
Add unsigned upload tests
parent
4d5f1d5a
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/functional/importer/test_importer.py
View file @
fc05e7e0
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment