mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
System tests for aptly mirror search. #81
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
ERROR: unable to search: mirror with name mirror-xx not found
|
||||
@@ -0,0 +1 @@
|
||||
ERROR: unable to search: parsing failed: unexpected token <EOL>: expecting ')'
|
||||
@@ -0,0 +1,95 @@
|
||||
libpam0g_1.1.3-7.1_amd64
|
||||
tar_1.26+dfsg-0.1_amd64
|
||||
gcc-4.7-base_4.7.2-5_i386
|
||||
dpkg_1.16.12_i386
|
||||
nginx-light_1.2.1-2.2+wheezy2_amd64
|
||||
fontconfig-config_2.9.0-7.1_all
|
||||
libxml2_2.8.0+dfsg1-7+nmu3_i386
|
||||
libxpm4_1:3.5.10-1_i386
|
||||
libexpat1_2.1.0-1+deb7u1_i386
|
||||
libfontconfig1_2.9.0-7.1_i386
|
||||
fonts-freefont-ttf_20120503-1_all
|
||||
xfonts-utils_1:7.7~1_amd64
|
||||
libjpeg8_8d-1_i386
|
||||
perl-base_5.14.2-21+deb7u1_i386
|
||||
ucf_3.0025+nmu3_all
|
||||
libx11-6_2:1.5.0-1+deb7u1_i386
|
||||
libgcc1_1:4.7.2-5_i386
|
||||
coreutils_8.13-3.5_i386
|
||||
libxcb1_1.8.1-2+deb7u1_amd64
|
||||
ttf-freefont_20120503-1_all
|
||||
tar_1.26+dfsg-0.1_i386
|
||||
gsfonts_1:8.11+urwcyr1.0.7~pre44-4.2_all
|
||||
libacl1_2.2.51-8_i386
|
||||
gsfonts-x11_0.22_all
|
||||
multiarch-support_2.13-38+deb7u1_i386
|
||||
xfonts-encodings_1:1.0.4-1_all
|
||||
libfreetype6_2.4.9-1.1_i386
|
||||
nginx-full_1.2.1-2.2+wheezy2_amd64
|
||||
libssl1.0.0_1.0.1e-2+deb7u7_i386
|
||||
libc6_2.13-38+deb7u1_i386
|
||||
perl-base_5.14.2-21+deb7u1_amd64
|
||||
liblzma5_5.1.1alpha+20120614-2_i386
|
||||
zlib1g_1:1.2.7.dfsg-13_i386
|
||||
libpng12-0_1.2.49-1_i386
|
||||
libssl1.0.0_1.0.1e-2+deb7u7_amd64
|
||||
libpam0g_1.1.3-7.1_i386
|
||||
libpcre3_1:8.30-5_i386
|
||||
libgd2-noxpm_2.0.36~rc1~dfsg-6.1_amd64
|
||||
libgcrypt11_1.5.0-5+deb7u1_i386
|
||||
libgd2-xpm_2.0.36~rc1~dfsg-6.1_amd64
|
||||
libxdmcp6_1:1.1.1-1_i386
|
||||
libgcc1_1:4.7.2-5_amd64
|
||||
libselinux1_2.1.9-5_amd64
|
||||
liblzma5_5.1.1alpha+20120614-2_amd64
|
||||
libfontenc1_1:1.1.1-1_amd64
|
||||
libgcrypt11_1.5.0-5+deb7u1_amd64
|
||||
coreutils_8.13-3.5_amd64
|
||||
libc-bin_2.13-38+deb7u1_i386
|
||||
libxfont1_1:1.4.5-3_amd64
|
||||
ttf-dejavu-core_2.33-3_all
|
||||
libxml2_2.8.0+dfsg1-7+nmu3_amd64
|
||||
libselinux1_2.1.9-5_i386
|
||||
dpkg_1.16.12_amd64
|
||||
libxau6_1:1.0.7-1_amd64
|
||||
nginx-common_1.2.1-2.2+wheezy2_all
|
||||
nginx-full_1.2.1-2.2+wheezy2_i386
|
||||
ttf-bitstream-vera_1.10-8_all
|
||||
libxslt1.1_1.1.26-14.1_i386
|
||||
libxfont1_1:1.4.5-3_i386
|
||||
multiarch-support_2.13-38+deb7u1_amd64
|
||||
libgd2-xpm_2.0.36~rc1~dfsg-6.1_i386
|
||||
debconf_1.5.49_all
|
||||
libgpg-error0_1.10-3.1_amd64
|
||||
libacl1_2.2.51-8_amd64
|
||||
libfontconfig1_2.9.0-7.1_amd64
|
||||
libpng12-0_1.2.49-1_amd64
|
||||
libbz2-1.0_1.0.6-4_amd64
|
||||
libbz2-1.0_1.0.6-4_i386
|
||||
nginx-light_1.2.1-2.2+wheezy2_i386
|
||||
libxdmcp6_1:1.1.1-1_amd64
|
||||
libattr1_1:2.4.46-8_i386
|
||||
gcc-4.7-base_4.7.2-5_amd64
|
||||
libc6_2.13-38+deb7u1_amd64
|
||||
libgeoip1_1.4.8+dfsg-3_amd64
|
||||
libgd2-noxpm_2.0.36~rc1~dfsg-6.1_i386
|
||||
libxcb1_1.8.1-2+deb7u1_i386
|
||||
libgeoip1_1.4.8+dfsg-3_i386
|
||||
libjpeg8_8d-1_amd64
|
||||
zlib1g_1:1.2.7.dfsg-13_amd64
|
||||
libxslt1.1_1.1.26-14.1_amd64
|
||||
libxpm4_1:3.5.10-1_amd64
|
||||
libx11-6_2:1.5.0-1+deb7u1_amd64
|
||||
libxau6_1:1.0.7-1_i386
|
||||
x11-common_1:7.7+3~deb7u1_all
|
||||
libx11-data_2:1.5.0-1+deb7u1_all
|
||||
libgpg-error0_1.10-3.1_i386
|
||||
nginx_1.2.1-2.2+wheezy2_all
|
||||
xfonts-utils_1:7.7~1_i386
|
||||
libfontenc1_1:1.1.1-1_i386
|
||||
libexpat1_2.1.0-1+deb7u1_amd64
|
||||
lsb-base_4.1+Debian8+deb7u1_all
|
||||
libpcre3_1:8.30-5_amd64
|
||||
libfreetype6_2.4.9-1.1_amd64
|
||||
libc-bin_2.13-38+deb7u1_amd64
|
||||
libattr1_1:2.4.46-8_amd64
|
||||
@@ -9,3 +9,4 @@ from .update import *
|
||||
from .drop import *
|
||||
from .rename import *
|
||||
from .edit import *
|
||||
from .search import *
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
from lib import BaseTest
|
||||
|
||||
|
||||
class SearchMirror1Test(BaseTest):
|
||||
"""
|
||||
search mirror: regular search
|
||||
"""
|
||||
fixtureDB = True
|
||||
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||
runCmd = "aptly mirror search wheezy-main '$$Architecture (i386), Name (% *-dev)'"
|
||||
|
||||
|
||||
class SearchMirror2Test(BaseTest):
|
||||
"""
|
||||
search mirror: missing mirror
|
||||
"""
|
||||
runCmd = "aptly mirror search mirror-xx 'Name'"
|
||||
expectedCode = 1
|
||||
|
||||
|
||||
class SearchMirror3Test(BaseTest):
|
||||
"""
|
||||
search mirror: wrong expression
|
||||
"""
|
||||
fixtureDB = True
|
||||
expectedCode = 1
|
||||
runCmd = "aptly mirror search wheezy-main '$$Architecture (i386'"
|
||||
|
||||
|
||||
class SearchMirror4Test(BaseTest):
|
||||
"""
|
||||
search mirror: with-deps search
|
||||
"""
|
||||
fixtureDB = True
|
||||
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||
runCmd = "aptly mirror search -with-deps wheezy-main 'Name (nginx)'"
|
||||
Reference in New Issue
Block a user