diff --git a/README.md b/README.md index 1863c80..80c6650 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ This is an awesome API testing tool. 🚀 * Pre and post handle with the API request * Run in server mode, and provide the [gRPC](pkg/server/server.proto) and HTTP endpoint * [VS Code extension](https://github.com/LinuxSuRen/vscode-api-testing) support +* Simple Database query support * Multiple storage backends supported(Local, ORM Database, S3, Git, Etcd, etc.) * [HTTP API record](https://github.com/LinuxSuRen/atest-ext-collector) * Install in multiple use cases(CLI, Container, Native-Service, [Operator](https://github.com/LinuxSuRen/atest-operator), Helm, etc.) diff --git a/cmd/server.go b/cmd/server.go index 32d3d9e..8a904d1 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -102,7 +102,7 @@ func createServerCmd(execer fakeruntime.Execer, httpServer server.HTTPServer) (c flags.StringArrayVarP(&opt.mockConfig, "mock-config", "", nil, "The mock config files") flags.StringVarP(&opt.mockPrefix, "mock-prefix", "", "/mock", "The mock server API prefix") flags.StringVarP(&opt.extensionRegistry, "extension-registry", "", "docker.io", "The extension registry URL") - flags.DurationVarP(&opt.downloadTimeout, "download-timeout", "", time.Second*10, "The timeout of extension download") + flags.DurationVarP(&opt.downloadTimeout, "download-timeout", "", time.Minute, "The timeout of extension download") // gc related flags flags.IntVarP(&opt.gcPercent, "gc-percent", "", 100, "The GC percent of Go") diff --git a/console/atest-ui/src/views/DataManager.vue b/console/atest-ui/src/views/DataManager.vue index 0bf7de3..2005c7d 100644 --- a/console/atest-ui/src/views/DataManager.vue +++ b/console/atest-ui/src/views/DataManager.vue @@ -115,7 +115,7 @@ const executeQuery = async () => { - + diff --git a/pkg/server/store_ext_manager.go b/pkg/server/store_ext_manager.go index 7b47cce..c6148de 100644 --- a/pkg/server/store_ext_manager.go +++ b/pkg/server/store_ext_manager.go @@ -103,7 +103,7 @@ func (s *storeExtManager) Start(name, socket string) (err error) { } else { binaryPath, err = s.execer.LookPath(name) if err != nil { - err = fmt.Errorf("not found extension, try to download it.") + err = fmt.Errorf("not found extension, try to download it, error: %v", err) go func() { reader, dErr := s.ociDownloader.Download(name, "", "") if dErr != nil { diff --git a/tools/make/run.mk b/tools/make/run.mk index 26ab916..18869e9 100644 --- a/tools/make/run.mk +++ b/tools/make/run.mk @@ -13,7 +13,7 @@ run-server: ## Run the API Testing server run-server: build-ui run-backend run-backend: go run . server --local-storage 'bin/*.yaml' --console-path ${ATEST_UI}/dist \ - --extension-registry ghcr.io --download-timeout 90s + --extension-registry ghcr.io --download-timeout 10m .PHONY: run-console run-console: ## Run the API Testing console