import json5 class SecurityConfig: """ Class to hold configuration for Security tests """ def __init__(self, config): try: json_data = open(config) except FileNotFoundError: print(f"Could not find the security config file: {config}") raise security_dict = json5.load(json_data) self.dns_name = security_dict["dns_name"] self.stepca_server_url = security_dict["stepca_server_url"] self.stepca_server_issuer = security_dict["stepca_server_issuer"] def get_dns_name(self) -> str: """ Getter for the dns name Returns: str: the dns name """ return self.dns_name def get_stepca_server_url(self) -> str: """ Getter for the stepca server url Returns: str: stepca server url """ return self.stepca_server_url def get_stepca_server_issuer(self) -> str: """ Getter for the stepca server issuer Returns: str: stepca server url """ return self.stepca_server_issuer