diff --git a/system/t05_snapshot/PullSnapshot12Test_gold b/system/t05_snapshot/PullSnapshot12Test_gold new file mode 100644 index 00000000..10558b69 --- /dev/null +++ b/system/t05_snapshot/PullSnapshot12Test_gold @@ -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. diff --git a/system/t05_snapshot/pull.py b/system/t05_snapshot/pull.py index 0e658f30..28bab575 100644 --- a/system/t05_snapshot/pull.py +++ b/system/t05_snapshot/pull.py @@ -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"