support to trigger query when enter event

This commit is contained in:
rick 2025-02-21 18:30:31 +08:00
parent eb311a5623
commit 414b38b2a2
No known key found for this signature in database
GPG Key ID: 260A80C757EC6783
5 changed files with 5 additions and 4 deletions

View File

@ -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.)

View File

@ -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")

View File

@ -115,7 +115,7 @@ const executeQuery = async () => {
</el-col>
<el-col :span="18">
<el-form-item>
<el-input v-model="sqlQuery" :placeholder="queryTip"></el-input>
<el-input v-model="sqlQuery" :placeholder="queryTip" @keyup.enter="executeQuery"></el-input>
</el-form-item>
</el-col>
<el-col :span="2">

View File

@ -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 {

View File

@ -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