Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Entra App Secrets from Storage tests #44427

Merged
Merged
Show file tree
Hide file tree
Changes from 110 commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
8ac365e
Removed AAD info from TestConfigurationsTemplate
seanmcc-msft Jun 6, 2024
264fb2a
Re-plumbed Storage tests to rely on TestEnvironment.Credential
seanmcc-msft Jun 6, 2024
1e9ec99
safe state
seanmcc-msft Jun 6, 2024
709b9e0
WIP
seanmcc-msft Jun 6, 2024
1899641
WIP
seanmcc-msft Jun 6, 2024
bb03313
WIP
seanmcc-msft Jun 6, 2024
c6e33a3
Removing public access
seanmcc-msft Jun 6, 2024
e84c94f
Recorded most Queues tests
seanmcc-msft Jun 6, 2024
271542e
All Queues tests
seanmcc-msft Jun 6, 2024
75101dc
Recorded most Files tests
seanmcc-msft Jun 6, 2024
4fa4084
Recorded most Data Lake tests
seanmcc-msft Jun 6, 2024
65180f2
Recorded most Blobs tests
seanmcc-msft Jun 7, 2024
68873aa
Blob Batch tests
seanmcc-msft Jun 7, 2024
5326557
Change Feed tests
seanmcc-msft Jun 7, 2024
98fdf8c
update
seanmcc-msft Jun 7, 2024
3a4d516
Some DM Lib tests
seanmcc-msft Jun 7, 2024
f728c1d
More DM Lib tests
seanmcc-msft Jun 7, 2024
1223160
Hopefully fixed Batch
seanmcc-msft Jun 7, 2024
d194c5e
More files tests
seanmcc-msft Jun 7, 2024
6ed60b5
Fixed Queues tests
seanmcc-msft Jun 7, 2024
c56077e
Fixed Change Feed tests
seanmcc-msft Jun 7, 2024
bde9ade
DM Lib Files tests
seanmcc-msft Jun 7, 2024
50edc49
More Data Lake tests
seanmcc-msft Jun 7, 2024
797f504
Blob tests
seanmcc-msft Jun 7, 2024
757451b
WIP
seanmcc-msft Jun 7, 2024
ff99832
WIP
seanmcc-msft Jun 7, 2024
022f374
WIP
seanmcc-msft Jun 7, 2024
1213858
WIP
seanmcc-msft Jun 7, 2024
2e095ba
WIP
seanmcc-msft Jun 7, 2024
479347c
WIP
seanmcc-msft Jun 7, 2024
400efb1
WIP
seanmcc-msft Jun 7, 2024
4be51aa
Some Blob tests
seanmcc-msft Jun 7, 2024
27051c8
Append Blob tests
seanmcc-msft Jun 7, 2024
bcd54cd
Block Blob tests
seanmcc-msft Jun 7, 2024
0d0e554
Most Page Blob tests
seanmcc-msft Jun 7, 2024
54dbf44
Rest of Page Blob tests
seanmcc-msft Jun 7, 2024
c698b47
Fixed Common tests
seanmcc-msft Jun 7, 2024
c968fb1
File System tests
seanmcc-msft Jun 7, 2024
14933ba
Additional Data Lake tests
seanmcc-msft Jun 7, 2024
1164820
Container tests
seanmcc-msft Jun 7, 2024
9adca65
Bunch of Files tests
seanmcc-msft Jun 7, 2024
e6f6827
Blob tests
seanmcc-msft Jun 7, 2024
0d18ac4
Fixed ImmutableStorageWithVersioningTests
seanmcc-msft Jun 11, 2024
957f560
Update
seanmcc-msft Jun 11, 2024
7e5be3b
Update
seanmcc-msft Jun 11, 2024
410768b
Update
seanmcc-msft Jun 11, 2024
8261cc6
Update
seanmcc-msft Jun 11, 2024
fe05ebe
Update
seanmcc-msft Jun 11, 2024
772395f
Update
seanmcc-msft Jun 11, 2024
838bdbf
Update
seanmcc-msft Jun 11, 2024
53669b2
Update
seanmcc-msft Jun 11, 2024
eaed1ee
Update
seanmcc-msft Jun 11, 2024
c4f8122
Fixed last of DM Lib tests
seanmcc-msft Jun 11, 2024
3c99e30
update
seanmcc-msft Jun 11, 2024
2ebbe82
update
seanmcc-msft Jun 11, 2024
a7daaed
update
seanmcc-msft Jun 11, 2024
b2c8613
update
seanmcc-msft Jun 11, 2024
d6e0c13
update
seanmcc-msft Jun 11, 2024
ce66bd4
update
seanmcc-msft Jun 11, 2024
8ab21c7
update
seanmcc-msft Jun 11, 2024
d2480d7
update
seanmcc-msft Jun 11, 2024
fa2c5ba
update
seanmcc-msft Jun 11, 2024
bc31221
update
seanmcc-msft Jun 11, 2024
2958313
update
seanmcc-msft Jun 11, 2024
2e7b58a
update
seanmcc-msft Jun 11, 2024
9f02fdd
update
seanmcc-msft Jun 11, 2024
6235817
update
seanmcc-msft Jun 11, 2024
55ed614
update
seanmcc-msft Jun 12, 2024
f2c984a
update
seanmcc-msft Jun 12, 2024
dd83cba
update
seanmcc-msft Jun 12, 2024
10bdbdd
update
seanmcc-msft Jun 12, 2024
cdcf588
update
seanmcc-msft Jun 12, 2024
9eca768
update
seanmcc-msft Jun 12, 2024
91f40b9
update
seanmcc-msft Jun 12, 2024
a9ef617
update
seanmcc-msft Jun 12, 2024
e6c7716
update
seanmcc-msft Jun 12, 2024
fbd27c8
update
seanmcc-msft Jun 12, 2024
85e0839
update
seanmcc-msft Jun 12, 2024
611674f
update
seanmcc-msft Jun 12, 2024
e5b9fb7
update
seanmcc-msft Jun 12, 2024
3c9609d
update
seanmcc-msft Jun 12, 2024
b720203
update
seanmcc-msft Jun 12, 2024
b7bf5c9
update
seanmcc-msft Jun 12, 2024
b70d820
update
seanmcc-msft Jun 12, 2024
ae6c8db
updated test-resources-post.ps1
seanmcc-msft Jun 12, 2024
70d989e
updated tests.yaml
seanmcc-msft Jun 12, 2024
2de20fe
Merge branch 'main' into feature/storage/remoteStorageTestAppSecrets
seanmcc-msft Jun 12, 2024
780b186
Fixed ImmutableStorageWithVersioningTests
seanmcc-msft Jun 12, 2024
cadb5bc
Fixed test
seanmcc-msft Jun 12, 2024
8ce2b99
Merge branch 'main' into feature/storage/remoteStorageTestAppSecrets
seanmcc-msft Jun 19, 2024
8aa14ef
Update
seanmcc-msft Jun 20, 2024
d6644a0
Revert "Update"
seanmcc-msft Jun 20, 2024
d102a7c
Merge branch 'main' into feature/storage/remoteStorageTestAppSecrets
seanmcc-msft Jun 20, 2024
c8b7a2e
update
seanmcc-msft Jun 20, 2024
b2f9a0d
Merge branch 'main' into feature/storage/remoteStorageTestAppSecrets
seanmcc-msft Jun 24, 2024
1e6a410
Merge branch 'main' into feature/storage/remoteStorageTestAppSecrets
seanmcc-msft Jun 26, 2024
7db0bda
Merge branch 'main' into feature/storage/remoteStorageTestAppSecrets
seanmcc-msft Jun 28, 2024
cba5271
PR comment
seanmcc-msft Jul 1, 2024
0c3ec95
Merge branch 'main' into feature/storage/remoteStorageTestAppSecrets
seanmcc-msft Jul 2, 2024
a0f1cb4
PR comment
seanmcc-msft Jul 2, 2024
364b812
Update sdk/storage/tests.yml
seanmcc-msft Jul 2, 2024
f81361e
Made some tests playback only
seanmcc-msft Jul 2, 2024
9600fb6
Update
seanmcc-msft Jul 2, 2024
c15428d
Update
seanmcc-msft Jul 2, 2024
7874bec
Update
seanmcc-msft Jul 2, 2024
36d03c0
Update
seanmcc-msft Jul 2, 2024
19c21c5
Merge branch 'main' into feature/storage/remoteStorageTestAppSecrets
seanmcc-msft Jul 10, 2024
479a176
Reenabled Immutability Storage with Versioning live tests
seanmcc-msft Jul 11, 2024
66ca87f
Reenabled Managed Disk live tests
seanmcc-msft Jul 11, 2024
d676efe
Fixed last of live base tests
seanmcc-msft Jul 11, 2024
6f392fb
Typo
seanmcc-msft Jul 11, 2024
c5f955a
PR comment
seanmcc-msft Jul 11, 2024
dff53a2
PR comment
seanmcc-msft Jul 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/storage/Azure.Storage.Blobs.Batch/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "net",
"TagPrefix": "net/storage/Azure.Storage.Blobs.Batch",
"Tag": "net/storage/Azure.Storage.Blobs.Batch_34b0b578dc"
"Tag": "net/storage/Azure.Storage.Blobs.Batch_91b5e838a2"
}
2 changes: 1 addition & 1 deletion sdk/storage/Azure.Storage.Blobs.ChangeFeed/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "net",
"TagPrefix": "net/storage/Azure.Storage.Blobs.ChangeFeed",
"Tag": "net/storage/Azure.Storage.Blobs.ChangeFeed_198f5277c7"
"Tag": "net/storage/Azure.Storage.Blobs.ChangeFeed_83537f1c55"
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public async Task<DisposingContainer> GetTestContainerAsync(

if (publicAccessType == default)
{
publicAccessType = premium ? PublicAccessType.None : PublicAccessType.BlobContainer;
publicAccessType = PublicAccessType.None;
}

BlobContainerClient container = InstrumentClient(service.GetBlobContainerClient(containerName));
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/Azure.Storage.Blobs/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "net",
"TagPrefix": "net/storage/Azure.Storage.Blobs",
"Tag": "net/storage/Azure.Storage.Blobs_62a8c8fa29"
"Tag": "net/storage/Azure.Storage.Blobs_b8e4c4ca1e"
}
68 changes: 27 additions & 41 deletions sdk/storage/Azure.Storage.Blobs/tests/AppendBlobClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void Ctor_TokenAuth_Http()

