System tests for cleaning up prefix/component. #8

This commit is contained in:
Andrey Smirnov
2014-04-22 17:51:29 +04:00
parent 4541e0bdae
commit 3342ce490a
7 changed files with 46 additions and 4 deletions
+37
View File
@@ -85,3 +85,40 @@ class PublishDrop4Test(BaseTest):
self.check_exists('public/dists/sq2')
self.check_not_exists('public/pool/contrib/')
self.check_exists('public/pool/main/')
class PublishDrop5Test(BaseTest):
"""
publish drop: component cleanup
"""
fixtureCmds = [
"aptly repo create local1",
"aptly repo create local2",
"aptly repo add local1 ${files}/libboost-program-options-dev_1.49.0.1_i386.deb",
"aptly repo add local2 ${files}",
"aptly publish repo -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -distribution=sq1 local1",
"aptly publish repo -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -distribution=sq2 local2",
]
runCmd = "aptly publish drop sq2"
gold_processor = BaseTest.expand_environ
def check(self):
super(PublishDrop5Test, self).check()
self.check_exists('public/dists/sq1')
self.check_not_exists('public/dists/sq2')
self.check_exists('public/pool/main/')
self.check_not_exists('public/pool/main/p/pyspi/pyspi_0.6.1-1.3.dsc')
self.check_not_exists('public/pool/main/p/pyspi/pyspi_0.6.1-1.3.diff.gz')
self.check_not_exists('public/pool/main/p/pyspi/pyspi_0.6.1.orig.tar.gz')
self.check_not_exists('public/pool/main/p/pyspi/pyspi-0.6.1-1.3.stripped.dsc')
self.check_exists('public/pool/main/b/boost-defaults/libboost-program-options-dev_1.49.0.1_i386.deb')
class PublishDrop6Test(BaseTest):
"""
publish drop: no publish
"""
runCmd = "aptly publish drop sq1"
expectedCode = 1