Skip to content
Snippets Groups Projects
Commit 7aea8983 authored by JorgeEcheva26's avatar JorgeEcheva26
Browse files

config name

parent 0c0e2bc1
No related branches found
No related tags found
1 merge request!1Sdk v0.1 (#1)
File moved
File moved
def get_config_file()-> str :
return "/Users/IDB0128/git_repos/pesp_capif_sdk/config/config.json"
def get_register_file()-> str :
return "/Users/IDB0128/git_repos/pesp_capif_sdk/config/register.json"
def get_config_file()-> str : def get_config_file()-> str :
return "/Users/IDB0128/git_repos/pesp_capif_sdk/config/config.json" return "/Users/IDB0128/git_repos/pesp_capif_sdk/config/capif-sdk-config.json"
def get_register_file()-> str : def get_register_file()-> str :
return "/Users/IDB0128/git_repos/pesp_capif_sdk/config/register.json" return "/Users/IDB0128/git_repos/pesp_capif_sdk/config/capif-sdk-register.json"
...@@ -132,7 +132,7 @@ class CAPIFInvokerConnector: ...@@ -132,7 +132,7 @@ class CAPIFInvokerConnector:
self.capif_api_details_filename = "capif_api_security_context_details-"+self.capif_invoker_username+".json" self.capif_api_details_filename = "capif_api_security_context_details-"+self.capif_invoker_username+".json"
#self.capif_api_details = self.__load_invoker_api_details() #self.capif_api_details = self.__load_invoker_api_details()
self.logger.info("CAPIFInvokerConnector initialized with the config.json parameters") self.logger.info("CAPIFInvokerConnector initialized with the capif-sdk-config.json parameters")
def __load_config_file(self, config_file: str): def __load_config_file(self, config_file: str):
"""Carga el archivo de configuración.""" """Carga el archivo de configuración."""
...@@ -558,7 +558,7 @@ class CAPIFProviderConnector: ...@@ -558,7 +558,7 @@ class CAPIFProviderConnector:
else: else:
self.capif_register_url = f"https://{capif_register_host.strip()}:{capif_register_port.strip()}/" self.capif_register_url = f"https://{capif_register_host.strip()}:{capif_register_port.strip()}/"
self.logger.info("CAPIFProviderConnector initialized with the config.json parameters") self.logger.info("CAPIFProviderConnector initialized with the capif-sdk-config.json parameters")
except Exception as e: except Exception as e:
self.logger.error(f"Error during initialization: {e}") self.logger.error(f"Error during initialization: {e}")
...@@ -805,7 +805,6 @@ class CAPIFProviderConnector: ...@@ -805,7 +805,6 @@ class CAPIFProviderConnector:
provider_details=self.__load_provider_api_details() provider_details=self.__load_provider_api_details()
publish_url=provider_details["publish_url"] publish_url=provider_details["publish_url"]
json_path = self.config_path + "config.json"
...@@ -1038,13 +1037,7 @@ class CAPIFProviderConnector: ...@@ -1038,13 +1037,7 @@ class CAPIFProviderConnector:
provider_details=self.__load_provider_api_details() provider_details=self.__load_provider_api_details()
publish_url=provider_details["publish_url"] publish_url=provider_details["publish_url"]
json_path = self.config_path + "config.json"
with open(json_path, 'r') as f:
chosenAPFsandAEFs = json.load(f)
chosenAPFsandAEFs=self.publish_req chosenAPFsandAEFs=self.publish_req
APF_api_prov_func_id = chosenAPFsandAEFs["publisher_apf_id"] APF_api_prov_func_id = chosenAPFsandAEFs["publisher_apf_id"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment