mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
System tests for aptly package search. #80
This commit is contained in:
4308
system/t11_package/SearchPackage1Test_gold
Normal file
4308
system/t11_package/SearchPackage1Test_gold
Normal file
File diff suppressed because it is too large
Load Diff
0
system/t11_package/SearchPackage2Test_gold
Normal file
0
system/t11_package/SearchPackage2Test_gold
Normal file
1
system/t11_package/SearchPackage3Test_gold
Normal file
1
system/t11_package/SearchPackage3Test_gold
Normal file
@@ -0,0 +1 @@
|
||||
nginx-full_1.2.1-2.2+wheezy2_amd64
|
||||
3
system/t11_package/SearchPackage4Test_gold
Normal file
3
system/t11_package/SearchPackage4Test_gold
Normal file
@@ -0,0 +1,3 @@
|
||||
coreutils_8.13-3.5_amd64
|
||||
coreutils_8.13-3.5_i386
|
||||
coreutils_8.13-3.5_source
|
||||
5
system/t11_package/__init__.py
Normal file
5
system/t11_package/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""
|
||||
Testing package subcommands
|
||||
"""
|
||||
|
||||
from .search import *
|
||||
32
system/t11_package/search.py
Normal file
32
system/t11_package/search.py
Normal file
@@ -0,0 +1,32 @@
|
||||
from lib import BaseTest
|
||||
|
||||
|
||||
class SearchPackage1Test(BaseTest):
|
||||
"""
|
||||
search package: regular search
|
||||
"""
|
||||
fixtureDB = True
|
||||
runCmd = "aptly package search '$$Architecture (i386), Name (% *-dev)'"
|
||||
|
||||
|
||||
class SearchPackage2Test(BaseTest):
|
||||
"""
|
||||
search package: missing package
|
||||
"""
|
||||
runCmd = "aptly package search 'Name (package-xx)'"
|
||||
|
||||
|
||||
class SearchPackage3Test(BaseTest):
|
||||
"""
|
||||
search package: by key
|
||||
"""
|
||||
fixtureDB = True
|
||||
runCmd = "aptly package search nginx-full_1.2.1-2.2+wheezy2_amd64"
|
||||
|
||||
|
||||
class SearchPackage4Test(BaseTest):
|
||||
"""
|
||||
search package: by dependency
|
||||
"""
|
||||
fixtureDB = True
|
||||
runCmd = "aptly package search coreutils"
|
||||
Reference in New Issue
Block a user