示例#1
0
    def test_overwrite_with_parameter_rest_auth_host(self):
        config = ApiGatewayConfig(path=self.config_file_path,
                                  api_gateway_rest_auth_host="auth")
        auth = config.rest.auth

        self.assertEqual("auth", auth.host)
示例#2
0
 def test_overwrite_with_parameter_rest_auth_enabled(self):
     config = ApiGatewayConfig(path=self.config_file_path,
                               api_gateway_rest_auth_enabled=False)
     auth = config.rest.auth
     self.assertEqual(False, auth.enabled)
示例#3
0
 def test_overwrite_with_parameter(self):
     config = ApiGatewayConfig(path=self.config_file_path,
                               api_gateway_rest_host="::1")
     rest = config.rest
     self.assertEqual("::1", rest.host)
示例#4
0
 def test_overwrite_with_parameter_rest_cors(self):
     config = ApiGatewayConfig(path=self.config_file_path,
                               api_gateway_rest_cors_enabled=False)
     cors = config.rest.cors
     self.assertEqual(False, cors.enabled)
示例#5
0
    def test_overwrite_with_environment_rest_auth_path(self):
        config = ApiGatewayConfig(path=self.config_file_path)
        auth = config.rest.auth

        self.assertEqual("/auth", auth.path)