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
|
* Pre and post handle with the API request
|
||||||
* Run in server mode, and provide the [gRPC](pkg/server/server.proto) and HTTP endpoint
|
* 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
|
* [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.)
|
* Multiple storage backends supported(Local, ORM Database, S3, Git, Etcd, etc.)
|
||||||
* [HTTP API record](https://github.com/LinuxSuRen/atest-ext-collector)
|
* [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.)
|
* 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.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.mockPrefix, "mock-prefix", "", "/mock", "The mock server API prefix")
|
||||||
flags.StringVarP(&opt.extensionRegistry, "extension-registry", "", "docker.io", "The extension registry URL")
|
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
|
// gc related flags
|
||||||
flags.IntVarP(&opt.gcPercent, "gc-percent", "", 100, "The GC percent of Go")
|
flags.IntVarP(&opt.gcPercent, "gc-percent", "", 100, "The GC percent of Go")
|
||||||
|
|
|
@ -115,7 +115,7 @@ const executeQuery = async () => {
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="18">
|
<el-col :span="18">
|
||||||
<el-form-item>
|
<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-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
|
|
|
@ -103,7 +103,7 @@ func (s *storeExtManager) Start(name, socket string) (err error) {
|
||||||
} else {
|
} else {
|
||||||
binaryPath, err = s.execer.LookPath(name)
|
binaryPath, err = s.execer.LookPath(name)
|
||||||
if err != nil {
|
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() {
|
go func() {
|
||||||
reader, dErr := s.ociDownloader.Download(name, "", "")
|
reader, dErr := s.ociDownloader.Download(name, "", "")
|
||||||
if dErr != nil {
|
if dErr != nil {
|
||||||
|
|
|
@ -13,7 +13,7 @@ run-server: ## Run the API Testing server
|
||||||
run-server: build-ui run-backend
|
run-server: build-ui run-backend
|
||||||
run-backend:
|
run-backend:
|
||||||
go run . server --local-storage 'bin/*.yaml' --console-path ${ATEST_UI}/dist \
|
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
|
.PHONY: run-console
|
||||||
run-console: ## Run the API Testing console
|
run-console: ## Run the API Testing console
|
||||||
|
|
Loading…
Reference in New Issue