mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Test for pulling packages with source following.
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
Dependencies would be pulled into snapshot:
|
||||||
|
[snap1]: Snapshot from mirror [wheezy-main-src]: http://mirror.yandex.ru/debian/ wheezy [src]
|
||||||
|
from snapshot:
|
||||||
|
[snap2]: Snapshot from mirror [wheezy-backports-src]: http://mirror.yandex.ru/debian/ wheezy-backports [src]
|
||||||
|
and result would be saved as new snapshot snap3.
|
||||||
|
Loading packages (76797)...
|
||||||
|
Building indexes...
|
||||||
|
[0;31;49m[-][0;39;49m rsyslog-5.8.11-3_amd64 removed[0m
|
||||||
|
[0;32;49m[+][0;39;49m rsyslog-7.4.4-1~bpo70+1_amd64 added[0m
|
||||||
|
[0;31;49m[-][0;39;49m libestr0-0.1.1-2_amd64 removed[0m
|
||||||
|
[0;32;49m[+][0;39;49m libestr0-0.1.9-1~bpo70+1_amd64 added[0m
|
||||||
|
[0;32;49m[+][0;39;49m init-system-helpers-1.11~bpo70.1_all added[0m
|
||||||
|
[0;31;49m[-][0;39;49m rsyslog-5.8.11-3_source removed[0m
|
||||||
|
[0;32;49m[+][0;39;49m rsyslog-7.4.4-1~bpo70+1_source added[0m
|
||||||
|
[0;31;49m[-][0;39;49m libestr-0.1.1-2_source removed[0m
|
||||||
|
[0;32;49m[+][0;39;49m libestr-0.1.9-1~bpo70+1_source added[0m
|
||||||
|
[0;32;49m[+][0;39;49m init-system-helpers-1.11~bpo70.1_source added[0m
|
||||||
|
[0;31;49m[-][0;39;49m rsyslog-5.8.11-3_i386 removed[0m
|
||||||
|
[0;32;49m[+][0;39;49m rsyslog-7.4.4-1~bpo70+1_i386 added[0m
|
||||||
|
[0;31;49m[-][0;39;49m libestr0-0.1.1-2_i386 removed[0m
|
||||||
|
[0;32;49m[+][0;39;49m libestr0-0.1.9-1~bpo70+1_i386 added[0m
|
||||||
|
|
||||||
|
Snapshot snap3 successfully created.
|
||||||
|
You can run 'aptly publish snapshot snap3' to publish snapshot as Debian repository.
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,22 @@
|
|||||||
|
Dependencies would be pulled into snapshot:
|
||||||
|
[snap1]: Snapshot from mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy
|
||||||
|
from snapshot:
|
||||||
|
[snap2]: Snapshot from mirror [wheezy-backports-src]: http://mirror.yandex.ru/debian/ wheezy-backports [src]
|
||||||
|
and result would be saved as new snapshot snap3.
|
||||||
|
Loading packages (59657)...
|
||||||
|
Building indexes...
|
||||||
|
[0;31;49m[-][0;39;49m rsyslog-5.8.11-3_amd64 removed[0m
|
||||||
|
[0;32;49m[+][0;39;49m rsyslog-7.4.4-1~bpo70+1_amd64 added[0m
|
||||||
|
[0;31;49m[-][0;39;49m libestr0-0.1.1-2_amd64 removed[0m
|
||||||
|
[0;32;49m[+][0;39;49m libestr0-0.1.9-1~bpo70+1_amd64 added[0m
|
||||||
|
[0;32;49m[+][0;39;49m init-system-helpers-1.11~bpo70.1_all added[0m
|
||||||
|
[0;32;49m[+][0;39;49m rsyslog-7.4.4-1~bpo70+1_source added[0m
|
||||||
|
[0;32;49m[+][0;39;49m libestr-0.1.9-1~bpo70+1_source added[0m
|
||||||
|
[0;32;49m[+][0;39;49m init-system-helpers-1.11~bpo70.1_source added[0m
|
||||||
|
[0;31;49m[-][0;39;49m rsyslog-5.8.11-3_i386 removed[0m
|
||||||
|
[0;32;49m[+][0;39;49m rsyslog-7.4.4-1~bpo70+1_i386 added[0m
|
||||||
|
[0;31;49m[-][0;39;49m libestr0-0.1.1-2_i386 removed[0m
|
||||||
|
[0;32;49m[+][0;39;49m libestr0-0.1.9-1~bpo70+1_i386 added[0m
|
||||||
|
|
||||||
|
Snapshot snap3 successfully created.
|
||||||
|
You can run 'aptly publish snapshot snap3' to publish snapshot as Debian repository.
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -137,3 +137,41 @@ class PullSnapshot8Test(BaseTest):
|
|||||||
|
|
||||||
self.check_output()
|
self.check_output()
|
||||||
self.check_cmd_output("aptly snapshot show --with-packages snap3", "snapshot_show", match_prepare=remove_created_at)
|
self.check_cmd_output("aptly snapshot show --with-packages snap3", "snapshot_show", match_prepare=remove_created_at)
|
||||||
|
|
||||||
|
|
||||||
|
class PullSnapshot9Test(BaseTest):
|
||||||
|
"""
|
||||||
|
pull snapshot: follow sources
|
||||||
|
"""
|
||||||
|
fixtureDB = True
|
||||||
|
fixtureCmds = [
|
||||||
|
"aptly snapshot create snap1 from mirror wheezy-main",
|
||||||
|
"aptly snapshot create snap2 from mirror wheezy-backports-src",
|
||||||
|
]
|
||||||
|
runCmd = "aptly -dep-follow-source snapshot pull snap1 snap2 snap3 'rsyslog (>= 7.4.4)'"
|
||||||
|
|
||||||
|
def check(self):
|
||||||
|
def remove_created_at(s):
|
||||||
|
return re.sub(r"Created At: [0-9:A-Za-z -]+\n", "", s)
|
||||||
|
|
||||||
|
self.check_output()
|
||||||
|
self.check_cmd_output("aptly snapshot show --with-packages snap3", "snapshot_show", match_prepare=remove_created_at)
|
||||||
|
|
||||||
|
|
||||||
|
class PullSnapshot10Test(BaseTest):
|
||||||
|
"""
|
||||||
|
pull snapshot: follow sources + replace sources
|
||||||
|
"""
|
||||||
|
fixtureDB = True
|
||||||
|
fixtureCmds = [
|
||||||
|
"aptly snapshot create snap1 from mirror wheezy-main-src",
|
||||||
|
"aptly snapshot create snap2 from mirror wheezy-backports-src",
|
||||||
|
]
|
||||||
|
runCmd = "aptly -dep-follow-source snapshot pull snap1 snap2 snap3 'rsyslog (>= 7.4.4)'"
|
||||||
|
|
||||||
|
def check(self):
|
||||||
|
def remove_created_at(s):
|
||||||
|
return re.sub(r"Created At: [0-9:A-Za-z -]+\n", "", s)
|
||||||
|
|
||||||
|
self.check_output()
|
||||||
|
self.check_cmd_output("aptly snapshot show --with-packages snap3", "snapshot_show", match_prepare=remove_created_at)
|
||||||
|
|||||||
Reference in New Issue
Block a user