mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-19 19:28:22 +00:00
Tests for aptly repo include with per-repo uploaders.json. #71
This commit is contained in:
5
system/t09_repo/IncludeRepo18Test_gold
Normal file
5
system/t09_repo/IncludeRepo18Test_gold
Normal file
@@ -0,0 +1,5 @@
|
||||
gpgv: DSA key ID 16DB3E6D
|
||||
gpgv: Good signature from "Aptly Tester (don't use it) <test@aptly.info>"
|
||||
Loading repository unstable for changes file hardlink_0.2.1_amd64.changes...
|
||||
[+] hardlink_0.2.1_source added
|
||||
[+] hardlink_0.2.1_amd64 added
|
||||
7
system/t09_repo/IncludeRepo19Test_gold
Normal file
7
system/t09_repo/IncludeRepo19Test_gold
Normal file
@@ -0,0 +1,7 @@
|
||||
gpgv: DSA key ID 16DB3E6D
|
||||
gpgv: Good signature from "Aptly Tester (don't use it) <test@aptly.info>"
|
||||
Loading repository unstable for changes file hardlink_0.2.1_amd64.changes...
|
||||
[!] changes file skipped due to uploaders config: hardlink_0.2.1_amd64.changes, keys []utils.GpgKey{"21DBB89C16DB3E6D"}: denied as no rule matches
|
||||
[!] Some files were skipped due to errors:
|
||||
/hardlink_0.2.1_amd64.changes
|
||||
ERROR: some files failed to be added
|
||||
@@ -406,3 +406,26 @@ class IncludeRepo17Test(BaseTest):
|
||||
runCmd = "aptly repo include -uploaders-file=${changes}/uploaders4.json -no-remove-files -keyring=${files}/aptly.pub ${changes}"
|
||||
outputMatchPrepare = lambda _, s: changesRemove(_, gpgRemove(_, s))
|
||||
expectedCode = 1
|
||||
|
||||
|
||||
class IncludeRepo18Test(BaseTest):
|
||||
"""
|
||||
include packages to local repo: repo uploaders.json + global uploaders.json
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create -uploaders-file=${changes}/uploaders2.json unstable",
|
||||
]
|
||||
runCmd = "aptly repo include -uploaders-file=${changes}/uploaders1.json -no-remove-files -keyring=${files}/aptly.pub ${changes}"
|
||||
outputMatchPrepare = lambda _, s: changesRemove(_, gpgRemove(_, s))
|
||||
|
||||
|
||||
class IncludeRepo19Test(BaseTest):
|
||||
"""
|
||||
include packages to local repo: per-repo uploaders.json
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create -uploaders-file=${changes}/uploaders1.json unstable",
|
||||
]
|
||||
runCmd = "aptly repo include -no-remove-files -keyring=${files}/aptly.pub ${changes}"
|
||||
outputMatchPrepare = lambda _, s: changesRemove(_, gpgRemove(_, s))
|
||||
expectedCode = 1
|
||||
|
||||
Reference in New Issue
Block a user