Default distribution/component could be specified when creating repo. #12

This commit is contained in:
Andrey Smirnov
2014-03-26 21:24:09 +04:00
parent 7f2f435e2d
commit 0f8f43b9f0
38 changed files with 113 additions and 49 deletions
+7 -7
View File
@@ -7,7 +7,7 @@ class ImportRepo1Test(BaseTest):
"""
fixtureDB = True
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
"aptly repo add repo1 ${files}"
]
runCmd = "aptly repo import wheezy-main repo1 nginx unpaper_0.4.2-1_amd64"
@@ -26,7 +26,7 @@ class ImportRepo2Test(BaseTest):
"""
fixtureDB = True
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
"aptly repo add repo1 ${files}"
]
runCmd = "aptly -architectures=i386,amd64 repo import -with-deps wheezy-main repo1 dpkg_1.16.12_i386 userinfo_2.2-3_amd64"
@@ -45,7 +45,7 @@ class ImportRepo3Test(BaseTest):
"""
fixtureDB = True
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
]
runCmd = "aptly repo import -with-deps wheezy-contrib repo1 redeclipse"
expectedCode = 1
@@ -60,7 +60,7 @@ class ImportRepo4Test(BaseTest):
"""
fixtureDB = True
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
]
runCmd = "aptly -architectures=i386,amd64 repo import -dry-run -with-deps wheezy-contrib repo1 redeclipse-dbg"
@@ -78,7 +78,7 @@ class ImportRepo5Test(BaseTest):
"""
fixtureDB = True
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
]
runCmd = "aptly repo import wheezy-contrib repo1 'pyspi >> 0.6.1-1.3)'"
expectedCode = 1
@@ -92,7 +92,7 @@ class ImportRepo6Test(BaseTest):
import to local repo: non-updated mirror
"""
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
"aptly mirror create --ignore-signatures mirror1 http://mirror.yandex.ru/debian/ wheezy",
]
runCmd = "aptly repo import mirror1 repo1 nginx"
@@ -115,7 +115,7 @@ class ImportRepo8Test(BaseTest):
import to local repo: no src
"""
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
]
runCmd = "aptly repo import wheezy-main repo1 pyspi"
expectedCode = 1