def step_cert_activate(self): with XRDSSTTest() as app: cert_controller = CertController() cert_controller.app = app for security_server in self.config["security_server"]: configuration = cert_controller.create_api_config(security_server, self.config) cert_controller.remote_activate_certificate(configuration, security_server)
def step_cert_download_internal_tsl(self): with XRDSSTTest() as app: cert_controller = CertController() cert_controller.app = app for security_server in self.config["security_server"]: ss_configuration = cert_controller.create_api_config(security_server, self.config) result = cert_controller.remote_download_internal_tsl(ss_configuration, security_server) assert len(result) == 1
def step_cert_download_csrs(self): with XRDSSTTest() as app: cert_controller = CertController() cert_controller.app = app signed_certs = [] for security_server in self.config["security_server"]: ss_configuration = cert_controller.create_api_config(security_server, self.config) result = cert_controller.remote_download_csrs(ss_configuration, security_server) assert len(result) == 3 assert result[0].fs_loc != result[1].fs_loc for csr in result: if csr.key_type == 'SIGN': signed_certs.append(('sign', csr.fs_loc)) else: signed_certs.append(('auth', csr.fs_loc)) return signed_certs