From 2315c00ae16fbe3be365b74afbad2273e49bd20a Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 18 Mar 2014 18:57:16 +0400 Subject: [PATCH] Test on creating snapshot from empty local repo. --- system/t05_snapshot/CreateSnapshot9Test_gold | 1 + system/t05_snapshot/create.py | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 system/t05_snapshot/CreateSnapshot9Test_gold diff --git a/system/t05_snapshot/CreateSnapshot9Test_gold b/system/t05_snapshot/CreateSnapshot9Test_gold new file mode 100644 index 00000000..4ff183dd --- /dev/null +++ b/system/t05_snapshot/CreateSnapshot9Test_gold @@ -0,0 +1 @@ +ERROR: unable to create snapshot: local repo doesn't have packages diff --git a/system/t05_snapshot/create.py b/system/t05_snapshot/create.py index f4ea1e1f..ec641613 100644 --- a/system/t05_snapshot/create.py +++ b/system/t05_snapshot/create.py @@ -96,3 +96,14 @@ class CreateSnapshot8Test(BaseTest): ] runCmd = "aptly snapshot create snap8 from repo local-repo" expectedCode = 1 + + +class CreateSnapshot9Test(BaseTest): + """ + create snapshot: from empty repo + """ + fixtureCmds = [ + "aptly repo create local-repo", + ] + runCmd = "aptly snapshot create snap9 from repo local-repo" + expectedCode = 1