Skip to content

Commit 0859659

Browse files
author
Sergio García Prado
committed
Merge remote-tracking branch 'origin/issue-54-remove-common-dependency' into issue-56-parameterize-auth
# Conflicts: # minos/api_gateway/rest/config.py # tests/test_api_gateway/test_rest/test_config.py
2 parents 4bbf0b8 + 8e12ccc commit 0859659

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

minos/api_gateway/rest/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
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 = {
@@ -46,8 +46,8 @@
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

tests/test_api_gateway/test_rest/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)