// Act
TestHelper.AssertExpectedException(
() => new AppendBlobClient(httpUri, Tenants.GetOAuthCredential()),
() => new AppendBlobClient(httpUri, TestEnvironment.Credential),
new ArgumentException("Cannot use TokenCredential without HTTPS."));
}

Expand Down Expand Up @@ -176,7 +176,7 @@ public async Task Ctor_DefaultAudience()

AppendBlobClient aadBlob = InstrumentClient(new AppendBlobClient(
uriBuilder.ToUri(),
Tenants.GetOAuthCredential(),
TestEnvironment.Credential,
options));

// Assert
Expand All @@ -185,6 +185,7 @@ public async Task Ctor_DefaultAudience()
}

[RecordedTest]
[PlaybackOnly("DefaultAzureCredential does not play nicely with this test.")]
public async Task Ctor_CustomAudience()
{
// Arrange
Expand All @@ -204,7 +205,7 @@ public async Task Ctor_CustomAudience()

AppendBlobClient aadBlob = InstrumentClient(new AppendBlobClient(
uriBuilder.ToUri(),
Tenants.GetOAuthCredential(),
TestEnvironment.Credential,
options));

// Assert
Expand All @@ -213,6 +214,7 @@ public async Task Ctor_CustomAudience()
}

[RecordedTest]
[PlaybackOnly("DefaultAzureCredential does not play nicely with this test.")]
public async Task Ctor_StorageAccountAudience()
{
// Arrange
Expand All @@ -232,7 +234,7 @@ public async Task Ctor_StorageAccountAudience()

AppendBlobClient aadBlob = InstrumentClient(new AppendBlobClient(
uriBuilder.ToUri(),
Tenants.GetOAuthCredential(),
TestEnvironment.Credential,
options));

// Assert
Expand Down Expand Up @@ -575,7 +577,7 @@ public async Task CreateAsync_EncryptionScopeAccountSAS()
public async Task CreateAsync_EncryptionScopeIdentitySAS()
{
// Arrange
BlobServiceClient oauthService = BlobsClientBuilder.GetServiceClient_OAuth();
BlobServiceClient oauthService = BlobsClientBuilder.GetServiceClient_OAuth(TestEnvironment.Credential);
await using DisposingContainer test = await GetTestContainerAsync(oauthService);

Response<UserDelegationKey> userDelegationKey = await oauthService.GetUserDelegationKeyAsync(
Expand Down Expand Up @@ -1291,8 +1293,6 @@ public async Task AppendBlockFromUriAsync_Min()
await using DisposingContainer test = await GetTestContainerAsync();

// Arrange
await test.Container.SetAccessPolicyAsync(PublicAccessType.BlobContainer);

var data = GetRandomBuffer(Constants.KB);

using (var stream = new MemoryStream(data))
Expand All @@ -1310,7 +1310,9 @@ public async Task AppendBlockFromUriAsync_Min()
};

// Act
Response<BlobAppendInfo> response = await destBlob.AppendBlockFromUriAsync(sourceBlob.Uri, options);
Response<BlobAppendInfo> response = await destBlob.AppendBlockFromUriAsync(
sourceBlob.GenerateSasUri(BlobSasPermissions.Read, Recording.UtcNow.AddHours(1)),
options);

// Ensure that we grab the whole ETag value from the service without removing the quotes
Assert.AreEqual(response.Value.ETag.ToString(), $"\"{response.GetRawResponse().Headers.ETag}\"");
Expand Down Expand Up @@ -1428,8 +1430,6 @@ public async Task AppendBlockFromUriAsync_EncryptionScope()
await using DisposingContainer test = await GetTestContainerAsync();

// Arrange
await test.Container.SetAccessPolicyAsync(PublicAccessType.BlobContainer);

var data = GetRandomBuffer(Constants.KB);

using (var stream = new MemoryStream(data))
Expand All @@ -1449,7 +1449,7 @@ public async Task AppendBlockFromUriAsync_EncryptionScope()

// Act
Response<BlobAppendInfo> response = await destBlob.AppendBlockFromUriAsync(
sourceBlob.Uri,
sourceBlob.GenerateSasUri(BlobSasPermissions.Read, Recording.UtcNow.AddHours(1)),
options);

Assert.AreEqual(TestConfigDefault.EncryptionScope, response.Value.EncryptionScope);
Expand All @@ -1462,8 +1462,6 @@ public async Task AppendBlockFromUriAsync_Range()
await using DisposingContainer test = await GetTestContainerAsync();

// Arrange
await test.Container.SetAccessPolicyAsync(PublicAccessType.BlobContainer);

var data = GetRandomBuffer(4 * Constants.KB);

using (var stream = new MemoryStream(data))
Expand All @@ -1482,7 +1480,7 @@ public async Task AppendBlockFromUriAsync_Range()

// Act
await destBlob.AppendBlockFromUriAsync(
sourceUri: sourceBlob.Uri,
sourceUri: sourceBlob.GenerateSasUri(BlobSasPermissions.Read, Recording.UtcNow.AddHours(1)),
options: options);

// Assert
Expand All @@ -1500,8 +1498,6 @@ public async Task AppendBlockFromUriAsync_MD5()
await using DisposingContainer test = await GetTestContainerAsync();

// Arrange
await test.Container.SetAccessPolicyAsync(PublicAccessType.BlobContainer);

var data = GetRandomBuffer(Constants.KB);

using (var stream = new MemoryStream(data))
Expand All @@ -1520,7 +1516,7 @@ public async Task AppendBlockFromUriAsync_MD5()

// Act
await destBlob.AppendBlockFromUriAsync(
sourceUri: sourceBlob.Uri,
sourceUri: sourceBlob.GenerateSasUri(BlobSasPermissions.Read, Recording.UtcNow.AddHours(1)),
options: options);
}
}
Expand All @@ -1531,8 +1527,6 @@ public async Task AppendBlockFromUriAsync_MD5_Fail()
await using DisposingContainer test = await GetTestContainerAsync();

