Skip to content

Commit 650c66c

Browse files
committed
add test
1 parent f974dea commit 650c66c

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Loading packages...
2+
Generating metadata files and linking package files...
3+
Finalizing metadata files...
4+
Signing file 'Release' with gpg, please enter your passphrase when prompted:
5+
Clearsigning file 'Release' with gpg, please enter your passphrase when prompted:
6+
Cleaning up published repository ./maverick...
7+
Cleaning up component 'main'...
8+
9+
Published local repository ./maverick (origin: earth, label: fun) [i386, source] publishes {main: [local-repo]} has been updated successfully.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Origin: earth
2+
Label: fun
3+
Suite: maverick
4+
Codename: maverick
5+
Architectures: i386
6+
Components: main
7+
Description: Generated by aptly
8+
MD5Sum:
9+
SHA1:
10+
SHA256:
11+
SHA512:

system/t06_publish/update.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,3 +625,25 @@ def check(self):
625625
super(PublishUpdate19Test, self).check()
626626

627627
self.check_file_contents('public/dists/maverick/Release', 'release', match_prepare=strip_processor)
628+
629+
630+
class PublishUpdate20Test(BaseTest):
631+
"""
632+
publish update: update label and origin
633+
"""
634+
fixtureCmds = [
635+
"aptly repo create local-repo",
636+
"aptly repo add local-repo ${files}/",
637+
"aptly publish repo -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -distribution=maverick -skip-bz2 local-repo",
638+
"aptly repo remove local-repo pyspi"
639+
]
640+
runCmd = "aptly publish update -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -label=fun -origin=earth maverick"
641+
gold_processor = BaseTest.expand_environ
642+
643+
def check(self):
644+
super(PublishUpdate19Test, self).check()
645+
646+
self.check_exists('public/dists/maverick/InRelease')
647+
648+
# verify contents except of sums
649+
self.check_file_contents('public/dists/maverick/Release', 'release', match_prepare=strip_processor)

0 commit comments

Comments
 (0)