public async Task CopyOneFilesTunnel() { // Should be setup to deal with about 4 GB of data in one file. _ssh = new UtilsForBuildingLinuxDatasets("LinuxRemoteTestTunnelBigData"); _ssh.CreateRepro(); var local_p = new PlaceLinuxRemote("test", _ssh.RemotePath, _ssh.RemoteHostInfo); var grid_p = new PlaceGRID("test-GRID", local_p); DataSetManager.ResetDSM(local_p, grid_p); var uris = new Uri[] { new Uri($"gridds://{_good_dsname}/{_good_dsfile_1}"), }; await grid_p.CopyToAsync(local_p, uris); var files = await local_p.GetListOfFilesForDataSetAsync(_good_dsname); Assert.AreEqual(197, files.Length); Assert.IsTrue(await local_p.HasFileAsync(uris[0])); }
public async Task CopyTwoFiles() { _ssh.CreateRepro(); var local_p = new PlaceLinuxRemote("test", _ssh.RemotePath, _ssh.RemoteHostInfo); var grid_p = new PlaceGRID("test-GRID", local_p); DataSetManager.ResetDSM(local_p, grid_p); var uris = new Uri[] { new Uri($"gridds://{_good_dsname}/{_good_dsfile_1}"), new Uri($"gridds://{_good_dsname}/{_good_dsfile_2}"), }; await grid_p.CopyToAsync(local_p, uris); var files = await local_p.GetListOfFilesForDataSetAsync(_good_dsname); Assert.AreEqual(197, files.Length); Assert.IsTrue(await local_p.HasFileAsync(uris[0])); Assert.IsTrue(await local_p.HasFileAsync(uris[1])); }