@@ -21,6 +21,8 @@ local MOCK_UPSTREAM_SSL_PORT = 15556
21
21
local MOCK_UPSTREAM_STREAM_PORT = 15557
22
22
local MOCK_UPSTREAM_STREAM_SSL_PORT = 15558
23
23
local MOCK_GRPC_UPSTREAM_PROTO_PATH = " ./spec/fixtures/grpc/hello.proto"
24
+ local ZIPKIN_HOST = os.getenv (" KONG_SPEC_TEST_ZIPKIN_HOST" ) or " localhost"
25
+ local ZIPKIN_PORT = tonumber (os.getenv (" KONG_SPEC_TEST_ZIPKIN_PORT" )) or 9411
24
26
local REDIS_HOST = os.getenv (" KONG_SPEC_TEST_REDIS_HOST" ) or " localhost"
25
27
local REDIS_PORT = tonumber (os.getenv (" KONG_SPEC_TEST_REDIS_PORT" ) or 6379 )
26
28
local REDIS_SSL_PORT = tonumber (os.getenv (" KONG_SPEC_TEST_REDIS_SSL_PORT" ) or 6380 )
@@ -2816,7 +2818,12 @@ end
2816
2818
-- @field mock_upstream_stream_port
2817
2819
-- @field mock_upstream_stream_ssl_port
2818
2820
-- @field mock_grpc_upstream_proto_path
2819
- -- @field redis_host The hostname for a Redis instance if available. Port should be `6379`.
2821
+ -- @field redis_host The host for Redis, it can be set by env KONG_SPEC_TEST_REDIS_HOST.
2822
+ -- @field redis_port The port (SSL disabled) for Redis, it can be set by env KONG_SPEC_TEST_REDIS_PORT.
2823
+ -- @field redis_ssl_port The port (SSL enabled) for Redis, it can be set by env KONG_SPEC_TEST_REDIS_SSL_PORT.
2824
+ -- @field redis_ssl_sni The server name for Redis, it can be set by env KONG_SPEC_TEST_REDIS_SSL_SNI.
2825
+ -- @field zipkin_host The host for Zipkin service, it can be set by env KONG_SPEC_TEST_ZIPKIN_HOST.
2826
+ -- @field zipkin_port the port for Zipkin service, it can be set by env KONG_SPEC_TEST_ZIPKIN_PORT.
2820
2827
2821
2828
---- ------
2822
2829
-- Exposed
@@ -2858,6 +2865,9 @@ end
2858
2865
mock_upstream_stream_ssl_port = MOCK_UPSTREAM_STREAM_SSL_PORT ,
2859
2866
mock_grpc_upstream_proto_path = MOCK_GRPC_UPSTREAM_PROTO_PATH ,
2860
2867
2868
+ zipkin_host = ZIPKIN_HOST ,
2869
+ zipkin_port = ZIPKIN_PORT ,
2870
+
2861
2871
redis_host = REDIS_HOST ,
2862
2872
redis_port = REDIS_PORT ,
2863
2873
redis_ssl_port = REDIS_SSL_PORT ,
0 commit comments