mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
Command to replace the whole staged source list added.
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
This commit is contained in:
committed by
André Roth
parent
ee3124cfc6
commit
c9309c926c
5
system/t06_publish/PublishSourceReplace1Test_gold
Normal file
5
system/t06_publish/PublishSourceReplace1Test_gold
Normal file
@@ -0,0 +1,5 @@
|
||||
Clearing staged source list...
|
||||
Adding component 'main-new' with source 'snap2' [snapshot]...
|
||||
Adding component 'test-new' with source 'snap3' [snapshot]...
|
||||
|
||||
You can run 'aptly publish update maverick .' to update the content of the published repository.
|
||||
@@ -156,6 +156,22 @@ class PublishSourceUpdate3Test(BaseTest):
|
||||
gold_processor = BaseTest.expand_environ
|
||||
|
||||
|
||||
class PublishSourceReplace1Test(BaseTest):
|
||||
"""
|
||||
publish source replace: Replace existing sources
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixturePool = True
|
||||
fixtureCmds = [
|
||||
"aptly snapshot create snap1 from mirror gnuplot-maverick",
|
||||
"aptly snapshot create snap2 empty",
|
||||
"aptly snapshot create snap3 empty",
|
||||
"aptly publish snapshot -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -distribution=maverick -component=main,test snap1 snap2",
|
||||
]
|
||||
runCmd = "aptly publish source replace -component=main-new,test-new maverick snap2 snap3"
|
||||
gold_processor = BaseTest.expand_environ
|
||||
|
||||
|
||||
class PublishSourceRemove1Test(BaseTest):
|
||||
"""
|
||||
publish source remove: Remove single source
|
||||
|
||||
Reference in New Issue
Block a user