mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-04 05:10:40 +00:00
Allow filter to be empty for aptly * search commands
Empty filter implies "select all packages".
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -43,3 +43,12 @@ class SearchMirror5Test(BaseTest):
|
||||
fixtureDB = True
|
||||
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||
runCmd = "aptly mirror search -format='{{.Package}}#{{.Version}}' wheezy-main '$$Architecture (i386), Name (% *-dev)'"
|
||||
|
||||
|
||||
class SearchMirror6Test(BaseTest):
|
||||
"""
|
||||
search mirror: no query
|
||||
"""
|
||||
fixtureDB = True
|
||||
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||
runCmd = "aptly mirror search -format='{{.Package}}#{{.Version}}' wheezy-main"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -57,3 +57,12 @@ class SearchSnapshot6Test(BaseTest):
|
||||
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||
fixtureCmds = ["aptly snapshot create wheezy-main from mirror wheezy-main"]
|
||||
runCmd = "aptly snapshot search -format='{{.Package}}#{{.Version}}' wheezy-main '$$Architecture (i386), Name (% *-dev)'"
|
||||
|
||||
class SearchSnapshot7Test(BaseTest):
|
||||
"""
|
||||
search snapshot: without query
|
||||
"""
|
||||
fixtureDB = True
|
||||
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||
fixtureCmds = ["aptly snapshot create wheezy-main from mirror wheezy-main"]
|
||||
runCmd = "aptly snapshot search -format='{{.Package}}#{{.Version}}' wheezy-main"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -47,3 +47,12 @@ class SearchRepo5Test(BaseTest):
|
||||
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||
fixtureCmds = ["aptly repo create wheezy-main", "aptly repo import wheezy-main wheezy-main Name"]
|
||||
runCmd = "aptly repo search -format='{{.Package}}#{{.Version}}' wheezy-main '$$Architecture (i386), Name (% *-dev)'"
|
||||
|
||||
class SearchRepo6Test(BaseTest):
|
||||
"""
|
||||
search repo: without query
|
||||
"""
|
||||
fixtureDB = True
|
||||
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||
fixtureCmds = ["aptly repo create wheezy-main", "aptly repo import wheezy-main wheezy-main Name"]
|
||||
runCmd = "aptly repo search wheezy-main"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -42,3 +42,11 @@ class SearchPackage5Test(BaseTest):
|
||||
fixtureDB = True
|
||||
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||
runCmd = "aptly package search -format='{{.Package}}#{{.Version}}' '$$Architecture (i386), Name (% *-dev)'"
|
||||
|
||||
class SearchPackage6Test(BaseTest):
|
||||
"""
|
||||
search package: no query
|
||||
"""
|
||||
fixtureDB = True
|
||||
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
|
||||
runCmd = "aptly package search"
|
||||
|
||||
Reference in New Issue
Block a user