mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
Publishing empty snapshot should fail.
This commit is contained in:
1
system/t06_publish/PublishSnapshot14Test_gold
Normal file
1
system/t06_publish/PublishSnapshot14Test_gold
Normal file
@@ -0,0 +1 @@
|
||||
ERROR: unable to publish: snapshot is empty
|
||||
@@ -314,3 +314,15 @@ class PublishSnapshot13Test(BaseTest):
|
||||
|
||||
# verify contents except of sums
|
||||
self.check_file_contents('public/dists/maverick/Release', 'release', match_prepare=strip_processor)
|
||||
|
||||
|
||||
class PublishSnapshot14Test(BaseTest):
|
||||
"""
|
||||
publish snapshot: empty snapshot is not publishable
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixtureCmds = [
|
||||
"aptly snapshot create snap14 empty",
|
||||
]
|
||||
runCmd = "aptly publish snapshot --distribution=mars snap14"
|
||||
expectedCode = 1
|
||||
|
||||
Reference in New Issue
Block a user