tokers commented on a change in pull request #4488:
URL: https://github.com/apache/apisix/pull/4488#discussion_r662704502
##########
File path: t/discovery/dns/sanity.t
##########
@@ -284,3 +284,34 @@ qr/proxy request to \S+/
--- grep_error_log_out
proxy request to 127.0.0.1:1979
proxy request to 127.0.0.2:1980
+
+=== TEST 14: Stream Discovery
+--- yaml_config
+apisix:
+ node_listen: 1984
+ config_center: yaml
+ enable_admin: false
+ enable_resolv_search_option: false
+ stream_proxy:
+ tcp:
+ - addr: 1985
+discovery: # service discovery center
+ dns:
+ servers: "127.0.0.1:1053"
+--- apisix_yaml
+stream_routes:
+ - id: 1
+ server_port: 1985
+ upstream_id: 1
+upstreams:
+ - service_name: "zero-weight.srv.test.local"
+ discovery_type: dns
+ type: roundrobin
+ id: 1
+--- stream_enable
+--- stream_request eval
+"GET /hello HTTP/1.1"
+--- stream_response
+hello world
+--- no_error_log
+[error]
Review comment:
Should add the EOS symbol. Please check your editor.
--
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]