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
+13 -13
View File
@@ -6,8 +6,8 @@ class MoveRepo1Test(BaseTest):
move in local repo: simple move
"""
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool repo2",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo2",
"aptly repo add repo1 ${files}"
]
runCmd = "aptly repo move repo1 repo2 'pyspi (>> 0.6.1-1.3)' libboost-program-options-dev_1.49.0.1_i386"
@@ -26,8 +26,8 @@ class MoveRepo2Test(BaseTest):
move in local repo: simple move w/deps
"""
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool repo2",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo2",
"aptly repo add repo1 ${files}"
]
runCmd = "aptly -architectures=i386,amd64 repo move -with-deps repo1 repo2 'pyspi (>> 0.6.1-1.3)' libboost-program-options-dev_1.49.0.1_i386"
@@ -46,8 +46,8 @@ class MoveRepo3Test(BaseTest):
move in local repo: simple move w/deps but w/o archs
"""
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool repo2",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo2",
"aptly repo add repo1 ${files}"
]
runCmd = "aptly repo move -with-deps repo1 repo2 'pyspi (>> 0.6.1-1.3)' libboost-program-options-dev_1.49.0.1_i386"
@@ -62,8 +62,8 @@ class MoveRepo4Test(BaseTest):
move in local repo: dry run
"""
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool repo2",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo2",
"aptly repo add repo1 ${files}"
]
runCmd = "aptly repo move -dry-run repo1 repo2 'pyspi (>> 0.6.1-1.3)' libboost-program-options-dev_1.49.0.1_i386"
@@ -82,8 +82,8 @@ class MoveRepo5Test(BaseTest):
move in local repo: wrong dep
"""
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool repo2",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo2",
"aptly repo add repo1 ${files}"
]
runCmd = "aptly repo move repo1 repo2 'pyspi >> 0.6.1-1.3)'"
@@ -98,7 +98,7 @@ class MoveRepo6Test(BaseTest):
move in local repo: same src and dest
"""
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
]
runCmd = "aptly repo move repo1 repo1 pyspi"
expectedCode = 1
@@ -109,7 +109,7 @@ class MoveRepo7Test(BaseTest):
move in local repo: no dst
"""
fixtureCmds = [
"aptly repo create -comment=Cool repo1",
"aptly repo create -comment=Cool -distribution=squeeze repo1",
]
runCmd = "aptly repo move repo1 repo2 pyspi"
expectedCode = 1
@@ -120,7 +120,7 @@ class MoveRepo8Test(BaseTest):
move in local repo: no src
"""
fixtureCmds = [
"aptly repo create -comment=Cool repo2",
"aptly repo create -comment=Cool -distribution=squeeze repo2",
]
runCmd = "aptly repo move repo1 repo2 pyspi"
expectedCode = 1