Allow to customize Origin/Label during publishing. #29

This commit is contained in:
Andrey Smirnov
2014-04-15 11:47:21 +04:00
parent 108dc235a7
commit b85f46547b
12 changed files with 118 additions and 4 deletions
+16
View File
@@ -340,3 +340,19 @@ class PublishRepo14Test(BaseTest):
self.check_exists('public/pool/contrib/b/boost-defaults/libboost-program-options-dev_1.49.0.1_i386.deb')
class PublishRepo15Test(BaseTest):
"""
publish repo: custom label
"""
fixtureCmds = [
"aptly repo create local-repo",
"aptly repo add local-repo ${files}",
]
runCmd = "aptly publish repo -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -distribution=maverick -component=contrib -label=label15 local-repo"
gold_processor = BaseTest.expand_environ
def check(self):
super(PublishRepo15Test, self).check()
# verify contents except of sums
self.check_file_contents('public/dists/maverick/Release', 'release', match_prepare=strip_processor)