Skip to content

Commit fa08219

Browse files
committed
Update failing Storage tests
1 parent ff4bde9 commit fa08219

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/Storage/Commands.Storage.Test/File/Cmdlet/GetAzureStorageFileContentTest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using Microsoft.WindowsAzure.Management.Storage.Test.Common;
1111
using Microsoft.WindowsAzure.Storage.DataMovement;
1212
using Microsoft.WindowsAzure.Storage.File;
13+
using Microsoft.WindowsAzure.Commands.Utilities.Common;
1314
using PSHFile = Microsoft.WindowsAzure.Commands.Storage.File;
1415

1516
namespace Microsoft.WindowsAzure.Management.Storage.Test.File.Cmdlet
@@ -45,6 +46,7 @@ public void DownloadCleanup()
4546
[TestMethod]
4647
public void DownloadFileUsingShareNameAndPathToLocalFileTest()
4748
{
49+
this.CmdletInstance.DisableDataCollection();
4850
DownloadFileInternal(
4951
"share",
5052
"remoteFile",
@@ -59,6 +61,7 @@ public void DownloadFileUsingShareNameAndPathToLocalFileTest()
5961
[TestMethod]
6062
public void DownloadFileUsingShareObjectAndPathToLocalFileTest()
6163
{
64+
this.CmdletInstance.DisableDataCollection();
6265
DownloadFileInternal(
6366
"share",
6467
"remoteFile",
@@ -73,6 +76,7 @@ public void DownloadFileUsingShareObjectAndPathToLocalFileTest()
7376
[TestMethod]
7477
public void DownloadFileUsingDirectoryAndPathToLocalFileTest()
7578
{
79+
this.CmdletInstance.DisableDataCollection();
7680
DownloadFileInternal(
7781
"share",
7882
"remoteFile",
@@ -87,6 +91,7 @@ public void DownloadFileUsingDirectoryAndPathToLocalFileTest()
8791
[TestMethod]
8892
public void DownloadFileUsingFileObjectToLocalFileTest()
8993
{
94+
this.CmdletInstance.DisableDataCollection();
9095
DownloadFileInternal(
9196
"share",
9297
"remoteFile",
@@ -100,6 +105,7 @@ public void DownloadFileUsingFileObjectToLocalFileTest()
100105
[TestMethod]
101106
public void DownloadFileUsingFileObjectToLocalDirectoryTest()
102107
{
108+
this.CmdletInstance.DisableDataCollection();
103109
this.destinationFilePath = Path.Combine(this.destinationPath, "remoteFile");
104110
DownloadFileInternal(
105111
"share",

src/Storage/Commands.Storage.Test/File/Cmdlet/GetAzureStorageFileTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using Microsoft.WindowsAzure.Commands.Storage.File;
2020
using Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet;
2121
using Microsoft.WindowsAzure.Storage.File;
22+
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2223

2324
namespace Microsoft.WindowsAzure.Management.Storage.Test.File.Cmdlet
2425
{
@@ -109,6 +110,7 @@ public void GetFileFromSubDirectoryTest_UsingShareNameWithPath()
109110
[TestMethod]
110111
public void GetFileFromSubDirectoryTest_GetFromNonExistingDirectory()
111112
{
113+
this.CmdletInstance.DisableDataCollection();
112114
this.CmdletInstance.RunCmdlet(
113115
Constants.ShareNameParameterSetName,
114116
new KeyValuePair<string, object>("ShareName", ShareName),

src/Storage/Commands.Storage.Test/File/Cmdlet/GetAzureStorageShareTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using Microsoft.WindowsAzure.Commands.Storage.File;
2020
using Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet;
2121
using Microsoft.WindowsAzure.Storage.File;
22+
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2223

2324
namespace Microsoft.WindowsAzure.Management.Storage.Test.File.Cmdlet
2425
{
@@ -40,6 +41,7 @@ public void GetShareByNameTest()
4041
[TestMethod]
4142
public void GetNonExistingShareByNameTest()
4243
{
44+
this.CmdletInstance.DisableDataCollection();
4345
this.CmdletInstance.RunCmdlet(
4446
Constants.SpecificParameterSetName,
4547
new KeyValuePair<string, object>("Name", "share"));

0 commit comments

Comments
 (0)