System test on using complex query when importing.

This commit is contained in:
Andrey Smirnov
2014-07-12 18:02:57 +04:00
parent ae3c98c210
commit bc27c6e14d
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
Loading packages...
[o] exim4_4.80-7_all imported
[o] nginx-extras_1.2.1-2.2+wheezy2_amd64 imported
[o] nginx-extras_1.2.1-2.2+wheezy2_i386 imported
[o] nginx-full_1.2.1-2.2+wheezy2_amd64 imported
[o] nginx-full_1.2.1-2.2+wheezy2_i386 imported
[o] nginx-light_1.2.1-2.2+wheezy2_amd64 imported
[o] nginx-light_1.2.1-2.2+wheezy2_i386 imported
[o] nginx-naxsi-ui_1.2.1-2.2+wheezy2_all imported
[o] nginx-naxsi_1.2.1-2.2+wheezy2_amd64 imported
[o] nginx-naxsi_1.2.1-2.2+wheezy2_i386 imported

View File

@@ -119,3 +119,17 @@ class ImportRepo8Test(BaseTest):
]
runCmd = "aptly repo import wheezy-main repo1 pyspi"
expectedCode = 1
class ImportRepo9Test(BaseTest):
"""
import to local repo: import with complex query
"""
fixtureDB = True
fixtureCmds = [
"aptly repo create -comment=Cool -distribution=squeeze repo1",
]
runCmd = "aptly repo import wheezy-main repo1 '(httpd, $$Source (=nginx)) | exim4'"
def output_processor(self, output):
return "\n".join(sorted(output.split("\n")))