mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-27 13:57:46 +00:00
System tests for mirror, snapshot, repo search. #81
This commit is contained in:
+4030
-4029
File diff suppressed because it is too large
Load Diff
@@ -1,95 +1,31 @@
|
|||||||
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
|
coreutils_8.13-3.5_amd64
|
||||||
libc-bin_2.13-38+deb7u1_i386
|
coreutils_8.13-3.5_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
|
dpkg_1.16.12_amd64
|
||||||
libxau6_1:1.0.7-1_amd64
|
dpkg_1.16.12_i386
|
||||||
nginx-common_1.2.1-2.2+wheezy2_all
|
gcc-4.7-base_4.7.2-5_amd64
|
||||||
nginx-full_1.2.1-2.2+wheezy2_i386
|
gcc-4.7-base_4.7.2-5_i386
|
||||||
ttf-bitstream-vera_1.10-8_all
|
install-info_4.13a.dfsg.1-10_amd64
|
||||||
libxslt1.1_1.1.26-14.1_i386
|
install-info_4.13a.dfsg.1-10_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
|
libacl1_2.2.51-8_amd64
|
||||||
libfontconfig1_2.9.0-7.1_amd64
|
libacl1_2.2.51-8_i386
|
||||||
libpng12-0_1.2.49-1_amd64
|
libattr1_1:2.4.46-8_amd64
|
||||||
|
libattr1_1:2.4.46-8_i386
|
||||||
libbz2-1.0_1.0.6-4_amd64
|
libbz2-1.0_1.0.6-4_amd64
|
||||||
libbz2-1.0_1.0.6-4_i386
|
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
|
libc-bin_2.13-38+deb7u1_amd64
|
||||||
libattr1_1:2.4.46-8_amd64
|
libc-bin_2.13-38+deb7u1_i386
|
||||||
|
libc6_2.13-38+deb7u1_amd64
|
||||||
|
libc6_2.13-38+deb7u1_i386
|
||||||
|
libgcc1_1:4.7.2-5_amd64
|
||||||
|
libgcc1_1:4.7.2-5_i386
|
||||||
|
liblzma5_5.1.1alpha+20120614-2_amd64
|
||||||
|
liblzma5_5.1.1alpha+20120614-2_i386
|
||||||
|
libselinux1_2.1.9-5_amd64
|
||||||
|
libselinux1_2.1.9-5_i386
|
||||||
|
multiarch-support_2.13-38+deb7u1_amd64
|
||||||
|
multiarch-support_2.13-38+deb7u1_i386
|
||||||
|
tar_1.26+dfsg-0.1_amd64
|
||||||
|
tar_1.26+dfsg-0.1_i386
|
||||||
|
zlib1g_1:1.2.7.dfsg-13_amd64
|
||||||
|
zlib1g_1:1.2.7.dfsg-13_i386
|
||||||
@@ -33,4 +33,4 @@ class SearchMirror4Test(BaseTest):
|
|||||||
"""
|
"""
|
||||||
fixtureDB = True
|
fixtureDB = True
|
||||||
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||||
runCmd = "aptly mirror search -with-deps wheezy-main 'Name (nginx)'"
|
runCmd = "aptly mirror search -with-deps wheezy-main 'Name (coreutils)'"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
|||||||
|
ERROR: unable to search: snapshot with name snapshot-xx not found
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
ERROR: unable to search: parsing failed: unexpected token <EOL>: expecting ')'
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
coreutils_8.13-3.5_amd64
|
||||||
|
coreutils_8.13-3.5_i386
|
||||||
|
dpkg_1.16.12_amd64
|
||||||
|
dpkg_1.16.12_i386
|
||||||
|
gcc-4.7-base_4.7.2-5_amd64
|
||||||
|
gcc-4.7-base_4.7.2-5_i386
|
||||||
|
install-info_4.13a.dfsg.1-10_amd64
|
||||||
|
install-info_4.13a.dfsg.1-10_i386
|
||||||
|
libacl1_2.2.51-8_amd64
|
||||||
|
libacl1_2.2.51-8_i386
|
||||||
|
libattr1_1:2.4.46-8_amd64
|
||||||
|
libattr1_1:2.4.46-8_i386
|
||||||
|
libbz2-1.0_1.0.6-4_amd64
|
||||||
|
libbz2-1.0_1.0.6-4_i386
|
||||||
|
libc-bin_2.13-38+deb7u1_amd64
|
||||||
|
libc-bin_2.13-38+deb7u1_i386
|
||||||
|
libc6_2.13-38+deb7u1_amd64
|
||||||
|
libc6_2.13-38+deb7u1_i386
|
||||||
|
libgcc1_1:4.7.2-5_amd64
|
||||||
|
libgcc1_1:4.7.2-5_i386
|
||||||
|
liblzma5_5.1.1alpha+20120614-2_amd64
|
||||||
|
liblzma5_5.1.1alpha+20120614-2_i386
|
||||||
|
libselinux1_2.1.9-5_amd64
|
||||||
|
libselinux1_2.1.9-5_i386
|
||||||
|
multiarch-support_2.13-38+deb7u1_amd64
|
||||||
|
multiarch-support_2.13-38+deb7u1_i386
|
||||||
|
tar_1.26+dfsg-0.1_amd64
|
||||||
|
tar_1.26+dfsg-0.1_i386
|
||||||
|
zlib1g_1:1.2.7.dfsg-13_amd64
|
||||||
|
zlib1g_1:1.2.7.dfsg-13_i386
|
||||||
@@ -11,3 +11,4 @@ from .diff import *
|
|||||||
from .merge import *
|
from .merge import *
|
||||||
from .drop import *
|
from .drop import *
|
||||||
from .rename import *
|
from .rename import *
|
||||||
|
from .search import *
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
from lib import BaseTest
|
||||||
|
|
||||||
|
|
||||||
|
class SearchSnapshot1Test(BaseTest):
|
||||||
|
"""
|
||||||
|
search snapshot: regular search
|
||||||
|
"""
|
||||||
|
fixtureDB = True
|
||||||
|
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||||
|
fixtureCmds = ["aptly snapshot create wheezy-main from mirror wheezy-main"]
|
||||||
|
runCmd = "aptly snapshot search wheezy-main '$$Architecture (i386), Name (% *-dev)'"
|
||||||
|
|
||||||
|
|
||||||
|
class SearchSnapshot2Test(BaseTest):
|
||||||
|
"""
|
||||||
|
search snapshot: missing snapshot
|
||||||
|
"""
|
||||||
|
runCmd = "aptly snapshot search snapshot-xx 'Name'"
|
||||||
|
expectedCode = 1
|
||||||
|
|
||||||
|
|
||||||
|
class SearchSnapshot3Test(BaseTest):
|
||||||
|
"""
|
||||||
|
search snapshot: wrong expression
|
||||||
|
"""
|
||||||
|
fixtureDB = True
|
||||||
|
fixtureCmds = ["aptly snapshot create wheezy-main from mirror wheezy-main"]
|
||||||
|
expectedCode = 1
|
||||||
|
runCmd = "aptly snapshot search wheezy-main '$$Architecture (i386'"
|
||||||
|
|
||||||
|
|
||||||
|
class SearchSnapshot4Test(BaseTest):
|
||||||
|
"""
|
||||||
|
search snapshot: with-deps search
|
||||||
|
"""
|
||||||
|
fixtureDB = True
|
||||||
|
fixtureCmds = ["aptly snapshot create wheezy-main from mirror wheezy-main"]
|
||||||
|
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||||
|
runCmd = "aptly snapshot search -with-deps wheezy-main 'Name (coreutils)'"
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
|||||||
|
ERROR: unable to search: local repo with name repo-xx not found
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
ERROR: unable to search: parsing failed: unexpected token <EOL>: expecting ')'
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
coreutils_8.13-3.5_amd64
|
||||||
|
coreutils_8.13-3.5_i386
|
||||||
|
dpkg_1.16.12_amd64
|
||||||
|
dpkg_1.16.12_i386
|
||||||
|
gcc-4.7-base_4.7.2-5_amd64
|
||||||
|
gcc-4.7-base_4.7.2-5_i386
|
||||||
|
install-info_4.13a.dfsg.1-10_amd64
|
||||||
|
install-info_4.13a.dfsg.1-10_i386
|
||||||
|
libacl1_2.2.51-8_amd64
|
||||||
|
libacl1_2.2.51-8_i386
|
||||||
|
libattr1_1:2.4.46-8_amd64
|
||||||
|
libattr1_1:2.4.46-8_i386
|
||||||
|
libbz2-1.0_1.0.6-4_amd64
|
||||||
|
libbz2-1.0_1.0.6-4_i386
|
||||||
|
libc-bin_2.13-38+deb7u1_amd64
|
||||||
|
libc-bin_2.13-38+deb7u1_i386
|
||||||
|
libc6_2.13-38+deb7u1_amd64
|
||||||
|
libc6_2.13-38+deb7u1_i386
|
||||||
|
libgcc1_1:4.7.2-5_amd64
|
||||||
|
libgcc1_1:4.7.2-5_i386
|
||||||
|
liblzma5_5.1.1alpha+20120614-2_amd64
|
||||||
|
liblzma5_5.1.1alpha+20120614-2_i386
|
||||||
|
libselinux1_2.1.9-5_amd64
|
||||||
|
libselinux1_2.1.9-5_i386
|
||||||
|
multiarch-support_2.13-38+deb7u1_amd64
|
||||||
|
multiarch-support_2.13-38+deb7u1_i386
|
||||||
|
tar_1.26+dfsg-0.1_amd64
|
||||||
|
tar_1.26+dfsg-0.1_i386
|
||||||
|
zlib1g_1:1.2.7.dfsg-13_amd64
|
||||||
|
zlib1g_1:1.2.7.dfsg-13_i386
|
||||||
@@ -13,3 +13,4 @@ from .move import *
|
|||||||
from .remove import *
|
from .remove import *
|
||||||
from .show import *
|
from .show import *
|
||||||
from .rename import *
|
from .rename import *
|
||||||
|
from .search import *
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
from lib import BaseTest
|
||||||
|
|
||||||
|
|
||||||
|
class SearchRepo1Test(BaseTest):
|
||||||
|
"""
|
||||||
|
search repo: regular search
|
||||||
|
"""
|
||||||
|
fixtureDB = True
|
||||||
|
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||||
|
fixtureCmds = ["aptly repo create wheezy-main", "aptly repo import wheezy-main wheezy-main Name"]
|
||||||
|
runCmd = "aptly repo search wheezy-main '$$Architecture (i386), Name (% *-dev)'"
|
||||||
|
|
||||||
|
|
||||||
|
class SearchRepo2Test(BaseTest):
|
||||||
|
"""
|
||||||
|
search repo: missing repo
|
||||||
|
"""
|
||||||
|
runCmd = "aptly repo search repo-xx 'Name'"
|
||||||
|
expectedCode = 1
|
||||||
|
|
||||||
|
|
||||||
|
class SearchRepo3Test(BaseTest):
|
||||||
|
"""
|
||||||
|
search repo: wrong expression
|
||||||
|
"""
|
||||||
|
fixtureDB = True
|
||||||
|
fixtureCmds = ["aptly repo create wheezy-main", "aptly repo import wheezy-main wheezy-main Name"]
|
||||||
|
expectedCode = 1
|
||||||
|
runCmd = "aptly repo search wheezy-main '$$Architecture (i386'"
|
||||||
|
|
||||||
|
|
||||||
|
class SearchRepo4Test(BaseTest):
|
||||||
|
"""
|
||||||
|
search repo: with-deps search
|
||||||
|
"""
|
||||||
|
fixtureDB = True
|
||||||
|
fixtureCmds = ["aptly repo create wheezy-main", "aptly repo import wheezy-main wheezy-main Name"]
|
||||||
|
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||||
|
runCmd = "aptly repo search -with-deps wheezy-main 'Name (coreutils)'"
|
||||||
Reference in New Issue
Block a user