// Arrange
await test.Container.SetAccessPolicyAsync(PublicAccessType.BlobContainer);

var data = GetRandomBuffer(Constants.KB);

using (var stream = new MemoryStream(data))
Expand All @@ -1552,7 +1546,7 @@ public async Task AppendBlockFromUriAsync_MD5_Fail()
// Act
await TestHelper.AssertExpectedExceptionAsync<RequestFailedException>(
destBlob.AppendBlockFromUriAsync(
sourceUri: sourceBlob.Uri,
sourceUri: sourceBlob.GenerateSasUri(BlobSasPermissions.Read, Recording.UtcNow.AddHours(1)),
options: options),
actualException => Assert.AreEqual("Md5Mismatch", actualException.ErrorCode)
);
Expand Down Expand Up @@ -1583,8 +1577,6 @@ public async Task AppendBlockFromUriAsync_AccessConditions()
await using DisposingContainer test = await GetTestContainerAsync();

// Arrange
await test.Container.SetAccessPolicyAsync(PublicAccessType.BlobContainer);

var data = GetRandomBuffer(7);

using (var stream = new MemoryStream(data))
Expand Down Expand Up @@ -1614,7 +1606,7 @@ public async Task AppendBlockFromUriAsync_AccessConditions()

// Act
await destBlob.AppendBlockFromUriAsync(
sourceUri: sourceBlob.Uri,
sourceUri: sourceBlob.GenerateSasUri(BlobSasPermissions.Read, Recording.UtcNow.AddHours(1)),
options: options);
}
}
Expand Down Expand Up @@ -1643,8 +1635,6 @@ public async Task AppendBlockFromUriAsync_AccessConditionsFail()
await using DisposingContainer test = await GetTestContainerAsync();

