System test on pulling latest version by default. #67

This commit is contained in:
Andrey Smirnov
2014-06-29 10:12:18 +04:00
parent 319f3e6bb2
commit 1e70e954da
2 changed files with 24 additions and 0 deletions
@@ -0,0 +1,12 @@
Dependencies would be pulled into snapshot:
[empty]: Created as empty
from snapshot:
[sensu]: Snapshot from mirror [sensu]: http://repos.sensuapp.org/apt/ sensu
and result would be saved as new snapshot destination.
Loading packages (154)...
Building indexes...
[+] sensu_0.12.6-5_amd64 added
[+] sensu_0.12.6-5_i386 added
Snapshot destination successfully created.
You can run 'aptly publish snapshot destination' to publish snapshot as Debian repository.
+12
View File
@@ -195,3 +195,15 @@ class PullSnapshot11Test(BaseTest):
self.check_output()
self.check_cmd_output("aptly snapshot show -with-packages snap3", "snapshot_show", match_prepare=remove_created_at)
class PullSnapshot12Test(BaseTest):
"""
pull snapshot: latest version is pulled by default
"""
fixtureDB = True
fixtureCmds = [
"aptly snapshot create empty empty",
"aptly snapshot create sensu from mirror sensu",
]
runCmd = "aptly snapshot pull -architectures=amd64,i386 empty sensu destination sensu"