Skip to content

Commit

Permalink
Add system test on wrong --sort parameter. #73
Browse files Browse the repository at this point in the history
  • Loading branch information
smira committed Jul 7, 2014
1 parent de1fa85 commit d3707b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions system/t05_snapshot/ListSnapshot7Test_gold
@@ -0,0 +1 @@
ERROR: sorting method "planet" unknown
10 changes: 10 additions & 0 deletions system/t05_snapshot/list.py
Expand Up @@ -65,6 +65,7 @@ class ListSnapshot5Test(BaseTest):
]
runCmd = "aptly -raw -sort=time snapshot list"


class ListSnapshot6Test(BaseTest):
"""
list snapshots: regular list sorted by time
Expand All @@ -80,3 +81,12 @@ class ListSnapshot6Test(BaseTest):
"aptly snapshot create snap5 from repo local-repo",
]
runCmd = "aptly -sort=time snapshot list"


class ListSnapshot7Test(BaseTest):
"""
list snapshots: wrong parameter sort
"""
runCmd = "aptly -sort=planet snapshot list"
expectedCode = 1

0 comments on commit d3707b4

Please sign in to comment.