mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-05 22:08:27 +00:00
Test on publishing with --skip-signing.
This commit is contained in:
8
system/t06_publish/PublishSnapshot13Test_gold
Normal file
8
system/t06_publish/PublishSnapshot13Test_gold
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
Snapshot snap13 has been successfully published.
|
||||
Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing.
|
||||
Now you can add following line to apt sources:
|
||||
deb http://your-server/ maverick main
|
||||
Don't forget to add your GPG key to apt with apt-key.
|
||||
|
||||
You can also use `aptly serve` to publish your repositories over HTTP quickly.
|
||||
9
system/t06_publish/PublishSnapshot13Test_release
Normal file
9
system/t06_publish/PublishSnapshot13Test_release
Normal file
@@ -0,0 +1,9 @@
|
||||
Origin: . maverick
|
||||
Label: . maverick
|
||||
Codename: maverick
|
||||
Architectures: amd64 i386
|
||||
Components: main
|
||||
Description: Generated by aptly
|
||||
MD5Sum:
|
||||
SHA1:
|
||||
SHA256:
|
||||
@@ -284,3 +284,33 @@ class PublishSnapshot12Test(BaseTest):
|
||||
fixtureDB = True
|
||||
runCmd = "aptly publish snapshot snap12"
|
||||
expectedCode = 1
|
||||
|
||||
|
||||
class PublishSnapshot13Test(BaseTest):
|
||||
"""
|
||||
publish snapshot: -skip-signing
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixturePool = True
|
||||
fixtureCmds = [
|
||||
"aptly snapshot create snap13 from mirror gnuplot-maverick",
|
||||
]
|
||||
runCmd = "aptly publish snapshot -skip-signing snap13"
|
||||
gold_processor = BaseTest.expand_environ
|
||||
|
||||
def check(self):
|
||||
super(PublishSnapshot13Test, self).check()
|
||||
|
||||
self.check_not_exists('public/dists/maverick/InRelease')
|
||||
self.check_exists('public/dists/maverick/Release')
|
||||
self.check_not_exists('public/dists/maverick/Release.gpg')
|
||||
|
||||
self.check_exists('public/dists/maverick/main/binary-i386/Packages')
|
||||
self.check_exists('public/dists/maverick/main/binary-i386/Packages.gz')
|
||||
self.check_exists('public/dists/maverick/main/binary-i386/Packages.bz2')
|
||||
self.check_exists('public/dists/maverick/main/binary-amd64/Packages')
|
||||
self.check_exists('public/dists/maverick/main/binary-amd64/Packages.gz')
|
||||
self.check_exists('public/dists/maverick/main/binary-amd64/Packages.bz2')
|
||||
|
||||
# verify contents except of sums
|
||||
self.check_file_contents('public/dists/maverick/Release', 'release', match_prepare=strip_processor)
|
||||
|
||||
Reference in New Issue
Block a user