// Arrange
await test.Container.SetAccessPolicyAsync(PublicAccessType.BlobContainer);

var data = GetRandomBuffer(7);

using (var stream = new MemoryStream(data))
Expand Down Expand Up @@ -1674,7 +1664,7 @@ public async Task AppendBlockFromUriAsync_AccessConditionsFail()
// Act
await TestHelper.AssertExpectedExceptionAsync<RequestFailedException>(
destBlob.AppendBlockFromUriAsync(
sourceUri: sourceBlob.Uri,
sourceUri: sourceBlob.GenerateSasUri(BlobSasPermissions.Read, Recording.UtcNow.AddHours(1)),
options: options),
actualException => Assert.IsTrue(true)
);
Expand All @@ -1689,8 +1679,6 @@ public async Task AppendBlockFromUriAsync_IfTags()
await using DisposingContainer test = await GetTestContainerAsync();

// Arrange
await test.Container.SetAccessPolicyAsync(PublicAccessType.BlobContainer);

var data = GetRandomBuffer(Constants.KB);

using Stream stream = new MemoryStream(data);
Expand Down Expand Up @@ -1721,7 +1709,7 @@ public async Task AppendBlockFromUriAsync_IfTags()

// Act
await destBlob.AppendBlockFromUriAsync(
sourceUri: sourceBlob.Uri,
sourceUri: sourceBlob.GenerateSasUri(BlobSasPermissions.Read, Recording.UtcNow.AddHours(1)),
options: options);
}

