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 2727 "rest.host" : "API_GATEWAY_REST_HOST" ,
2828 "rest.port" : "API_GATEWAY_REST_PORT" ,
2929 "rest.cors.enabled" : "API_GATEWAY_REST_CORS_ENABLED" ,
30- "discovery.host" : "DISCOVERY_SERVICE_HOST " ,
31- "discovery.port" : "DISCOVERY_SERVICE_PORT " ,
30+ "discovery.host" : "API_GATEWAY_DISCOVERY_HOST " ,
31+ "discovery.port" : "API_GATEWAY_DISCOVERY_PORT " ,
3232}
3333
3434_PARAMETERIZED_MAPPER = {
3535 "rest.host" : "api_gateway_rest_host" ,
3636 "rest.port" : "api_gateway_rest_port" ,
3737 "rest.cors.enabled" : "api_gateway_rest_cors_enabled" ,
38- "discovery.host" : "discovery_service_host " ,
39- "discovery.port" : "discovery_service_port " ,
38+ "discovery.host" : "api_gateway_discovery_host " ,
39+ "discovery.port" : "api_gateway_discovery_port " ,
4040}
4141
4242
Original file line number Diff line number Diff line change @@ -49,12 +49,12 @@ def test_config_cors(self):
4949 self .assertIsInstance (cors .enabled , bool )
5050 self .assertFalse (cors .enabled )
5151
52- @mock .patch .dict (os .environ , {"DISCOVERY_SERVICE_HOST " : "::1" })
52+ @mock .patch .dict (os .environ , {"API_GATEWAY_DISCOVERY_HOST " : "::1" })
5353 def test_overwrite_with_environment_discovery_host (self ):
5454 config = ApiGatewayConfig (path = self .config_file_path )
5555 self .assertEqual ("::1" , config .discovery .host )
5656
57- @mock .patch .dict (os .environ , {"DISCOVERY_SERVICE_PORT " : "4040" })
57+ @mock .patch .dict (os .environ , {"API_GATEWAY_DISCOVERY_PORT " : "4040" })
5858 def test_overwrite_with_environment_discovery_port (self ):
5959 config = ApiGatewayConfig (path = self .config_file_path )
6060 self .assertEqual (4040 , config .discovery .port )
You can’t perform that action at this time.
0 commit comments