mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-26 13:47:40 +00:00
Default distribution/component could be specified when creating repo. #12
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user