bisakhmondal commented on a change in pull request #5299: URL: https://github.com/apache/apisix/pull/5299#discussion_r733164263
########## File path: t/node/grpc_proxy_stream.t ########## @@ -0,0 +1,225 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +use t::APISIX 'no_plan'; + +repeat_each(1); +no_long_string(); +no_root_location(); +no_shuffle(); +log_level("info"); + +add_block_preprocessor(sub { + my ($block) = @_; + + if (!$block->yaml_config) { + my $yaml_config = <<_EOC_; +apisix: + config_center: yaml + node_listen: + - port: 9080 + enable_http2: false + - port: 9081 + enable_http2: true +_EOC_ Review comment: @spacewander could you please help me with the appropriate YAML config with a port that forwards the grpc proxy. In reality with this config, I am getting a 401 unauthorized. Even I tried adding `X-API-KEY` but due to the nature of HTTP2 header compression, I am not sure if it is the right way for APISIX or not. Thanks! -- 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]
