mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Add more system tests. #96
This commit is contained in:
+33
-4
@@ -2,8 +2,37 @@ from lib import BaseTest
|
||||
|
||||
|
||||
class RunTask1Test(BaseTest):
|
||||
"""
|
||||
output should match
|
||||
"""
|
||||
"""
|
||||
task run: simple commands, 1-word command
|
||||
"""
|
||||
runCmd = "aptly task run repo list, repo create local, repo drop local, version"
|
||||
|
||||
runCmd = "aptly task run repo list, repo create local, repo drop local, version"
|
||||
|
||||
class RunTask2Test(BaseTest):
|
||||
"""
|
||||
task run: commands with args
|
||||
"""
|
||||
runCmd = "aptly task run -- repo list -raw, repo create local, repo list"
|
||||
|
||||
|
||||
class RunTask3Test(BaseTest):
|
||||
"""
|
||||
task run: failure
|
||||
"""
|
||||
expectedCode = 1
|
||||
runCmd = "aptly task run -- repo show a, repo create local, repo list"
|
||||
|
||||
|
||||
class RunTask4Test(BaseTest):
|
||||
"""
|
||||
task run: from file
|
||||
"""
|
||||
runCmd = "aptly task run -filename=${testfiles}/task"
|
||||
|
||||
|
||||
class RunTask5Test(BaseTest):
|
||||
"""
|
||||
task run: from file not found
|
||||
"""
|
||||
expectedCode = 1
|
||||
runCmd = "aptly task run -filename=not_found"
|
||||
|
||||
Reference in New Issue
Block a user