Exemple #1
0
 def __init__(self, method_name='runTest'):
     super().__init__(method_name)
     init_test()
     self.cli = HttpClient(f'/api/v2/payment')
     # TODO: update order_id when do separately testing
     self.order_id = '60ee8c056fdd17b16bb5b4c2'
     self.transaction_id = '280a24034bfb241c31b5a73c792c9d05df2b1f79bb98733c5358aeb909c27010'
Exemple #2
0
 def __init__(self, method_name='runTest'):
     super().__init__(method_name)
     init_test()
     self.cli = HttpClient(f'/api/v2/vault')
     self.cli2 = HttpClient(f'/api/v2/vault', is_did2=True)
     self.file_name = 'ipfs-scripting/test.txt'
     self.file_content = 'File Content: 1234567890'
     # Owner's did and application did.
     self.did = self.cli.get_current_did()
     self.app_did = test_common.app_id
 def __init__(self, method_name='runTest'):
     super().__init__(method_name)
     init_test()
     self.cli = HttpClient(f'/api/v2/vault')
     self.folder_name = ''  # root
     self.src_file_content = 'File Content: 12345678'
     self.dst_file_content = self.src_file_content
     self.src_file_name = 'src_file.txt'
     self.src_file_name2 = r'children/src_file2.txt'
     self.dst_file_name = 'dst_file'
 def __init__(self, method_name='runTest'):
     super().__init__(method_name)
     init_test()
     self.cli = HttpClient(f'/api/v2/vault')
     self.folder_name = 'ipfs_children'
     self.src_file_content = 'File Content: 12345678'
     self.dst_file_content = self.src_file_content
     self.src_file_name = 'ipfs_src_file.txt'
     self.src_file_cache = f'{BASE_DIR}/cache/test.txt'
     self.src_file_name2 = r'ipfs_children/ipfs_src_file2.txt'
     self.dst_file_name = 'ipfs_dst_file.txt'
Exemple #5
0
 def __init__(self, method_name='runTest'):
     super().__init__(method_name)
     init_test()
     self.cli = HttpClient(f'/api/v2')
     self.backup_cli = HttpClient(f'/api/v2', is_backup_node=True)
Exemple #6
0
 def __init__(self, method_name='runTest'):
     super().__init__(method_name)
     init_test()
     self.cli = HttpClient(f'/api/v2/about')
Exemple #7
0
 def setUp(self):
     init_test(self)
 def __init__(self, method_name='runTest'):
     super().__init__(method_name)
     init_test()
     self.cli = HttpClient(f'/api/v2/vault')
     self.collection_name = 'test_collection'