Expand All @@ -1732,8 +1720,6 @@ public async Task AppendBlockFromUriAsync_IfTagsFailed()
await using DisposingContainer test = await GetTestContainerAsync();

// Arrange
await test.Container.SetAccessPolicyAsync(PublicAccessType.BlobContainer);

var data = GetRandomBuffer(Constants.KB);

using Stream stream = new MemoryStream(data);
Expand All @@ -1759,19 +1745,20 @@ public async Task AppendBlockFromUriAsync_IfTagsFailed()
// Act
await TestHelper.AssertExpectedExceptionAsync<RequestFailedException>(
destBlob.AppendBlockFromUriAsync(
sourceUri: sourceBlob.Uri,
sourceUri: sourceBlob.GenerateSasUri(BlobSasPermissions.Read, Recording.UtcNow.AddHours(1)),
options: options),
e => Assert.AreEqual("ConditionNotMet", e.ErrorCode));
}

[RecordedTest]
// Net462 is sending the source SAS expiry unencoded to the service, while net6 and net7 sending it encoded.
// Both are valid, but make this test non-recordable.
[LiveOnly]
public async Task AppendBlockFromUriAsync_NonAsciiSourceUri()
{
await using DisposingContainer test = await GetTestContainerAsync();

// Arrange
await test.Container.SetAccessPolicyAsync(PublicAccessType.BlobContainer);

var data = GetRandomBuffer(Constants.KB);

using (var stream = new MemoryStream(data))
Expand All @@ -1790,7 +1777,7 @@ public async Task AppendBlockFromUriAsync_NonAsciiSourceUri()

// Act
await destBlob.AppendBlockFromUriAsync(
sourceUri: sourceBlob.Uri,
sourceUri: sourceBlob.GenerateSasUri(BlobSasPermissions.Read, Recording.UtcNow.AddHours(1)),
options: options);
}
}
Expand All @@ -1801,7 +1788,7 @@ await destBlob.AppendBlockFromUriAsync(
public async Task AppendBlockFromUriAsync_SourceBearerToken()
{
// Arrange
BlobServiceClient serviceClient = BlobsClientBuilder.GetServiceClient_OAuth();
BlobServiceClient serviceClient = GetServiceClient_OAuth();
await using DisposingContainer test = await GetTestContainerAsync(
service: serviceClient,
publicAccessType: PublicAccessType.None);
Expand Down Expand Up @@ -1836,7 +1823,7 @@ public async Task AppendBlockFromUriAsync_SourceBearerToken()
public async Task AppendBlockFromUriAsync_SourceBearerTokenFail()
{
// Arrange
BlobServiceClient serviceClient = BlobsClientBuilder.GetServiceClient_OAuth();
BlobServiceClient serviceClient = GetServiceClient_OAuth();
await using DisposingContainer test = await GetTestContainerAsync(
service: serviceClient,
publicAccessType: PublicAccessType.None);
Expand Down Expand Up @@ -1874,8 +1861,6 @@ public async Task AppendBlockFromUriAsync_NullOptions()
await using DisposingContainer test = await GetTestContainerAsync();

// Arrange
await test.Container.SetAccessPolicyAsync(PublicAccessType.BlobContainer);

var data = GetRandomBuffer(Constants.KB);

using (var stream = new MemoryStream(data))
Expand All @@ -1888,7 +1873,8 @@ public async Task AppendBlockFromUriAsync_NullOptions()
await destBlob.CreateIfNotExistsAsync();

// Act
Response<BlobAppendInfo> response = await destBlob.AppendBlockFromUriAsync(sourceBlob.Uri);
Response<BlobAppendInfo> response = await destBlob.AppendBlockFromUriAsync(
sourceBlob.GenerateSasUri(BlobSasPermissions.Read, Recording.UtcNow.AddHours(1)));

// Ensure that we grab the whole ETag value from the service without removing the quotes
Assert.AreEqual(response.Value.ETag.ToString(), $"\"{response.GetRawResponse().Headers.ETag}\"");
Expand Down Expand Up @@ -2146,7 +2132,7 @@ public void CanMockClientConstructors()
mock = new Mock<AppendBlobClient>(new Uri("https://test/test"), new BlobClientOptions()).Object;
mock = new Mock<AppendBlobClient>(new Uri("https://test/test"), Tenants.GetNewSharedKeyCredentials(), new BlobClientOptions()).Object;
mock = new Mock<AppendBlobClient>(new Uri("https://test/test"), new AzureSasCredential("foo"), new BlobClientOptions()).Object;
mock = new Mock<AppendBlobClient>(new Uri("https://test/test"), Tenants.GetOAuthCredential(Tenants.TestConfigHierarchicalNamespace), new BlobClientOptions()).Object;
mock = new Mock<AppendBlobClient>(new Uri("https://test/test"), TestEnvironment.Credential, new BlobClientOptions()).Object;
}

private AppendBlobRequestConditions BuildDestinationAccessConditions(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<ProjectReference Include="$(MSBuildThisFileDirectory)..\src\Azure.Storage.Blobs.csproj" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\Azure.Storage.Common\src\Azure.Storage.Common.csproj" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\Azure.Storage.Blobs.Batch\src\Azure.Storage.Blobs.Batch.csproj" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\Microsoft.Azure.Management.Storage\src\Microsoft.Azure.Management.Storage.csproj" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\Azure.ResourceManager.Storage\src\Azure.ResourceManager.Storage.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(AzureStorageSharedTestSources)\**\*.cs" LinkBase="Shared" />
Expand Down
Loading
Loading