support to trigger query when enter event
This commit is contained in:
parent
eb311a5623
commit
414b38b2a2
|
@ -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.)
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue