Ejemplo n.º 1
0
 def test_remote_download_urls_extract(self):
     executor.delete_dir(REMOTE_TARGET, TEST_DATA.creds)
     wget.download(REMOTE_TARGET, self.urls, creds=TEST_DATA.creds, extract=True)
     act_hash = hasher.get_md5(REMOTE_TARGET, TEST_DATA.creds)
     assert act_hash == TEST_DATA.download_md5_extracted, "remote download failed. Expected: {}, Actual: {}".format(
         TEST_DATA.download_md5, act_hash
     )
Ejemplo n.º 2
0
 def test_local_download_urls(self):
     executor.delete_dir(REMOTE_TARGET, TEST_DATA.creds)
     wget.download(LOCAL_TARGET, self.urls)
     act_hash = hasher.get_md5(LOCAL_TARGET)
     assert act_hash == TEST_DATA.download_md5, "local download failed. Expected: {}, Actual: {}".format(
         TEST_DATA.download_md5, act_hash
     )
Ejemplo n.º 3
0
 def test_remote_download_urls(self):
     executor.delete_dir(REMOTE_TARGET, TEST_DATA.creds)
     wget.download(REMOTE_TARGET, self.urls, creds=TEST_DATA.creds)
     act_hash = hasher.get_md5(REMOTE_TARGET, TEST_DATA.creds)
     assert act_hash==TEST_DATA.download_md5,\
        'remote download failed. Expected: {}, Actual: {}'\
        .format(TEST_DATA.download_md5, act_hash)
Ejemplo n.º 4
0
 def test_download_with_key(self):
     executor.delete_dir(REMOTE_TARGET, TEST_DATA.creds)
     wget.download(REMOTE_TARGET, self.urls, creds=TEST_DATA.creds)
     rsync.download(REMOTE_TARGET, LOCAL_TARGET, creds=TEST_DATA.creds)
     act_hash = hasher.get_md5(REMOTE_TARGET, TEST_DATA.creds)
     assert act_hash == TEST_DATA.download_md5, "upload failed. Expected: {}, Actual: {}".format(
         TEST_DATA.download_md5, act_hash
     )
Ejemplo n.º 5
0
 def test_download_with_key(self):
     executor.delete_dir(REMOTE_TARGET, TEST_DATA.creds)
     wget.download(REMOTE_TARGET, self.urls, creds=TEST_DATA.creds)
     rsync.download(REMOTE_TARGET, LOCAL_TARGET, creds=TEST_DATA.creds)
     act_hash = hasher.get_md5(REMOTE_TARGET, TEST_DATA.creds)
     assert act_hash==TEST_DATA.download_md5,\
        'upload failed. Expected: {}, Actual: {}'\
        .format(TEST_DATA.download_md5, act_hash)