Tests for aptly repo include with per-repo uploaders.json. #71

This commit is contained in:
Andrey Smirnov
2015-03-22 19:24:37 +03:00
parent 8b782ce370
commit 3c20b5472e
3 changed files with 35 additions and 0 deletions

View 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

View 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

View File

@@ -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