Loading services/TS29222_CAPIF_Security_API/capif_security/core/servicesecurity.py +1 −1 Original line number Diff line number Diff line Loading @@ -129,7 +129,7 @@ class SecurityOperations(Resource): elif security_info_obj.get('sel_security_method') == "PSK": current_app.logger.debug("PSK security method selected") if authentication_info: # Read the PSK from the file # Read the PSK from the file -> TODO with open("/usr/src/app/capif_security/ca.crt", "rb") as key_file: key_data = key_file.read() # Decode the PSK to a string Loading tests/libraries/api_publish_service/bodyRequests.py +2 −6 Original line number Diff line number Diff line Loading @@ -146,8 +146,7 @@ def create_aef_profile(aef_id, create_interface_description( ipv4_addr="string", port=65535, security_methods=security_method, grant_types=["CLIENT_CREDENTIALS"] security_methods=security_method ) ] Loading Loading @@ -249,8 +248,7 @@ def create_interface_description(ipv4_addr=None, fqdn=None, port=None, api_prefix=None, security_methods=None, grant_types=None): security_methods=None): """ Create an interface description with the given parameters. """ Loading @@ -272,7 +270,5 @@ def create_interface_description(ipv4_addr=None, data['apiPrefix'] = api_prefix if security_methods is not None: data['securityMethods'] = security_methods if grant_types is not None: data['grantTypes'] = grant_types # Return the interface description return data Loading
services/TS29222_CAPIF_Security_API/capif_security/core/servicesecurity.py +1 −1 Original line number Diff line number Diff line Loading @@ -129,7 +129,7 @@ class SecurityOperations(Resource): elif security_info_obj.get('sel_security_method') == "PSK": current_app.logger.debug("PSK security method selected") if authentication_info: # Read the PSK from the file # Read the PSK from the file -> TODO with open("/usr/src/app/capif_security/ca.crt", "rb") as key_file: key_data = key_file.read() # Decode the PSK to a string Loading
tests/libraries/api_publish_service/bodyRequests.py +2 −6 Original line number Diff line number Diff line Loading @@ -146,8 +146,7 @@ def create_aef_profile(aef_id, create_interface_description( ipv4_addr="string", port=65535, security_methods=security_method, grant_types=["CLIENT_CREDENTIALS"] security_methods=security_method ) ] Loading Loading @@ -249,8 +248,7 @@ def create_interface_description(ipv4_addr=None, fqdn=None, port=None, api_prefix=None, security_methods=None, grant_types=None): security_methods=None): """ Create an interface description with the given parameters. """ Loading @@ -272,7 +270,5 @@ def create_interface_description(ipv4_addr=None, data['apiPrefix'] = api_prefix if security_methods is not None: data['securityMethods'] = security_methods if grant_types is not None: data['grantTypes'] = grant_types # Return the interface description return data