Added RunTask acceptance tests

Added a basic RunTask test to test the functionality of the new aptly
task run command. More to come...
This commit is contained in:
Simon Aquino
2014-08-16 15:11:14 +00:00
parent 6ff601f4a2
commit b59471ad35
3 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
1) [Running]: repo list

Begin command output: ----------------------------
 
No local repositories found, create one with `aptly repo create ...`.
End command output: ------------------------------
 
2) [Running]: repo create local

Begin command output: ----------------------------
 
Local repo [local] successfully added.
You can run 'aptly repo add local ...' to add packages to repository.
End command output: ------------------------------
 
3) [Running]: repo drop local

Begin command output: ----------------------------
 
Local repo `local` has been removed.
End command output: ------------------------------
 
4) [Running]: version

Begin command output: ----------------------------
 
aptly version: 0.8~dev
End command output: ------------------------------
 

View File

@@ -0,0 +1,5 @@
"""
Test aptly task run
"""
from .run import *

9
system/t10_task/run.py Normal file
View File

@@ -0,0 +1,9 @@
from lib import BaseTest
class RunTask1Test(BaseTest):
"""
output should match
"""
runCmd = "aptly task run repo list, repo create local, repo drop local, version"