mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
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:
34
system/t10_task/RunTask1Test_gold
Normal file
34
system/t10_task/RunTask1Test_gold
Normal file
@@ -0,0 +1,34 @@
|
||||
[0;32;49m1) [Running]: repo list[1;39;49m
|
||||
[0m
|
||||
[0;33;49mBegin command output: ----------------------------
|
||||
[1;39;49m [0m
|
||||
No local repositories found, create one with `aptly repo create ...`.
|
||||
|
||||
[0;33;49mEnd command output: ------------------------------
|
||||
[1;39;49m [0m
|
||||
[0;32;49m2) [Running]: repo create local[1;39;49m
|
||||
[0m
|
||||
[0;33;49mBegin command output: ----------------------------
|
||||
[1;39;49m [0m
|
||||
|
||||
Local repo [local] successfully added.
|
||||
You can run 'aptly repo add local ...' to add packages to repository.
|
||||
|
||||
[0;33;49mEnd command output: ------------------------------
|
||||
[1;39;49m [0m
|
||||
[0;32;49m3) [Running]: repo drop local[1;39;49m
|
||||
[0m
|
||||
[0;33;49mBegin command output: ----------------------------
|
||||
[1;39;49m [0m
|
||||
Local repo `local` has been removed.
|
||||
|
||||
[0;33;49mEnd command output: ------------------------------
|
||||
[1;39;49m [0m
|
||||
[0;32;49m4) [Running]: version[1;39;49m
|
||||
[0m
|
||||
[0;33;49mBegin command output: ----------------------------
|
||||
[1;39;49m [0m
|
||||
aptly version: 0.8~dev
|
||||
|
||||
[0;33;49mEnd command output: ------------------------------
|
||||
[1;39;49m [0m
|
||||
5
system/t10_task/__init__.py
Normal file
5
system/t10_task/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""
|
||||
Test aptly task run
|
||||
"""
|
||||
|
||||
from .run import *
|
||||
9
system/t10_task/run.py
Normal file
9
system/t10_task/run.py
Normal 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"
|
||||
Reference in New Issue
Block a user