mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
System tests for cleaning up prefix/component. #8
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Removing ${HOME}/.aptly/public/dists...
|
||||
Removing ${HOME}/.aptly/public/pool...
|
||||
|
||||
Published repositroy has been removed successfully.
|
||||
Published repository has been removed successfully.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Removing ${HOME}/.aptly/public/ppa/smira/dists...
|
||||
Removing ${HOME}/.aptly/public/ppa/smira/pool...
|
||||
|
||||
Published repositroy has been removed successfully.
|
||||
Published repository has been removed successfully.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Removing ${HOME}/.aptly/public/dists/sq1...
|
||||
Cleaning up prefix "." component "main"...
|
||||
|
||||
Published repositroy has been removed successfully.
|
||||
Published repository has been removed successfully.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Removing ${HOME}/.aptly/public/dists/sq1...
|
||||
Removing ${HOME}/.aptly/public/pool/contrib...
|
||||
|
||||
Published repositroy has been removed successfully.
|
||||
Published repository has been removed successfully.
|
||||
|
||||
4
system/t06_publish/PublishDrop5Test_gold
Normal file
4
system/t06_publish/PublishDrop5Test_gold
Normal file
@@ -0,0 +1,4 @@
|
||||
Removing ${HOME}/.aptly/public/dists/sq2...
|
||||
Cleaning up prefix "." component "main"...
|
||||
|
||||
Published repository has been removed successfully.
|
||||
1
system/t06_publish/PublishDrop6Test_gold
Normal file
1
system/t06_publish/PublishDrop6Test_gold
Normal file
@@ -0,0 +1 @@
|
||||
ERROR: unable to remove: published repo with prefix/distribution ./sq1 not found
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user