Revolyssup commented on code in PR #10477:
URL: https://github.com/apache/apisix/pull/10477#discussion_r1398827471


##########
t/admin/schema-validate.t:
##########
@@ -398,3 +398,44 @@ location /t {
 --- error_code: 400
 --- response
 {"error_msg":"allOf 1 failed: value should match only one schema, but matches 
none"}
+
+
+
+=== TEST 13: Check node_schema optional port
+--- config
+    location /t {
+        content_by_lua_block {
+            local t = require("lib.test_admin").test
+            headers = {}
+            headers["X-API-KEY"] = "edd1c9f034335f136f87ad84b625c8f1"
+            local code, body = t('/apisix/admin/routes/1',
+                ngx.HTTP_PUT,
+                {
+                    uri = "/ip",
+                    upstream = {
+                        type = "roundrobin",
+                        nodes = {
+                            { host = "httpbin.org", weight = 1,}
+                        }
+                    },
+                    methods = {"GET"},
+                }, nil, headers
+            )
+
+            if code >= 300 then
+                ngx.status = code
+            end
+            ngx.say(body)
+
+        }
+    }
+--- request
+GET /t
+--- response_body
+passed
+
+
+
+=== TEST 14: Test route upstream
+--- request
+GET /ip

Review Comment:
   okay



-- 
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]

Reply via email to