Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update unit test for set-containeracl

  • Loading branch information...
commit d93905d8579be91f7ee538cfa3a36f9142ef680a 1 parent 123fb8c
@xmbms xmbms authored
View
2  WindowsAzurePowershell/src/Management.Storage.Test/Blob/Cmdlet/SetAzureStorageContainerAclTest.cs
@@ -76,6 +76,7 @@ public void SetContainerAclForNotExistContainer()
public void SetContainerAclSucessfullyTest()
{
AddTestContainers();
+ command.PassThru = true;
string name = "test";
string accessLevel = StorageNouns.ContainerAclOff;
@@ -113,6 +114,7 @@ public void ExecuteCommandSetContainerAclTest()
AddTestContainers();
command.Name = "publicblob";
command.PublicAccess = "container";
+ command.PassThru = true;
command.ExecuteCmdlet();
AzureStorageContainer container = (AzureStorageContainer)((MockCommandRuntime)command.CommandRuntime).OutputPipeline.FirstOrDefault();
Assert.AreEqual(BlobContainerPublicAccessType.Container, container.PublicAccess);
Please sign in to comment.
Something went wrong with that request. Please try again.