def setUp(self): self.mock_runner = mock.MagicMock(spec_set=CommandRunner) self.original_path = settings.corosync_qdevice_net_client_certs_dir settings.corosync_qdevice_net_client_certs_dir = get_test_resource( "qdevice-certs") self.ca_file_path = os.path.join( settings.corosync_qdevice_net_client_certs_dir, settings.corosync_qdevice_net_client_ca_file_name)
def setUp(self): self.mock_runner = mock.MagicMock(spec_set=CommandRunner) self.original_path = settings.corosync_qdevice_net_client_certs_dir settings.corosync_qdevice_net_client_certs_dir = get_test_resource( "qdevice-certs" ) self.ca_file_path = os.path.join( settings.corosync_qdevice_net_client_certs_dir, settings.corosync_qdevice_net_client_ca_file_name )
def setUp(self): self.file_path = get_test_resource("qdevice-certs/qnetd-cacert.crt") self.file_data = open(self.file_path, "rb").read()