nic-6443 commented on code in PR #13231:
URL: https://github.com/apache/apisix/pull/13231#discussion_r3098789357
##########
t/core/json.t:
##########
@@ -122,15 +122,12 @@ qr/\{"b":\{"a":\{"b":"table: 0x[\w]+"\}\}\}/
local core = require("apisix.core")
local data = core.json.decode('{"arr":[]}')
ngx.say(core.json.encode(data))
Review Comment:
Good catch — that was accidental, restored in 5284500e6.
##########
t/plugin/ai-proxy-anthropic.t:
##########
@@ -15,6 +15,10 @@
# limitations under the License.
#
+BEGIN {
Review Comment:
You are right that they look unrelated, but both are needed to make the new
`null-*` test cases in this file run reliably:
- `TEST_ENABLE_CONTROL_API_V1 = "0"`: the default Control API v1 location
(`/v1/*`) matches the `/v1/chat/completions` paths used in the null-field tests
and intercepts them before the test route runs. Disabling it for this file lets
the proxy/converter path be exercised as intended.
- Dropping `- prometheus` from `extra_yaml_config`: the default Test::Nginx
setup already loads `prometheus`, and keeping it in `extra_yaml_config` caused
a duplicate-plugin error when running the new tests alongside the existing ones.
Both are test-only adjustments scoped to this file; happy to split them into
a prep PR if you’d prefer, but they do belong with the new tests. I’ll also add
a short note to the PR description.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]