#NEWLINE# @ classmethod #NEWLINE# def setUpClass( cls ) : #NEWLINE# #INDENT# program = cls . _get_exe ( ) #NEWLINE# cls . directory = tempfile . mkdtemp ( prefix = 'python-etcd' ) #NEWLINE# cls . ca_cert_path = os . path . join ( cls . directory , 'ca.crt' ) #NEWLINE# ca_key_path = os . path . join ( cls . directory , 'ca.key' ) #NEWLINE# cls . ca2_cert_path = os . path . join ( cls . directory , 'ca2.crt' ) #NEWLINE# ca2_key_path = os . path . join ( cls . directory , 'ca2.key' ) #NEWLINE# server_cert_path = os . path . join ( cls . directory , 'server.crt' ) #NEWLINE# server_key_path = os . path . join ( cls . directory , 'server.key' ) #NEWLINE# ( ca , ca_key ) = helpers . TestingCA . create_test_ca_certificate ( cls . ca_cert_path , ca_key_path , 'TESTCA' ) #NEWLINE# ( ca2 , ca2_key ) = helpers . TestingCA . create_test_ca_certificate ( cls . ca2_cert_path , ca2_key_path , 'TESTCA2' ) #NEWLINE# helpers . TestingCA . create_test_certificate ( ca , ca_key , server_cert_path , server_key_path , '127.0.0.1' ) #NEWLINE# cls . processHelper = helpers . EtcdProcessHelper ( cls . directory , proc_name = program , port_range_start = 6001 , internal_port_range_start = 8001 , tls = True ) #NEWLINE# cls . processHelper . run ( number = 3 , proc_args = [ ( '-cert-file=%s' % server_cert_path ) , ( '-key-file=%s' % server_key_path ) ] )