mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
refactor(test): make sure cli tests are not internal unless they need to be (#1878)
As part of this change searchConfig needed to be exported, as it was passed as a parameter to exported functions At this moment most of the tests remaining internal depend on the mock service. The interface it implements has unexported methods. Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
@@ -20,19 +20,19 @@ import (
|
||||
test "zotregistry.io/zot/pkg/test/common"
|
||||
)
|
||||
|
||||
func getDefaultSearchConf(baseURL string) searchConfig {
|
||||
func getDefaultSearchConf(baseURL string) SearchConfig {
|
||||
verifyTLS := false
|
||||
debug := false
|
||||
verbose := true
|
||||
outputFormat := "text"
|
||||
|
||||
return searchConfig{
|
||||
servURL: baseURL,
|
||||
resultWriter: io.Discard,
|
||||
verifyTLS: verifyTLS,
|
||||
debug: debug,
|
||||
verbose: verbose,
|
||||
outputFormat: outputFormat,
|
||||
return SearchConfig{
|
||||
ServURL: baseURL,
|
||||
ResultWriter: io.Discard,
|
||||
VerifyTLS: verifyTLS,
|
||||
Debug: debug,
|
||||
Verbose: verbose,
|
||||
OutputFormat: outputFormat,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user