Publishing empty snapshot should fail.

This commit is contained in:
Andrey Smirnov
2014-02-07 13:33:01 +04:00
parent 9dccf2a4ee
commit a3dbc8444b
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1 @@
ERROR: unable to publish: snapshot is empty

View File

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