internal void StorageTest(string caseName) { NodeJSAgent nodeAgent = (NodeJSAgent)CommandAgent; string containerName = Utility.GenNameString("astoria-"); string blobName = Utility.GenNameString("astoria-"); Test.Assert(!nodeAgent.NewAzureStorageContainer(containerName), Utility.GenComparisonData("NewAzureStorageContainer", false)); nodeAgent.ValidateErrorMessage(caseName); Test.Assert(!nodeAgent.GetAzureStorageContainer(containerName), Utility.GenComparisonData("GetAzureStorageContainer", false)); nodeAgent.ValidateErrorMessage(caseName); Test.Assert(!nodeAgent.SetAzureStorageContainerACL(containerName, BlobContainerPublicAccessType.Container), Utility.GenComparisonData("SetAzureStorageContainerACL", false)); nodeAgent.ValidateErrorMessage(caseName); Test.Assert(!nodeAgent.RemoveAzureStorageContainer(containerName), Utility.GenComparisonData("RemoveAzureStorageContainer", false)); nodeAgent.ValidateErrorMessage(caseName); Test.Assert(!nodeAgent.ShowAzureStorageContainer(containerName), Utility.GenComparisonData("ShowAzureStorageContainer", false)); nodeAgent.ValidateErrorMessage(caseName); Test.Assert(!nodeAgent.SetAzureStorageBlobContent(TempTestFile, containerName, BlobType.BlockBlob, blobName), Utility.GenComparisonData("SetAzureStorageBlobContent", false)); nodeAgent.ValidateErrorMessage(caseName); Test.Assert(!nodeAgent.SetAzureStorageBlobContent(TempTestFile, containerName, BlobType.PageBlob, blobName), Utility.GenComparisonData("SetAzureStorageBlobContent", false)); nodeAgent.ValidateErrorMessage(caseName); Test.Assert(!nodeAgent.GetAzureStorageBlobContent(blobName, TempTestFile, containerName), Utility.GenComparisonData("GetAzureStorageBlobContent", false)); nodeAgent.ValidateErrorMessage(caseName); Test.Assert(!nodeAgent.GetAzureStorageBlob(blobName, containerName), Utility.GenComparisonData("GetAzureStorageBlob", false)); nodeAgent.ValidateErrorMessage(caseName); Test.Assert(!nodeAgent.ShowAzureStorageBlob(blobName, containerName), Utility.GenComparisonData("ShowAzureStorageBlob", false)); nodeAgent.ValidateErrorMessage(caseName); Test.Assert(!nodeAgent.RemoveAzureStorageBlob(blobName, containerName), Utility.GenComparisonData("RemoveAzureStorageBlob", false)); nodeAgent.ValidateErrorMessage(caseName); }