This is an automated email from the ASF dual-hosted git repository.
nic-6443 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 2c9e53c3e test: run graphql-proxy-cache and config-center-json suites
in CI (#13621)
2c9e53c3e is described below
commit 2c9e53c3e5e0cecad55a57751e5cccbb350090a2
Author: Nic <[email protected]>
AuthorDate: Tue Jun 30 14:13:00 2026 +0800
test: run graphql-proxy-cache and config-center-json suites in CI (#13621)
---
.github/workflows/build.yml | 4 ++--
t/config-center-json/plugin.t | 8 ++++----
t/config-center-json/route.t | 17 ++++++++++-------
t/config-center-json/stream-route.t | 4 ++--
t/plugin/graphql-proxy-cache/memory.t | 6 +++---
5 files changed, 21 insertions(+), 18 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6ba9126cf..7d891f877 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -29,9 +29,9 @@ jobs:
os_name:
- linux_openresty
test_dir:
- - t/plugin/[a-k]*.t t/plugin/dubbo-proxy
+ - t/plugin/[a-k]*.t t/plugin/dubbo-proxy t/plugin/graphql-proxy-cache
- t/stream-plugin t/plugin/[l-z]*.t t/plugin/proxy-cache
- - t/admin t/cli t/config-center-yaml t/control t/core t/debug
t/discovery t/error_page t/http3/admin t/misc
+ - t/admin t/cli t/config-center-json t/config-center-yaml t/control
t/core t/debug t/discovery t/error_page t/http3/admin t/misc
- t/node t/pubsub t/router t/script t/secret t/stream-node t/utils
t/wasm t/xds-library t/xrpc
runs-on: ${{ matrix.platform }}
diff --git a/t/config-center-json/plugin.t b/t/config-center-json/plugin.t
index 9dd143700..163fe5452 100644
--- a/t/config-center-json/plugin.t
+++ b/t/config-center-json/plugin.t
@@ -74,7 +74,7 @@ GET /t
--- response_body
hello world
--- error_log
-use config_provider: yaml
+use config_provider: json
load(): loaded plugin and sort by priority: 3000 name: ip-restriction
load(): loaded plugin and sort by priority: 2510 name: jwt-auth
load_stream(): loaded stream plugin and sort by priority: 1000 name: mqtt-proxy
@@ -96,7 +96,7 @@ apisix:
deployment:
role: data_plane
role_data_plane:
- config_provider: yaml
+ config_provider: json
plugins:
- ip-restriction
- jwt-auth
@@ -213,7 +213,7 @@ apisix:
deployment:
role: data_plane
role_data_plane:
- config_provider: yaml
+ config_provider: json
plugins:
- ip-restriction
- jwt-auth
@@ -286,6 +286,6 @@ GET /t
--- response_body
hello world
--- error_log
-use config_provider: yaml
+use config_provider: json
load(): new plugins: {}
load_stream(): new plugins: {}
diff --git a/t/config-center-json/route.t b/t/config-center-json/route.t
index eef7b5e8e..b1331c9b1 100644
--- a/t/config-center-json/route.t
+++ b/t/config-center-json/route.t
@@ -47,7 +47,7 @@ GET /hello
--- response_body
hello world
--- error_log
-use config_provider: yaml
+use config_provider: json
@@ -73,7 +73,7 @@ use config_provider: yaml
GET /hello
--- error_code: 404
--- error_log
-use config_provider: yaml
+use config_provider: json
@@ -158,8 +158,11 @@ property "uri" validation failed
}
--- request
GET /hello
+--- error_code: 404
--- response_body
-hello world
+{"error_msg":"404 Route Not Found"}
+--- error_log
+failed to check item data of [routes] err:unknown plugin
@@ -172,7 +175,7 @@ apisix:
deployment:
role: data_plane
role_data_plane:
- config_provider: yaml
+ config_provider: json
--- apisix_json
{
"routes": [
@@ -210,7 +213,7 @@ apisix:
deployment:
role: data_plane
role_data_plane:
- config_provider: yaml
+ config_provider: json
--- apisix_json
{
"routes": [
@@ -248,7 +251,7 @@ apisix:
deployment:
role: data_plane
role_data_plane:
- config_provider: yaml
+ config_provider: json
--- apisix_json
{
"routes": [
@@ -282,7 +285,7 @@ apisix:
deployment:
role: data_plane
role_data_plane:
- config_provider: yaml
+ config_provider: json
--- apisix_json
{
"routes": [
diff --git a/t/config-center-json/stream-route.t
b/t/config-center-json/stream-route.t
index 47eb16eff..f5049dc52 100644
--- a/t/config-center-json/stream-route.t
+++ b/t/config-center-json/stream-route.t
@@ -110,8 +110,8 @@ qr/property "\w+" is required/
}
]
}
---- stream_response
-hello world
+--- error_log
+err:unknown plugin [x-rewrite]
diff --git a/t/plugin/graphql-proxy-cache/memory.t
b/t/plugin/graphql-proxy-cache/memory.t
index bdda20f0a..bd1a6043f 100644
--- a/t/plugin/graphql-proxy-cache/memory.t
+++ b/t/plugin/graphql-proxy-cache/memory.t
@@ -568,7 +568,7 @@ plugins:
listen 1986;
server_tokens off;
- location = /graphql {
+ location = /graphql-vary-purge {
content_by_lua_block {
ngx.header["Vary"] = "X-Variant"
ngx.say('{"data":{"variant":"', ngx.var.http_x_variant or
"none", '"}}')
@@ -582,7 +582,7 @@ plugins:
local http = require("resty.http")
local code, res_body = t('/apisix/admin/routes/gql-vary-purge',
ngx.HTTP_PUT, [[{
- "uri": "/graphql",
+ "uri": "/graphql-vary-purge",
"plugins": {
"graphql-proxy-cache": {
"cache_zone": "memory_cache",
@@ -611,7 +611,7 @@ plugins:
return
end
- local uri = "http://127.0.0.1:" .. ngx.var.server_port ..
"/graphql"
+ local uri = "http://127.0.0.1:" .. ngx.var.server_port ..
"/graphql-vary-purge"
local body = '{"query":"query{persons{id}}"}'
local function fetch(variant)