Commit Graph

61 Commits

Author SHA1 Message Date
Rick 11ab39f11f
support to load swaggers from an extension (#639)
* feat: support to download differnt kinds of ext

* support to load swaggers from an extension

* docs(extension): add swagger data extension and update documentation

- Add swagger data extension to the extensions list
- Update documentation to include new extension usage

* Potential fix for code scanning alert no. 69: Arbitrary file access during archive extraction ("Zip Slip")

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Rick <1450685+LinuxSuRen@users.noreply.github.com>

---------

Signed-off-by: Rick <1450685+LinuxSuRen@users.noreply.github.com>
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-03-06 23:17:57 +08:00
Rick cc5a463b4d
add mysql/etcd query support (#624)
* feat: add data query service

---------

Co-authored-by: rick <linuxsuren@users.noreply.github.com>
2025-02-23 20:17:33 +08:00
Rick accdb0e4ef
feat: add metrics support to mock server (#606)
* feat: add metrics support to mock server

* add unit tests

* fix the unit testing

---------

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2025-02-08 09:28:39 +08:00
Rick c827476bc9
[wip] feat: add http proxy support (#597)
* feat: add http proxy support

* feat: enhance server command to print local IPs on startup

- Added a new function `printLocalIPs` to display available local IP addresses when the server starts.
- Integrated the IP printing functionality into both the mock command and the server command, improving visibility of server accessibility.

This change helps users easily identify the server's available addresses for better connectivity.

* feat: support to set proxy on ui

* update the test suite page

* test pass with the http proxy mode

* update grpc files

* update grpc files

* support insecure during testing

* fix the unit tests

* add more unit testing

---------

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2025-01-20 23:10:08 +08:00
Rick 9e4259f09f
support to run test case with filter (#560)
* feat: support to get go mod version

* support to run test case with filter

* fix unit tests

* fix dockerfile

* add missing console/atest-ui/package.json

* fix the e2e

---------

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2024-11-11 11:42:53 +08:00
Rick bbaf91f73c
feat: support to config mock server on ui (#552)
* doc: add document of atest extension

* feat: support to config mock server on ui

* add more document

* Fix code scanning alert no. 61: Incorrect conversion between integer types

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Rick <1450685+LinuxSuRen@users.noreply.github.com>

---------

Signed-off-by: Rick <1450685+LinuxSuRen@users.noreply.github.com>
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-10-29 21:03:45 +08:00
Rick 296fd4084f
feat: support to show the body size on page (#536)
increase the body size limit default value to be 5120

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2024-09-25 13:41:11 +08:00
Rick f63520e765
move auth module into a new project (#522)
* move auth module into a new project

* upgrade go 1.22.2. to 1.22.4

---------

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2024-08-09 14:28:10 +08:00
Rick 62383ba78b
feat: support local sercret service (#516)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2024-07-19 13:43:18 +08:00
Rick b7926da2c0
feat: custom the grpc gateway restful path (#497) 2024-07-01 08:02:07 +08:00
Rick dabb95542d
feat: add http requests metrics (#495)
* feat: add http requests metrics

* add more error log

* move the api-testing-scema.json

* copy api-testing-schema.json during the docs build process

* do not ignore helm directory

---------

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2024-06-19 14:43:33 +08:00
Rick ee312cd07f
feat: add test case execution related promethus metrics (#488) 2024-06-16 15:01:16 +08:00
Rick e866727d53
feat: support to run test suite via http (#478)
* feat: support to run test suite via http

* improve the extension download

* download extenion in the e2e

* add extension-registry into the helm values.yaml file

* update helm install in e2e test

* fix the k8s helm chart testing

---------

Co-authored-by: rick <linuxsuren@users.noreply.github.com>
2024-06-10 18:52:33 +08:00
DWJ 2e0779dfdc
feat: add TLS for gRPC server endpoint (#477) 2024-06-09 17:42:01 +08:00
Rick c415efadbe
chore: improve the home dir getting (#474)
* chore: improve the home dir getting

* replace all home dir calls

* upgrade goreleaser

* add missing imports

* fix the socket filepath

---------

Co-authored-by: rick <linuxsuren@users.noreply.github.com>
2024-06-05 11:01:01 +08:00
Rick 0cc0bb8be1
feat: support to download extensions automatically (#471)
* feat: add the extension sub-commad to download it

* do not put store-ext in the main image

* support to fetch the latest image tag

* finish the basic feature of extension downloading

* add some unit tests

* support different image registry

* add more unit tests

* remove useless files

* fix the unit test case

* simplify the apt install in the dockerfile

* add explanation for the empty methods

---------

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2024-06-04 10:30:38 +08:00
Rick a11b7ff550
fix: not work when grpc port is a random one (#467)
Co-authored-by: rick <linuxsuren@users.noreply.github.com>
2024-05-31 13:40:57 +08:00
Rick 1a720c03f8
fix: avoid exit the main process when plugin start failed (#463)
Co-authored-by: rick <linuxsuren@users.noreply.github.com>
2024-05-29 09:43:28 +08:00
Rick 6bf626d72d
fix: the status code not match error ignored (#411)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2024-04-30 15:49:05 +08:00
Rick 02026b2199
feat: support to set the prefix of mock server (#402) (#410)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2024-04-30 14:06:15 +08:00
Rick ffac34fd9d
feat: support to set the prefix of mock server (#402)
Co-authored-by: rick <linuxsuren@users.noreply.github.com>
2024-04-28 08:30:52 +08:00
Haibara Ai 42c4eb259b
fix:Handle gRPC messages larger than max size (#399)
* fix:Handle gRPC messages larger than max size
2024-04-26 16:29:19 +08:00
Rick f4f1d4c312
feat: support combine mock and core server together (#390)
Co-authored-by: rick <linuxsuren@users.noreply.github.com>
2024-04-22 21:29:52 +08:00
YuLuo 1943e7d82e
feat: add logging support (#389)
* feat: add logging support

---------

Signed-off-by: yuluo-yx <yuluo08290126@gmail.com>
Signed-off-by: YuLuo <yuluo08290126@gmail.com>
Signed-off-by: Rick <1450685+LinuxSuRen@users.noreply.github.com>
Co-authored-by: Rick <1450685+LinuxSuRen@users.noreply.github.com>
2024-04-22 18:15:46 +08:00
Rick cc662bdd17
fix: the extension cannot run in startup (#356)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2024-04-10 10:36:03 +08:00
Rick 1c5b72df0b
feat: add graphql feature support (#326)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2023-12-21 11:15:12 +08:00
Rick ba51c74b33
chore: add favicon for the web page (#316)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2023-12-15 12:32:18 +08:00
Rick 988f7059a3
ui: improve the ui page layout (#314)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2023-12-14 11:35:38 +08:00
Rick 05c338ea35
feat: support to get pprof of an extension (#307)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2023-12-07 11:06:45 +08:00
Rick 0d1d64f8cd
fix: extension agent cannot quit normally in container (#303)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2023-12-04 12:19:44 +08:00
Rick d6fde9f38b
fix: the extension might not quit normally (#302)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2023-12-02 19:16:33 +08:00
Rick 2f83deddec
test: add more e2e test cases (#294)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2023-11-28 17:36:37 +08:00
Rick 3520379db3
feat: support loading oauth info from env var (#288)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2023-11-26 13:29:31 +08:00
Rick 8bf774a2c9
feat: add device oauth mode (#287)
* chore: reduce the http client usage

having a central place to get the http client

* feat: add device oauth mode

---------

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2023-11-26 13:04:21 +08:00
Rick d300c4b047
feat: add auth support for server mode (#283)
* chore: refactory the body verify

* feat: add auth support

---------

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2023-11-24 11:53:48 +08:00
Rick 35c685cc00
feat: support to install as a windows service (#273)
but cannot start it for unknown reason

Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2023-11-14 18:05:13 +08:00
Rick b8bf7ffcbe
feat: complete the etcd store feature (#266) 2023-11-08 15:30:25 +08:00
Rick 0e5ee61c94
feat: support loading proto file from URL (#261) 2023-11-01 10:59:36 +08:00
Rick fac641fef9
feat: support starting store extentsion automatically (#246) 2023-10-23 15:59:22 +08:00
Rick 9b8cee315e
feat: support integrating with skywalking (#219)
* feat: support integrating with skywalking

* add skywalking browser support
2023-09-26 07:29:10 +08:00
Rick 58905fdd8f
fix: should not parse the response body if it is not JSON format (#218) 2023-09-22 13:52:11 +08:00
Rick 94228f65c5
feat: support recording the test results into prometheus (#215) 2023-09-14 13:57:41 +08:00
Rick e21e801b19
add some error handling on the UI (#213)
Co-authored-by: rick <linuxsuren@users.noreply.github.com>
2023-09-11 09:11:44 +08:00
Rick 9efccb1430
feat: support to start plugin in the server sub-cmd (#195)
* feat: support to start plugin in the server sub-cmd

* add pull flag into the service sub-cmd
2023-08-31 09:53:19 +08:00
Rick 56a3877751
feat: support to download atest self (#180) 2023-08-23 20:03:28 +08:00
Rick 200134093d
fix: the test suite data manipulate is not thread safe (#168)
* fix: the test suite data manipulate is not thread safe

* add more unit tests
2023-08-17 10:35:20 +08:00
Rick e2f2d323f0
feat: add secret service interface (#164) 2023-08-12 08:02:59 +08:00
Rick 8d459a9eed
feat: support add multiple stores (#147) 2023-07-29 22:14:58 +08:00
Rick 01da53f39e
feat: add default local storage mount for container service (#142) 2023-07-26 15:17:02 +08:00
Rick e0e954702c
feat: add parameters in the test suite (#139) 2023-07-24 13:59:33 +08:00