mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +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:
@@ -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
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
"""
|
||||||
|
Test aptly task run
|
||||||
|
"""
|
||||||
|
|
||||||
|
from .run import *
|
||||||
@@ -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