mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-27 13:57:46 +00:00
Tests for aptly repo include with per-repo uploaders.json. #71
This commit is contained in:
@@ -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
|
||||||
@@ -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}"
|
runCmd = "aptly repo include -uploaders-file=${changes}/uploaders4.json -no-remove-files -keyring=${files}/aptly.pub ${changes}"
|
||||||
outputMatchPrepare = lambda _, s: changesRemove(_, gpgRemove(_, s))
|
outputMatchPrepare = lambda _, s: changesRemove(_, gpgRemove(_, s))
|
||||||
expectedCode = 1
|
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