File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
tests/test_api_gateway/test_rest Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3333 "rest.auth.port" : "API_GATEWAY_REST_AUTH_PORT" ,
3434 "rest.auth.method" : "API_GATEWAY_REST_AUTH_METHOD" ,
3535 "rest.auth.path" : "API_GATEWAY_REST_AUTH_PATH" ,
36- "discovery.host" : "DISCOVERY_SERVICE_HOST " ,
37- "discovery.port" : "DISCOVERY_SERVICE_PORT " ,
36+ "discovery.host" : "API_GATEWAY_DISCOVERY_HOST " ,
37+ "discovery.port" : "API_GATEWAY_DISCOVERY_PORT " ,
3838}
3939
4040_PARAMETERIZED_MAPPER = {
4646 "rest.auth.port" : "api_gateway_rest_auth_port" ,
4747 "rest.auth.method" : "api_gateway_rest_auth_method" ,
4848 "rest.auth.path" : "api_gateway_rest_auth_path" ,
49- "discovery.host" : "discovery_service_host " ,
50- "discovery.port" : "discovery_service_port " ,
49+ "discovery.host" : "api_gateway_discovery_host " ,
50+ "discovery.port" : "api_gateway_discovery_port " ,
5151}
5252
5353
Original file line number Diff line number Diff line change @@ -62,12 +62,12 @@ def test_config_discovery(self):
6262 self .assertEqual ("localhost" , discovery .host )
6363 self .assertEqual (5567 , discovery .port )
6464
65- @mock .patch .dict (os .environ , {"DISCOVERY_SERVICE_HOST " : "::1" })
65+ @mock .patch .dict (os .environ , {"API_GATEWAY_DISCOVERY_HOST " : "::1" })
6666 def test_overwrite_with_environment_discovery_host (self ):
6767 config = ApiGatewayConfig (path = self .config_file_path )
6868 self .assertEqual ("::1" , config .discovery .host )
6969
70- @mock .patch .dict (os .environ , {"DISCOVERY_SERVICE_PORT " : "4040" })
70+ @mock .patch .dict (os .environ , {"API_GATEWAY_DISCOVERY_PORT " : "4040" })
7171 def test_overwrite_with_environment_discovery_port (self ):
7272 config = ApiGatewayConfig (path = self .config_file_path )
7373 self .assertEqual (4040 , config .discovery .port )
You can’t perform that action at this time.
0 commit comments